Bitcoin Forum
May 04, 2024, 11:44:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: algo trading bot issues  (Read 66 times)
forestx (OP)
Jr. Member
*
Offline Offline

Activity: 168
Merit: 7


View Profile
July 04, 2022, 08: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
1714866299
Hero Member
*
Offline Offline

Posts: 1714866299

View Profile Personal Message (Offline)

Ignore
1714866299
Reply with quote  #2

1714866299
Report to moderator
1714866299
Hero Member
*
Offline Offline

Posts: 1714866299

View Profile Personal Message (Offline)

Ignore
1714866299
Reply with quote  #2

1714866299
Report to moderator
1714866299
Hero Member
*
Offline Offline

Posts: 1714866299

View Profile Personal Message (Offline)

Ignore
1714866299
Reply with quote  #2

1714866299
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714866299
Hero Member
*
Offline Offline

Posts: 1714866299

View Profile Personal Message (Offline)

Ignore
1714866299
Reply with quote  #2

1714866299
Report to moderator
1714866299
Hero Member
*
Offline Offline

Posts: 1714866299

View Profile Personal Message (Offline)

Ignore
1714866299
Reply with quote  #2

1714866299
Report to moderator
1714866299
Hero Member
*
Offline Offline

Posts: 1714866299

View Profile Personal Message (Offline)

Ignore
1714866299
Reply with quote  #2

1714866299
Report to moderator
Oshosondy
Legendary
*
Offline Offline

Activity: 1442
Merit: 1125


Gamble responsibly


View Profile
July 04, 2022, 09: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.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
forestx (OP)
Jr. Member
*
Offline Offline

Activity: 168
Merit: 7


View Profile
July 04, 2022, 10: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.

Oshosondy
Legendary
*
Offline Offline

Activity: 1442
Merit: 1125


Gamble responsibly


View Profile
July 04, 2022, 10: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.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 04, 2022, 10: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.
Silberman
Legendary
*
Offline Offline

Activity: 2506
Merit: 1333


View Profile
July 05, 2022, 06: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!