I am facing an issue where for at least one candle of the day the Open-Close values for Nifty Futures 5-min candle are getting interchanged due to which red candle is interpreted as green and vice-versa. Due to this, a wrong trade is being triggered which is obviously resulting in loss. In the entry condition I am checking close > open for green and open > close for red candles. Among multiple trades in a day one such issue is occurring which is eating into my profits. I have raised a ticket with Tradetron ( #693994) for which initially they said this could be an issue from the data provider and now they have stopped responding. I am checking the values from notification log and comparing them with values in TradingView and Zerodha. Clearly they are getting interchanged. I dont believe this issue could be from data provider but could be some issue with trading engine.
Has anyone faced such issue ? Is there any other way to determine red/green candles?
Palaksha Kotian
Never faced such issues. Can you share the screenshot of code?
Raghu
For green candle
For red candle
Palaksha Kotian
I have not used Futures keyword.
For Futures I use
May be Futures does same but worth trying once
Try using Instrument name inside Symbol and give three parameters
NFO
Nifty 50
Current Month
rest will be same..
Worth trying.
SASIRAMMENON
You code,open> close and open < close instead of colours.
Tradetron TeamTradetron team
Short answer: Tradetron builds candles from a pooled multi-broker/vendor feed. An occasional candle can differ from your charting platform, including small open/close differences that flip a candle’s colour.
What you can do:
In the Notification Logs, note the exact candle time and the OHLC values the strategy saw.
Compare with the same instrument and timeframe on your chart. Make sure you compare futures to futures (current month), not spot.
Send the SID, instrument, timeframe and candle time to support (chat on tradetron.tech) so they can check the feed for that candle.
To make one bad tick matter less, add a small threshold, e.g. CLOSE > OPEN + Number ( 2 ), instead of a bare comparison.