I have a list of of stocks and I want use the set Stop Loss and Take Profit based on previous candle for each stock in list.
Is it possible? How?
I have a list of of stocks and I want use the set Stop Loss and Take Profit based on previous candle for each stock in list.
Is it possible? How?
Not directly. Initialize Variables can’t be used in list-based strategies, and runtime variables are not kept per stock. For a list, use keywords that already work per stock.
In each set’s Set Exit, compare each stock’s price with its own entry or candle:
LTP(<list>) < Position(LOW(Symbol(<list>, '15m')), -1) exits a stock when it breaks the last closed candle’s low.price) to compare with that stock’s entry price.If you need values stored once per stock, write the logic in custom Python (it can set variables with SetVar): How to add custom Python code to Strategy | Tradetron Helpdesk
Test in Live Offline (a list can hold up to 20 stocks there). Keyword reference: Keyword Documentation — Tradetron
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.
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.