algo trading bot issues
algo trading bot issues
OK set up my first bot yesterday built in pine script placed on wundertrading tied to binance usdt futures
Its working and both platforms are showing me similar results and after 1 day is profitable
I have one issue however It seems to have opened two trades at the same time one short and one long
I do not know how it did this I have set my script to invest 100% of capital per trade (no leverage) and set the same on wundertrading
I may need to check an open position to see what is happening but anyone know if this could be an issue or is possible;e
He would not be able to open both long and short position if the exchange does not allow that.
On the exchanges that I have used before:
On Binance, you can open long position and later open short position without closing the long position and vice versa if you use hedge mode, but you can not with one-way mode.
On OKX, you can use long/short position to do that also, but if changed to net mode, it is the same as one-way mode on Binance and you will not be able to do that.
But the fault is from the script not the exchange.
I thought it was impossible to open a long when in a short position and Visversa
Do you know if the problem would be with my script or the setting on wundertrading
also noticed it closed a losing trade at the safety stop loss of 3% I put in wundertrading not at 2% which I have coded in the script.