![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
It could. Don't believe all what you read here
Yes but this:
Is kinda weird right ? it should at least be:
Yes but this:
Is kinda weird right ? it should at least be:
But i just can't figure out why he wants to do that.
Of course.
To avoid difference on 6th, 7th decimal...
Exactly for this reason
It could. Don't believe all what you read here
Try this:
{
for(int i=1; i<fmin(50,Bars-2); i++)
{
double MA1=iMA(_Symbol,0,120,0,MODE_SMA,PRICE_CLOSE,i),
MA2=iMA(_Symbol,0,120,0,MODE_SMA,PRICE_CLOSE,i+1);
if(MA1<=MA2) return(false);
}
return(true);
}
{
// do something
}