the thing I noticed is a situation that during one of my tests happens, so I start with 200, and money management is set to true with lot size 0.01, the EA is in profit but due to many positions open the margin level is reached and it stops out even though it's in profit, here's the photo:
this is why I want to put a limit on the number of positions to open, what to do you suggest on this? check margin level before each order to be more than a certain value? because I checked and there are 26 open positions of 0.01 and margin level is just over 50%
I propose to rewrite all this to the trading engine version 4.XXXX (articleПочти конструктор для создания советника ). In the new engine, you can always allow only one position.
Предлагаю свой набор торговых функций в виде готового советника. Представленный способ позволяет получать множество торговых стратегий простым добавлением индикаторов и изменением входных параметров.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
thank you so much.
the thing I noticed is a situation that during one of my tests happens, so I start with 200, and money management is set to true with lot size 0.01, the EA is in profit but due to many positions open the margin level is reached and it stops out even though it's in profit, here's the photo:
this is why I want to put a limit on the number of positions to open, what to do you suggest on this? check margin level before each order to be more than a certain value? because I checked and there are 26 open positions of 0.01 and margin level is just over 50%
I propose to rewrite all this to the trading engine version 4.XXXX (article Почти конструктор для создания советника ). In the new engine, you can always allow only one position.