How to find the candle on which trade was taken? — Tradetron Community
← Community

How to find the candle on which trade was taken?

Uncategorized 1,800 views

kalavati

Hi, which keyword to use and find the HIGH and LOW of the candle on which trade was taken in Exit Condition ?

I tried using Position(High) as in the screenshot, but the position (-2) will change as time passes, right? So how to find the candle on which trade was taken ?

kashish modi

i am also tring to find answer

Alex Sami

There is no answer. It seems it needs to be custom coded.

magnum

surprising…maybe contact the support, they should know

Tradetron Team Tradetron team

Store the entry candle’s high and low in runtime variables at entry, then use them in the exit.

  1. In the entry block’s Runtime section, add two variables:
    • entry_high = Position(HIGH(<symbol, timeframe>), -1)
    • entry_low = Position(LOW(<symbol, timeframe>), -1)
      (Use 0 instead of -1 if you want the candle that is still forming at entry.)
  2. They are written once, right after the entry leg is taken, so the value does not move later.
  3. Exit condition (long): LTP(Traded Instrument Name(Entry,1,1,1)) < Get Runtime Number(entry_low).

Check the stored values from the deployment’s ⋮ menu → Runtime Data. Worked example: Use Entry Candle - High and Low using Runtime Variable - #8 by Nelson

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