Help on keywords like “Set Runtime” and “Get Runtime” — Tradetron Community
← Community

Help on keywords like “Set Runtime” and “Get Runtime”

Uncategorized 6,352 views

SWATEE PATNAIK

There are many powerful keywords in Tradetron line “Set Runtime” to store variable name and value and “Get Runtime” to retrieve their values later. But there is no explanation of these.

Can anyone throw some light on their usage, please?

Z K

were you able to get any good info on how to use these ??

Siva

Hi, I also looking for this… did u get a answer?

Nelson Tradetron team

Hi,

It is requirement specific. Normally used to pull data from external platforms like Tradingview, Amibroker etc.

For your specific requirement please send a mail to [email protected]

Arun A.

hi nelson, Understand it may be requirement specific. Let say I have requirement to get a x = crossover(sma5, sma21) then how will you use setruntime and getruntime to capture and output results based on that variable in trading view.

puneet

I have tweeted to tradetron as may peope are struggeling on this , but they want money to explain this , TT is giving lolypop to use their platform and once user gets used to then they ask money for solving simple doubts … door is locked and key availale with TT .

what is this issue in sharing help file on this …not able to understand.

EXIT this platform ASAP

Tradetron Team Tradetron team

Set Runtime / Get Runtime store a value while the strategy runs and read it back later.

  • Initialize Variables are set once, when a new run starts.
  • Runtime Variables are set in the Runtime section of a condition block (Entry, Repair Once, Repair Continuous, Set Exit). Each one is written right after that block’s leg is taken. To add one, name it, click Fx, and pick a value, for example Position(LOW(...), -1).
  • Get Runtime reads the value back in the Condition or Position builder. It returns text, so use Get Runtime Number when you need to do maths with it.
  • TradingView or other webhook signals arrive as runtime variables too. The key you send is the variable name.

Example: store the entry candle’s low as a stop-loss

  1. Entry Runtime section: sl_low = Position(LOW(<5m data>), -1).
  2. Exit condition: LTP(Traded Instrument Name(Entry,1,1,1)) < Get Runtime Number(sl_low).

Things to know

  • A Universal Exit clears all runtime variables.
  • Reading a variable before it has been set returns None and the condition may fail. Initialize it first.
  • Check current values from the deployment’s ⋮ menu → Runtime Data.

Guides: Runtime Variables in Tradetron — Capture Once, Use Anywhere | Tradetron Helpdesk · 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.