Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 206

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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)