Reshetov: You can get banned for decompiling here.
Where can you see that it is a decomplit? ) Unfortunately I could not find the author and this indicator was showing good market entries in 2006, today I remembered it)) and I want to understand what its logic is based on.
Vinsant: Where does it show that it's decomplete? )
A moderator will come along and figure out the logic of the code you posted. So you'd better hide it away before they show you where you can and can't see it.
Reshetov: A moderator will come along and figure out the logic behind the code you posted. So you'd better hide it away, before you're pointedly shown where you can and can't see it.
Oh, I see, so it's a scientific exercise. The parameter is not stored anywhere, so we'll know.
It cannot be stored anywhere in the terminal, because the leverage may be floating and only the server knows about it. In my opinion, the most correct way to calculate it is as follows:
double minlot = MarketInfo(Symbol(), MODE_MINLOT);
double maxlot = MarketInfo(Symbol(), MODE_MAXLOT);
double lotstep = MarketInfo(Symbol(), MODE_LOTSTEP);
double SMALL = 0.0000001;
double lot, nextlot;
//обнуляем внутреннюю переменную ошибкиGetLastError();
//смотрим, насколько дают открытьсяfor(lot=0; lot<maxlot+SMALL && GetLastError()!=ERR_NOT_ENOUGH_MONEY; lot = nextlot)
{
if(lot<minlot) nextlot = minlot;
else nextlot = lot+lotstep;
AccoutFreeMarginCheck(Symbol(), OP_BUY, nextlot);
}
// ответ на вопрос уже в переменной lot, а если вообще открыться нельзя, то там 0. Осталось нормализовать.// Нормализацию правильно проводить от lotstep, а не от minlot, т.к. встречаются ситуации когда, например, // minlot = 3.0, а lotstep = 0.1int dig = -MathFloor(MathLog(lotstep)/MathLog(10));
lot = NormalizeDouble(lot, dig);
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.
Help me understand the logic behind this indicator.
You can get banned for decompiling here.
Process via MinLot and LotStep
I need to do for example this - NormalizeDouble(lots,precision);
What would this do (MinLot and LotStep)?
Where does it show that it's decomplete? )
A moderator will come along and figure out the logic behind the code you posted. So you'd better hide it away, before you're pointedly shown where you can and can't see it.
I need to do for example this - NormalizeDouble(lots,precision);
What would this do (MinLot and LotStep)?
I just sketched it out. It goes something like this:
Oh, I see, so it's a scientific exercise. The parameter is not stored anywhere, so we'll know.
Oh, I see, so it's a scientific exercise. The parameter is not stored anywhere, so we'll know.
It cannot be stored anywhere in the terminal, because the leverage may be floating and only the server knows about it. In my opinion, the most correct way to calculate it is as follows:
Tell me why there may be an error 130
Tell me why there may be an error 130