Strategy taking many trades every second (entry/exit loop) — Tradetron Community
← Community

Strategy taking many trades every second (entry/exit loop)

Strategy 822 views

Jatin

Strategy me entry hone k bad 30 seconds checking rakha hai
But trade every 1 second ,many trade in strategy ,
Many strategy me problems hai ,
Usko kaise thik kare

Tradetron Team Tradetron team

Trading every second usually means the strategy is in an entry/exit loop: the exit fires, then the entry condition is still true, so it enters again at the next check. The “30 second” check frequency does not stop this.

Fix it by limiting entries with a runtime variable:

Set it up

  1. In the Strategy builder, create an Initialize Variable (for example s1entry) with the value Number(1).
  2. In the entry condition, add Get Runtime(s1entry) == Number(1) joined to your real logic with AND.
  3. In that entry’s Runtime section, set s1entry to Number(2). After the entry fires, the gate is false, so it cannot enter again in this run.
  4. Test in Live Offline and check the Notification Logs.

Start the variable at 1, not 0, and always wrap values in Number(...). A Universal Exit clears all runtime variables; they start fresh on reactivation.

Make the exit condition the opposite of the entry so both cannot be true together. If a strategy passes about 400 trades a day, it is blocked automatically.

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.