My strategy getting into.loop because the condition are match after sl how can I delay it some minutes — Tradetron Community
← Community

My strategy getting into.loop because the condition are match after sl how can I delay it some minutes

General 0 views

Priyabrata lenka

My strategy getting into.loop because the condition are match after sl how can I delay it some minutes

Ask TT AI

There's no setting that adds an "X-minute wait" after a stop-loss. What you can control is whether the strategy enters again after the SL, and you can cap how many times it loops.

Why it happens: after a set exits, including on a stop-loss, only its entry condition is checked. If that condition is still true, it enters again right away. That's normal behaviour, not a fault. A loop happens when the entry and exit conditions are both true at the same time. To see which condition keeps firing, open the deployment's Notification Log (⋮ menu on the Dashboard).

Fix 1: limit re-entries with a runtime counter

  1. Open the strategy from My Strategies (Sign in - Tradetron). Under Initialise Variables, create s1entry = Number(1).
  2. In the entry condition, add Get Runtime(s1entry) <= Number(2) with AND to your real entry logic. With Number(2) you get at most 2 entries; use == Number(1) for one entry only.
  3. In that entry's runtime section, set s1entry = Get Runtime(s1entry) + Number(1).
  4. Wrap every value in Number(...), not a bare 1, and start the counter at 1, not 0.

A Universal Exit clears runtime variables, so the count starts again after one.

Fix 2: turn on Stop Looping when you deploy. In the Deploy dialog, set Stop Looping to a number from 1 to 20 (0 turns it off). Once the deployment loops more times than that, Tradetron stops all new entries and sends an error notification. Exits are still placed.

If your SL is in the Universal Exit: Advanced Settings → Reactivate on exit after sets how long after an exit the strategy can trade again. The default is 6 hours, which brings it back the next session. I can't confirm whether it accepts a value in minutes.

About the delay itself: a staff answer shows a logic block for exiting X minutes after entry: How to exit after 5mins of entry. I can't confirm how to turn that into a delay before re-entry, so ask on the chat at tradetron.tech for that.

Test any change in Live Offline first. If your deployment is already Blocked, fix the cause, then contact support through the chat at tradetron.tech to unblock it. It won't restart on its own, so exit any open positions by hand if you need to.

:sparkles: Answered by Ask TT (AI) from Tradetron’s docs. It can be wrong: check before you trade, and reply if something is off. Not investment advice.