Tradetron not checking condition correctly — Tradetron Community
← Community

Tradetron not checking condition correctly

Keyword help 927 views

rahul

i want my repair to be checked after 2 min of entry candle. so i add the logic that TIME(NSE)>TradedTime+1. so if entry time is 1320 than repair will be satisfied when Time(nse) is 1322
i.e 1322>1321. but as you can see in trade history my repair once executed at same time of my entry.

Tradetron Team Tradetron team

The Time keyword gives the time as an HHMM number, so adding minutes only works inside the same hour (1359 + 1 = 1360 is not a real time). Comparing “time > traded time + 1” is fragile for this reason.

Better way: Time Difference (T2-T1)

Time Difference (T2-T1) returns the minutes between two HHMM times and handles the hour change:

Time Difference (T2-T1)(EntryTime, Time('NSE')) >= Number(2)

Put this with AND in the Repair Once. With an entry at 13:20, it becomes true at 13:22.

Also check

  • Before the leg is filled, the entry time can be empty, and a condition built on it can behave unexpectedly. Make sure the repair is checked only once the leg is traded.
  • Open the Notification Log (Deployed page → three dots) to see the values the engine used at 13:20.

If the values still don’t explain it, ask support (chat on tradetron.tech) with your SID. Keyword reference: Keyword Documentation — Tradetron

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