not enough money [instant sell/buy]

 

I find these errors 

test on EURUSD,H1 (netting)
there are no trading operations
test on XAUUSD,D1 (netting)
strategy tester report 162 total trades
test on GBPUSD,M30 (netting)
strategy tester report 1 total trades
test on EURUSD,M1 (netting)
 2020.02.18 23:09:40   current account state: Balance: 1.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 0.00, FreeMargin: 1.00
 2020.02.18 23:09:40   calculated account state: Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 13.00, FreeMargin: -12.00
 2020.02.18 23:09:40   not enough money [instant sell 0.01 GBPUSD at 1.30018]
 2020.02.18 23:09:40   failed instant sell 0.01 GBPUSD at 1.30018 [No money]
 2020.03.02 23:56:59   current account state: Balance: 1.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 0.00, FreeMargin: 1.00
 2020.03.02 23:56:59   calculated account state: Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 12.75, FreeMargin: -11.75
 2020.03.02 23:56:59   not enough money [instant buy 0.01 GBPUSD at 1.27536]
 2020.03.02 23:56:59   failed instant buy 0.01 GBPUSD at 1.27536 [No money]
 2020.03.09 00:20:00   current account state: Balance: 1.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 0.00, FreeMargin: 1.00
 2020.03.09 00:20:00   calculated account state: Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 13.09, FreeMargin: -12.09
 2020.03.09 00:20:00   not enough money [instant sell 0.01 GBPUSD at 1.30939]
 2020.03.09 00:20:00   failed instant sell 0.01 GBPUSD at 1.30939 [No money]
 2020.04.14 23:37:20   current account state: Balance: 1.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 0.00, FreeMargin: 1.00
 2020.04.14 23:37:20   calculated account state: Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 12.64, FreeMargin: -11.64
 2020.04.14 23:37:20   not enough money [instant sell 0.01 GBPUSD at 1.26358]
 2020.04.14 23:37:20   failed instant sell 0.01 GBPUSD at 1.26358 [No money]
 2020.04.28 00:54:20   current account state: Balance: 1.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 0.00, FreeMargin: 1.00
 2020.04.28 00:54:20   calculated account state: Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 12.43, FreeMargin: -11.43
 2020.04.28 00:54:20   not enough money [instant sell 0.01 GBPUSD at 1.24298]
 2020.04.28 00:54:20   failed instant sell 0.01 GBPUSD at 1.24298 [No money]
 2020.05.11 23:17:40   current account state: Balance: 1.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 1.00, Margin: 0.00, FreeMargin: 1.00

While I use code :

                if (
                     (
                      && (AccountInfoInteger(ACCOUNT_MARGIN_SO_MODE) == ACCOUNT_STOPOUT_MODE_MONEY)
                      && (AccountInfoDouble(ACCOUNT_FREEMARGIN)-SymbolInfoDouble(Symbol(), SYMBOL_MARGIN_INITIAL)*Lott*SymbolInfoDouble(Symbol(),SYMBOL_MARGIN_LONG)>AccountInfoDouble(ACCOUNT_MARGIN_SO_SO)))
                      || ((AccountInfoInteger(ACCOUNT_MARGIN_SO_MODE) == ACCOUNT_STOPOUT_MODE_PERCENT)
                      && ((AccountInfoDouble(ACCOUNT_EQUITY)/(AccountInfoDouble(ACCOUNT_EQUITY) - (AccountInfoDouble(ACCOUNT_FREEMARGIN) - SymbolInfoDouble(Symbol(), SYMBOL_MARGIN_INITIAL) * Lott * SymbolInfoDouble(Symbol(), SYMBOL_MARGIN_LONG))) * 100 > AccountInfoDouble(ACCOUNT_MARGIN_SO_SO)))
                     )
                   )


in Ontick()

 
Amgad Samir Nassief Abdelmalek:

I find these errors 

While I use code :


in Ontick()

Hi there, I'm facing the same issues, did you managed to solve it?

 
Eng Wai Chung #: Hi there, I'm facing the same issues, did you managed to solve it?

The OP's balance was $1.00. Obviously there is not enough money for the trade. What did they expect?

As for you, show your own details. Show your log files. Explain in detail.

 
Hello, did you solve this problem , what did you do please?
 
Mohamed Kamel Touati #: Hello, did you solve this problem , what did you do please?

Did you read the thread? — "The OP's balance was $1.00. Obviously there is not enough money for the trade. What did they expect? "