- ago
Hello, I'm getting this error:

Binance Broker: Error Placing Order: Object reference not set to an instance of an object.

When I start my auto trade and it tries to add an order can someone help me?

* It also happens when I try to add orders manually

#WL8
0
791
9 Replies

Reply

Bookmark

Sort
Cone8
 ( 6.24% )
- ago
#1
I'm not seeing this problem on the Spot Test Network.
Which network are you connecting to and which symbols are giving you trouble?
0
- ago
#2
I'm using the margin account
0
Cone8
 ( 6.24% )
- ago
#3
Since Binance is working for us on the networks that we can connect to, we need something else to go on to work the problem occurring for you. Please post Order Manager images, full text messages from the Log Viewer (Ctrl+L), etc. please.
0
- ago
#4
It opens the first order of the strategy and doesn't close it when it should, as a result, that's what you have.

0
- ago
#5
0
Cone8
 ( 6.24% )
- ago
#6
I see Sell Signals for at least 8 different currency pairs, and for each of these the broker responded with "Account has insufficient balance". In other words, it appears that your live account does not hold the [hypothetical backtest] positions you're trying to sell so it's considering these opening (short) trades.

Do you not agree with the error message? What is the account balance?

You can also check the Portfolio Sync preference(s) "Reduce Size... " and/or "Always set Order Quantity..." so that the Order Manager doesn't transmit exit orders for positions that you do not hold.
1
- ago
#7
As I mentioned in the other post the first buy got through the bot (THAT'S MY REAL ACCOUNT THERE AND NOT A BACKTEST) purchased it so I had the currency on my wallet, that was the first event ... the second is: Bot tries to close the first position and FAILS and display that insufficient fund message. On a 3rd-moment the bot keeps running and trying to open and close positions that he could not open because it failed to close the first position.

Also as you can see on the strategy configuration it's a SINGLE POSITION strategy, so if you see 2 signals only 1 is open based on a weighed measurament.
0
Cone8
 ( 6.24% )
- ago
#8
QUOTE:
(THAT'S MY REAL ACCOUNT THERE AND NOT A BACKTEST)
With respect to a strategy, EVERYTHING IS BACKTEST. Strategies create hypothetical positions and do not have the account information. So if a single-position backtest currently holds a position, then it will be trying to exit it even if the account does not hold it.

Synchronizing with Positions and their sizes via the Trading Preferences is an Order Manager function, which occurs after the strategy has already Staged/Placed its hypothetical signals.

Re: SINGLE POSITION strategy
Just so we're clear, "Single Position" is on a per-symbol basis. If you run the strategy on a DataSet of many symbols, it can potentially hold a single position for each of the symbols.

QUOTE:
that was the first event ... the second is: Bot tries to close the first position and FAILS and display that insufficient fund message. .
Any chance of seeing a log of this event?

Even so, does it make sense that the broker responds with the "insufficient balance"? What is the fiat currency held by the account? Does it have a USDT balance?
0
- ago
#9
Yes, it does have USDT on my account.

And no there is no log of that anymore I won't keep trading my real money on something that is not working I did it to show you the error.

I can guarantee you.

01 - I had 0 positions open when I first run the bot
02 - The position were open by Wealthlab
03 - I have USDT on my account
04- It failed to close my position
05- Checking the option you suggested on WL-8 made it calculate the size of my position wrong about 5-10% of the position were still open after it close the position and there is nothing on my strategies that says I should keep any of my previously purchased assets. Meaning the position should be closed 100% of its size
0

Reply

Bookmark

Sort