more than 70 losing trades - investors will scatter... :-)
What is MM from Gerchik? I use the following principle, if trade closed in profit, then a small increase in the lot of available funds, not including bonuses, if 2 lots in a row, then the lot is reduced by 3 times, if again a lot is lost, the lot is as small as BC allows, if then the profit, the lot returns to the initial.
double Lots = 0.1;//начальный лотexterndouble MaximumRisk = 0.1;//прогресия лота на каждые 500 баланса +0.1 лот. например депозит стал 1000 лот =0.2, 1500 лот =0.3 итдexterndouble DecreaseFactor = 3.0;
externdouble balans = 500; //шаг баланса
double LotsOptimized() {
double minlot = MarketInfo(Symbol(), MODE_MINLOT);
double maxlot = MarketInfo(Symbol(), MODE_MAXLOT);
double lot = Lots;
int orders = OrdersHistoryTotal();
int losses = 0;
lot = NormalizeDouble((AccountFreeMargin()- AccountCredit()) * MaximumRisk / balans, 2);
if (DecreaseFactor > 0.0) {
for (int i = orders - 1; i >= 0; i--) {
if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY) == FALSE) {
Print("Error in history!");
break;
}
if (OrderSymbol() != Symbol() || OrderType() > OP_SELL) continue;
if (OrderProfit() > 0.0) break;
if (OrderProfit() < 0.0) losses++;
}
if (losses > 1) lot = NormalizeDouble(lot - lot * losses / DecreaseFactor, 2);
}
if(lot < minlot) lot = minlot;
if(lot > maxlot) lot = maxlot;
return (lot);}
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.
Where ok) first of all there is no ticky mt4 test at all
Secondly, there is no profit, there will be more at work)
Yes, it will work! You can already open an investment fund with such an owl!)
That'll do! You could open an investment fund with an owl like that!)
from 13 January this year
Nice one! Pity not a real one)
That'll do! You can already open an investment fund with an owl like that!)
:-)
You're looking at the wrong pictures after all... :-)
third day coming up multicurrency! 6 pairs! although i think it's going to lose! and yet i'll see how!
:-)
You're looking at the wrong pictures after all... :-)
No, they are))) I'm just in an optimistic mood today)))
He's a good one! Too bad it wasn't real)
Nah, not on you)))) I'm just in an optimistic mood today.)
It's a warm-up, isn't it? :-) TRE-NI-RO-VKA!!! :-)
I check tools and everything else.
more than 70 losing trades - investors will scatter... :-)
What is MM from Gerchik? I use the following principle, if trade closed in profit, then a small increase in the lot of available funds, not including bonuses, if 2 lots in a row, then the lot is reduced by 3 times, if again a lot is lost, the lot is as small as BC allows, if then the profit, the lot returns to the initial.