PROTECTED SOURCE SCRIPT

Money Heist - NRP V2

71
Note - Check on different time frame

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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.