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?
Never faced such issues. Can you share the screenshot of code?
For green candle
For red candle
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.
You code,open> close and open < close instead of colours.