5 minute range breakout strategy — Tradetron Community
← Community

5 minute range breakout strategy

Strategy 4,919 views

shakuntala sardar

I just subscribe tradetron to write my strategy, but not filling comfortable, i want to write a strategy that …i need this logic…

  1. Open of 9:45 to 9:49 candle of 5 minute of any stock (it might green or red candle, just mark open of this candle)
  2. Mark open of next candle(it might open above 9:45 to 9:49 candle or below low of 9:45 to 9:49 candle, but it should not open within 9:45 to 9:49 candle, if open of this candle is within 9:45 to 9:49 candle then wait to open next any 5 minute candle which met above criteria) , after marking a range ( open of 9:45 to 9:49; 5minute candle and open of next any candle with above criteria)

3)Now time to do execution, if current 5 minute candle,s high is above range, then wait for next candle to open and execute buy (Here always my execution is 4th criteria met candle), And if current 5 minute candle low is below the range then execute sell on opening next candle.

Let’s example

1st) 9:45 to 9:49 candle open is 120 ( and low is 115)

2nd) i awaited to open next candle above open or below low of 9:45 to 9:49 candle but current candle close is within open and low of 9:45 to 9:49 candle, But at 12:15 to 12:19 five minute candle open at 114 which is below low of 9:45 to 9:49 candle, now i get a range 114 to 120

3rd) again i awaited to open candle which is below 114 or above 120 and at 1:15 to 1:19 five minute candle opens above 120 at 121 now wait to close this 1:15 to 1:19 candle.

4th) After 1:19, next candle’s open execute buy order.

Please help to execute this steps, till now no exit criteria.

Deepak

Were you able to get this coded? you can use runtime variable to store the data and try to update when there is a new value update to the range.

Tradetron Team Tradetron team

You can build this with the Position keyword and Runtime Variables:

  1. Store the reference candle. At 9:50 the 9:45 candle has closed. Use Indicator Value (Time) or the Position keyword on the 5-minute OPEN series to read its open, high and low. To keep a value, store it in a runtime variable (Repair Once / Entry runtime section → name → FX → value).
  2. Check the next candle’s open. In the entry condition, compare Position(OPEN(5m), 0) (current candle open) with the stored high/low.
  3. Entry: open is above the stored high (long) or below the stored low (short).
  4. Wait if inside the range: because conditions are re-checked every minute/candle, the entry simply fires on the first later candle that meets the rule.
  5. Gate it with a runtime variable so it enters only once per day.

Runtime variables guide: Runtime Variables in Tradetron — Capture Once, Use Anywhere | Tradetron Helpdesk · Keywords: Keyword Documentation — Tradetron

Test in Live Offline first. If you get stuck, you can connect your AI to Tradetron via MCP to help build it, or use the paid build service: https://questionnaire.tradetron.tech/

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

Tradetron अब हिन्दी में भी उपलब्ध है हिन्दी में देखें Continue in English