Entry on 5 min, Exit is 3 min condition. How to avoid re-entry — Tradetron Community
← Community

Entry on 5 min, Exit is 3 min condition. How to avoid re-entry

Uncategorized 2,660 views

AravindaTM

How do you handle this case.
Entry condition is based on 5 min candle.
Exit condition is based on 3 min candle.

As soon as exit happens, it is re entering into position since condition holds good for 5 min entry.
How to avoid re-entry and make it wait for elapsing of 5 mins after exit ?

Rudresh

Good question…i’m still trying to find a simple solution…

mano00
  1. you have to initialise two variables which stores open of the candle for 5 mins timeframe, entry_open and exit_open in the Initialise variables. assume you entered a trade, entry_open = (# entry candle 5 mins), if it exits on the same candle cz your SL is based on 3 mins, store the exit candle open on 5 mins basis, exit_open = (same as entry_open)
    So, in condition builder for entry add this condition, entry_open != exit_open

Hope this helps @ArvindTM

Tradetron Team Tradetron team

Store the exit time and make the entry wait.

  1. Initialize Variables: last_exit = Number(0).
  2. In the Set Exit runtime variables: last_exit = Time('NSE').
  3. Entry, add with AND: Time Difference (T2-T1)(Get Runtime Number(last_exit), Time('NSE')) >= Number(5) OR Get Runtime Number(last_exit) == Number(0) (no exit yet).

The entry then fires again only when at least 5 minutes have passed since the exit.

Avoid != with Time Difference: an unset time gives no number. Test in Live Offline.

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

Vel RS

In the above , Time difference (T2-T1), there is no option to select 'Time' for the second argument. can you clarify.