Relative Content

Tag Archive for webhooksbinance

How to Correct a Binance Webhook with TradingView MACD Bot that Only Closes Long Positions on Short Signals?

I am using a Binance webhook with TradingView to execute trades on Ethereum based on MACD signals. However, I am having some issues with my bot. Despite my efforts, I have not been able to resolve the following problem: When a long signal is received, the bot opens a long position correctly. However, when a short signal is received, it only closes the long position instead of opening a short position. Subsequently, on the next long signal, it opens a new long position. I have tried various approaches to fix this, but nothing has worked so far. How can I correct this behavior?