1️⃣ Track SL Hits:
- Use a Global or Custom Variable (e.g., SL_Hits) to count consecutive stop-loss hits.
- Increment SL_Hits each time a trade is closed by stop-loss.
2️⃣ Check Before Opening Trades:
- In the Buy/Sell block, add a Condition block.
- Only allow trades if SL_Hits < 2 (or your chosen threshold).
3️⃣ Set a Timer:
- When SL_Hits reaches the threshold:
• Record the current time in a variable, e.g., SL_Lock_Start = TimeCurrent().
• Block trades until the lock period expires:
TimeCurrent() >= SL_Lock_Start + Lock_Period
• Lock_Period = 1–3 hours in seconds (e.g., 1 hour = 3600 seconds).
4️⃣ Reset After Timer:
- Once the timer expires, reset SL_Hits = 0.
- Trades are allowed again.
FXDreema Block Flow:
- Trade closed by SL → increment SL_Hits
- Condition Block → allow trades only if SL_Hits < 2 or lock period expired
- Timer Logic → block trading for X hours
- Reset SL_Hits after lock period