Experts: Disaster

 

Disaster:

Works with pending Buy Stop and Sell Stop orders. The EA uses the iMA (Moving Average, MA) indicator with a VERY large period equal to 590.

Disaster, USDCAD

Author: Vladimir Karputov

 

Hello. It is necessary to be able to limit the number of pending orders. I tested on futures (forts), at some moments up to 50 orders (50 lots) were opened. I had to control it manually otherwise the deposit will not withstand.

If possible, please provide a code fragment, where to put it in the programme.


 
alex123456:

Hello. It is necessary to be able to limit the number of pending orders. I tested on futures (forts), at some moments up to 50 orders (50 lots) were opened. I had to control manually otherwise the deposit will not withstand.

If possible, please provide a code fragment, where to put it in the programme.


I do not have the opportunity to test on the stock exchange. Therefore, using this code on the stock exchange you act at your own risk.

 

Naturally, everyone trades at their own risk. But I ask about something else. If you have a chance, please provide a code fragment with a limit on the number of pending orders

 
alex123456:

Naturally, everyone trades at their own risk. But I ask about something else. If you have a chance, please provide a code fragment with a limit on the number of pending orders


I am not talking about risks now. Since I have no opportunity to test on the stock exchange, I simply have no right to promise or do anything for those who run my codes on the stock exchange.