store days first candle high and low in runtime variable
store days first candle high and low in runtime variable
You can store the first candle's high and low in two Runtime Variables, but they only save when a condition block fires. That means you need a block that fires right after the first candle closes, then read the values back with Get Runtime.
How it works: Runtime Variables are written when a block's condition fires (Entry, Repair Once, Repair Continuous or Set Exit). Each one is saved after that condition's leg is taken.
Open your strategy from My Strategies: Sign in - Tradetron
In the condition block that should capture the values, add a Runtime Variable. Give it a name, for example FirstHigh.
Click the FX button and set the value to the candle's High. Use candle position 0 for the current candle or −1 for the previous one.
Add a second Runtime Variable, for example FirstLow, set the same way using Low. You can add as many variables as you need.
To use the values later in the Condition or Position Builder, read them with the Get Runtime keyword. The recommended structure is:
Don't check a bare Get Runtime == 0.
To see the stored values, go to the Deployed page, click the deployment's three dots and choose Runtime Data.
None), which can cause a backend error. Make sure the capture block has fired before any condition reads FirstHigh or FirstLow.At the first point where your block fires after the first candle closes, it saves:
FirstHigh = High of candle −1FirstLow = Low of candle −1Your entry and exit conditions can then compare price against those saved values using Get Runtime.
If you'd like help building this logic, you can connect your AI to Tradetron via MCP to build and check it, or I can connect you to a live Tradetron support agent.
Answered by Ask TT (AI) from Tradetron’s docs. It can be wrong: check before you trade, and reply if something is off. Not investment advice.
i want to store 1hr candles high and low into runtime variable how can i do that?
suppose market opens at 9:15 and 1 hr candle closes at 10:15 so this 1hr candles high and low how can i capture?
Request received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.