I am using Cross keyword to capture stochRSI crossover.
Formula I have used is as below:
Position ( Cross ( StochRsiK ( CLOSE ( Symbol ( Instrument Name ( ‘MCX,Crudeoil,Current Month,’ ) , ‘15m’, ‘100’ ) ) , ‘14’, ‘5’, ‘3’ ) , StochRsiD ( CLOSE ( Symbol ( Instrument Name ( ‘MCX,Crudeoil,Current Month,’ ) , ‘15m’, ‘100’ ) ) , ‘14’, ‘5’, ‘3’ ) ) , ‘-1’ ) )
My practical observation is, Position with -1 is not actually previous candle but 2 candles brefore. I compared candlestick chart and when the trade was taken. Has anyone observed this issue? What is the solution to get cross over properly? Any help in this regards is greatly appreciated. Thank you.
Lion Algos
Though I did not use Cross but I used Position keyword in others where -1 gives exactly previous candle value
Tradetron TeamTradetron team
Position(..., -1) is the last completed candle, and Cross returns 1 only on the candle where Series 1 crosses above Series 2. So with -1, the signal appears on the first check after the crossing candle has closed. A few things make it look like “two candles before”:
When the check happens. A 15-minute candle is only complete at its end time. The entry fires on the next condition check after that, so the trade time is roughly one candle after the cross on your chart.
Candle start times. Tradetron builds candles on a fixed clock grid. If your charting tool starts candles at a different time (e.g. MCX session start vs a round clock), the candles themselves differ, and so do StochRSI values.
Data and settings. Make sure the instrument (here Crudeoil current-month futures), timeframe and the StochRSI parameters (14, 5, 3) are the same on both sides. The '100' history setting also changes the first values of the indicator.
A forming candle on the chart. Charts often show a cross on the live candle that later disappears; Tradetron’s -1 ignores those.
How to check
Run it in Live Offline, and compare the times and values in the Notification Log with your chart candle by candle. If the logged values clearly don’t match the candle data, send the SID and the time to support (chat on tradetron.tech).
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.