//@version=5 strategy("MON Base Algorithm", overlay=true, margin

Wait 5 sec.

//@version=5 strategy("MON Base Algorithm", overlay=true, marginUS 30 - CashCMCMARKETS:US30mohammadzolfaghari7281//@version=5 strategy("MON Base Algorithm", overlay=true, margin_long=100, margin_short=100) // ----------------------------- // 1) Time Filters (NY Time) // ----------------------------- nyTime = time(timeframe.period, "UTC-4") inAsia = nyTime >= input.time("0000", "Asia Start") and nyTime = input.time("0200", "MBOX Start") and nyTime ta.sma(ta.atr(14), 20)) // ----------------------------- // 4) First High / First Low // ----------------------------- var float firstHigh = na var float firstLow = na if asiaHunt and inMBOX firstHigh := high firstLow := low // ----------------------------- // 5) Hunt First High / Low // ----------------------------- huntHigh = not na(firstHigh) and high > firstHigh huntLow = not na(firstLow) and low < firstLow // ----------------------------- // 6) Order Block Detection // ----------------------------- obBull = close > open and close < open obBear = close < open and close > open // ----------------------------- // 7) Entry Logic (Shred Entry) // ----------------------------- longEntry = inMBOX and fakeCHOCH_down and huntLow and obBull shortEntry = inMBOX and fakeCHOCH_up and huntHigh and obBear if longEntry strategy.entry("MON Long", strategy.long) if shortEntry strategy.entry("MON Short", strategy.short) // ----------------------------- // 8) Stop & Target // ----------------------------- atr = ta.atr(14) strategy.exit("TP/SL Long", from_entry="MON Long", stop=strategy.position_avg_price - atr*2, limit=strategy.position_avg_price + atr*4) strategy.exit("TP/SL Short", from_entry="MON Short", stop=strategy.position_avg_price + atr*2, limit=strategy.position_avg_price - atr*4) // ----------------------------- // 9) Plot // ----------------------------- plot