You can save the entry candle’s high and low in runtime variables and use them later as a stop-loss or target.
How it works
- A runtime variable can be set in any condition block (Entry, Repair Once, Repair Continuous, Set Exit). It is written after that condition’s leg is taken.
- Read it back in the Condition Builder with the Get Runtime keyword.
- Do not read a variable before it has a value. It returns
None, which can cause an error. - A Universal Exit clears all runtime variables.
Video and worked example
- Video: https://youtu.be/Qaje2QKCj0w
- Worked example in the Community: https://qna.tradetron.tech/t/use-entry-candle-high-and-low-using-runtime-variable/2413/8
Edited with AI from the original Tradetron article, checked against current docs (Oct 2026). Spot something wrong? Tell us in the Community.