![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
Hi all. Question: can I do on MT5 the same way as on MT4 an EA converts simple charts to bars?
If you need an EA I will post it.
Guys, post interesting indices better, then there will be interest in reprogramming them.
Interesting reprogramming indulgences:
There are more. Can anyone convert some very interesting indices from Metastock to MT5?
Interesting reprogramming indulgences:
There are more. Can anyone convert some very interesting indices from Metastock to MT5?
You cannot convert the first one, it is not the source
The source is in the attached file
the first one cannot be redone - it is not the source
The source is in the attached file
Yes, I agree. Thanks for the addition...Hello, help rewrite the correlation function on mt5 please!
double CorrelationIND(string Symbol1,string Symbol2,int CorrelationShift=0){ // ?????????? ??????????
double Correlation[],DiffBuffer1[],DiffBuffer2[],PowDiff1[],PowDiff2[];
ArrayResize(Correlation,CorrelationPeriod*2);ArrayResize(DiffBuffer1,CorrelationPeriod*2);
ArrayResize(DiffBuffer2,CorrelationPeriod*2);ArrayResize(PowDiff1,CorrelationPeriod*2);ArrayResize(PowDiff2,CorrelationPeriod*2);
for( int shift=CorrelationPeriod+1; shift>=0; shift--){
DiffBuffer1[shift]=iClose(Symbol1,0,shift)-iMA(Symbol1,0,CorrelationPeriod,0,MODE_SMA,PRICE_CLOSE,shift);
DiffBuffer2[shift]=iClose(Symbol2,0,shift)-iMA(Symbol2,0,CorrelationPeriod,0,MODE_SMA,PRICE_CLOSE,shift);
PowDiff1[shift]=MathPow(DiffBuffer1[shift],2);
PowDiff2[shift]=MathPow(DiffBuffer2[shift],2);
double u=0,l=0,s=0;
for( int i = CorrelationPeriod-1 ;i >= 0 ;i--){
u += DiffBuffer1[shift+i]*DiffBuffer2[shift+i];
l += PowDiff1[shift+i];
s += PowDiff2[shift+i];
}
if(l*s >0)Correlation[shift]=u/MathSqrt(l*s);
}
return(Correlation[CorrelationShift]);
return(-1);
}
Why didn't MT5 developers make a converter for indicators, scripts and experts from MT4?
Who has an opinion?
Why didn't MT5 developers make a converter for indicators, scripts and experts from MT4?
Who has an opinion?
Do they need it?