if (St==7)
{
double Pris_Lin=0;
Lots0=(L(OP_SELL)+(Bid-0)/10*Lotsc;
// Для Евро // Lots0=(L(OP_SELL)+(1.10890-0)/10*0.1;// Lots0=(L(OP_SELL)+0.0110890;
.....................
if (Op_Pr>=Bid)
Lots0=L(OP_SELL);
if (Lotsc>Lots0) Loys0=Lotsc;
}
If the lot size is rounded according to the requirements of the DC, the lot will either increase by 0.01 or remain unchanged.
But there is no rounding, so there is just an error - Invalid lot volume.
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.
Have you tried normalising to 2 digits?
And normalise what? The current price, and then compare..... with what?
I don't knowwhat you're talking about
.
I have a mac book. I can't even copy from the meta-editor
Decipher the values and type of variables in the second case.
Decipher the values and type of variables in the second case.
Hello.
Please help to fix the fact that the current price crosses any round price, not a specific one as in the example.
For example:
or
static double prevBid=EMPTY_VALUE;
if (prevBid!=EMPTY_VALUE && prevBid<=levelPrice && Bid > levelPrice ) {
/// цена пересекла уровень снизу вверх
}
prevBid=Bid;
Hello.
Please help to fix the fact that the current price crosses any round price, not a specific one as in the example.
For example:
or
Calling
Let's try to substitute values in the formula
If the lot size is rounded according to the requirements of the DC, the lot will either increase by 0.01 or remain unchanged.
But there is no rounding, so there is just an error - Invalid lot volume.
Let's try to substitute values in the formula
If the lot size is rounded according to the requirements of the DoC, the lot size will either increase by 0.01 or remain the same.
But there is no rounding, so there is just an error - Invalid lot volume.
Actually, Pris_lin is a price, and it is never equal to zero
Actually Pris_lin is a price and it is never zero.
Look carefully at the code you posted on the previous page.
Look carefully at the code you posted on the previous page.
Yeah, I can see that. That's why I'm asking for help.
Look carefully at the code you posted on the previous page.
I need to take the price and then modulo calculate the difference and that's it( Bid - Pris_lin)