Author

Topic: algo trading bot issues (Read 82 times)

legendary
Activity: 2534
Merit: 1338
July 05, 2022, 01:15:23 PM
#6
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.


There is the possibility that one of your validations is wrong on your code, for example if you had something like this:

if X>=1 then do some code

and

if X<=1 then do some other code

Then both of those instructions will be executed when X had a value of 1, which could explain why your bot opened two trades at the same time on the opposite direction, anyway I will recommend that you use your bot in a demo account if you can and only once you have debugged all the possible issues you try to use it with real money on the line.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
July 04, 2022, 05:37:04 PM
#5
Do you know if the problem would be with my script or the setting on wundertrading

You've not really told us much about either, can you also check your trading history to see if position size is increased during trading (like if a long is opened and then a second long is opened too)?


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.

And was the stop loss order inputted on the exchange before the wundertrading one was triggered?

Again this isn't enough information to go off to know why exactly but it probably points to the script having issues.
legendary
Activity: 1624
Merit: 1200
Gamble responsibly
July 04, 2022, 05:14:34 PM
#4
I thought it was impossible to open a long when in a short position and Visversa
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.
jr. member
Activity: 172
Merit: 7
July 04, 2022, 05:03:56 PM
#3
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.

legendary
Activity: 1624
Merit: 1200
Gamble responsibly
July 04, 2022, 04:16:47 PM
#2
That is just an issue with the bot that you are using, I have opened as many as possible long or short position on Binance countless number of times and no issue or problem of sort encountered. I am not a bot trader, I trade manually though. Also the bot is from you, not Binance.
jr. member
Activity: 172
Merit: 7
July 04, 2022, 03:53:35 PM
#1
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
Jump to: