PROTECTED SOURCE SCRIPT

Money Heist V1

81
⏳ Multi-Timeframe Entry Logic

The strategy derives its core signals from a higher timeframe (18 times the current chart resolution) using synthetic price data, aiming to filter out noise.Higher Timeframe (HTF): $18 \times$ current chart resolution.Trend Filter: Simplified RSI(7) is included, but currently set to always pass (RSI > 0).Backtesting Filter: Allows the user to restrict trading to a specific date range.

'Open/Close' Mode (Heikin Ashi-based)

Data Source: Heikin Ashi candles from the HTF.
Long Entry: HTF Heikin Ashi Close crosses over Open.
Short Entry: HTF Heikin Ashi Close crosses under Open.

Renko' Mode (EMA Cross-based)

Data Source: Renko blocks (ATR-based) from the HTF.
Long Entry: Fast EMA(2) crosses over Slow EMA(10) on the HTF Renko bars.
Short Entry: Fast EMA(2) crosses under Slow EMA(10) on the HTF Renko bars.

Trade Shifting Mechanism (Reversal Logic)
This is a key feature that makes the strategy aggressive in capturing reversals:

Detection: After any trade is successfully closed (due to TP, SL, or reversal), the strategy checks if it was a Long exit or a Short exit.

Delayed Entry Flag: A flag (delayedLongEntry or delayedShortEntry) is immediately set for the opposite direction.

Execution: This flag allows the strategy to enter the opposite trade on the next confirmed bar without needing a new, full-fledged signal from the primary entry logic, facilitating quick position flipping.

📊 Visual Feedback & Dashboard
Bar Colors: Price bars are colored green (bullish) or red (bearish) based on the current trend signal from the selected setup.

Entry/Exit Plots: Uses shapes on the chart (triangles for entry, cross for exit) to visualize signals.

Performance Dashboard: Displays essential metrics in a table on the chart:

Total Trades
Win Rate (%)
Net Profit ($)
Profit Factor
Current Position (LONG/SHORT/FLAT)

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.