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.
There will be no leak, full stop.
Time will tell.
Just don't hide the monitoring.
Grailers arguing over which of them is the least embarrassing leak ))
swindler
There won't be a flush and that's the end of it.
A great theorist but no practitioner
There won't be a drawdown, full stop.
If you top up when there's a slump, there definitely won't be one).
If you top up when there's a slump, there definitely won't be one).
Put the function on already and you don't have to refill.
Entering the EA menu
further calculation of the lot from the stoploss
//+---------------------------------------------------------------------------+ //| Функция расщета риска от процента и расстояния (c) Boshetunmay 2021 + //| sl = stoploss + //| risl = risk in percent + //| ID = InitialDeposit + //+---------------------------------------------------------------------------+ double LotSize(int sl,double risk,int ID) { double Free; if(ID > AccountFreeMargin()) Free = AccountFreeMargin(); else Free = ID; double LotVal = MarketInfo(_Symbol,MODE_TICKVALUE);//стоимость 1 пункта 1 лота double Min_Lot = MarketInfo(_Symbol,MODE_MINLOT); double Max_Lot = MarketInfo(_Symbol,MODE_MAXLOT); double Step = MarketInfo(_Symbol,MODE_LOTSTEP); if(sl<=0) return(Min_Lot); // исключение деления на ноль double Lot = NormalizeDouble((MathFloor((Free*risk/100)/(sl*LotVal)/Step)*Step),2); if(Lot<Min_Lot) Lot=Min_Lot; if(Lot>Max_Lot) Lot=Max_Lot; return(Lot); } //--- End ---Put the function on already and you don't have to refill.
Entering the EA menu
then calculate the lot from the stoploss.
Apparently, you don't know what you're talking about at all.
And lot calculation is important, but not here.