Hi everyone, I'm testing in live mode to better understand. Zorro opened a long trade, and also exited the trade successfully, but I see this message. It did not enter a short position though when it was supposed to.

Closing prohibited - check NFA flag!
[BTCUSDT::L00002] - can't close at attempt 1, 1@46438.16 at 17:11:06

I am using the stock plugin of binance futures. Thank you!


[Wed 22-01-05 17:15] 161 -0.0121 0/1 (46358.13)
Closing prohibited - check NFA flag!
[BTCUSDT::L00002] - can't close at attempt 2, 1@46358.13 at 17:15:00
!BTCUSDT: SELL 0.001 (q1 x la0.001) at MARKET
[BTCUSDT::S00003] Short 1@46358.13 Risk 0 at 17:15:00

(This did not enter a short position, only closed the long)

Here's the code:
Code
	if (crossOver(DEMAShort, DEMALong)) enterLong();
	if (crossUnder(DEMAShort, DEMALong)) enterShort();




Last edited by coinpump; 01/05/22 17:28.