I had a issue today while live trading on nifty futures on trading view using API. I had a long position open and then later a short order was trigerred on trading view chart. The API bridge exited the long position but did not initiated the short position. I have no idea why did this happend. On the 'trade history' screen o api.. there were only 2 position mentioend . First a LE and then a SE. ideally there shoul be LE, LX and then SE. is there some settings that i am missing here ?
Where am I?
In FYERS Community - Pick others' brains on Trading/Investing you can ask and answer questions and share your experience with others!
Sorry, the information given by you is incomplete to provide a solution.
If you face a problem, always take a backup when problem is faced, for diagnosis later. Go to Application Settings -> Backup & Restore, Then tick all and take todays backup. You can share this backup with Fyers support team (Pravin/Vinay) for a solution.
You can also solve it by yourself. See here videos how to interpret logs https://mycoder.pro/apibridge/what-are-full-logs-application-logs-and-api-logs/
so , as per the above snapshot, there was 1 LE (trading 1 lot) order and later there was short entry and exit for previous long was triggered on the same candle at the same time . but only the long position got exited and short entry did not happened.
i observed that Trading view charts shows type:SE (-2) when it has to exit a previously long position and enter new short and not LX and SE separately.
is this happening because of the setting 'Avoid consecutive order placement with same values' ?
Sorry, but you are missing the point again. You can also solve it by yourself. See here videos how to interpret logs https://mycoder.pro/apibridge/what-are-full-logs-application-logs-and-api-logs/
APIBridge does NOT control what is happening in TradingView. You are trying to figure which APIBridge settings are influencing TV signals which is conceptually wrong. If you are getting wrong signals in TradingView, it may be from wrong pinescript code or wrong settings. If you are using one of our pinescript code, please specify where you downloaded. We will give your pinescript solution and it has nothing to do with apibridge settings. If you have taken the code from internet, you may need to fix it yourself.
The tradingview signals are fine and i don't have issues with the way the signals are generated. The issue happens only when the previous position is exit and new position entery signal is generated simultaneously.
Ok, please call Fyers support (Pravin/Vinay). We will be more than happy to arrange support with your computer screen sharing.