Complex Common Indicator For MT4
L' Complex Common Indicator For MT4 vous donne des informations précises concernant l'état de surachat et de survente des paires de devises. Les calculs sont basés sur les devises de base et de cotation et le récent mouvement des prix est souligné sur le mouvement des prix. Lorsque la courbe de l'indicateur s'élargit, vous devez rechercher un marché tendance, ce qui pourrait créer une grande opportunité de prise de bénéfices. Au contraire, essayez de rester dans la ligne de touche lorsque les courbes indicatrices restent près de la ligne de référence.
Installation du Complex Common Indicator For MT4
Après avoir téléchargé l'indicateur via le formulaire ci-dessus, vous devez décompresser le fichier zip. Ensuite, vous devez copier le fichier Complex_Common.mq4 dans le dossier MQL4Indicators de votre installation MT4 . Ensuite, redémarrez MT4 et vous pourrez voir l’indicateur dans la liste des indicateurs.
Paramètres du Complex Common Indicator For MT4
Complex Common Indicator For MT4 a des paramètres 0 à configurer.
Tampons du Complex Common Indicator For MT4
Le Complex Common Indicator For MT4 5 Complex Common Indicator For MT4 fournit des tampons 5 .
SetIndexBuffer(0,USD);
SetIndexBuffer(1,EUR);
SetIndexBuffer(2,GBP);
SetIndexBuffer(3,CHF);
SetIndexBuffer(4,JPY);
Parties principales du code
int start()
{
int limit;
int counted_bars=IndicatorCounted();
//---- ïðîâåðêà íà âîçìîæíûå îøèáêè
if(counted_bars lt 0) return(-1);
//---- ïîñëåäíèé ïîñ÷èòàííûé áàð áóäåò ïåðåñ÷èòàí
if(counted_bars gt 0) counted_bars-=10;
limit=Bars-counted_bars;
//---- îñíîâíîé öèêë
int Price=6;
int Mode=3;
int per1,per2;
switch(Period())
{
case 1: per1=m1_per; per2=m1_fast; break;
case 5: per1=m5_per; per2=m5_fast; break;
case 15: per1=m15_per;per2=m15_fast; break;
case 30: per1=m30_per;per2=m30_fast; break;
case 60: per1=h1_per; per2=h1_fast; break;
case 240: per1=h4_per; per2=h4_fast; break;
case 1440: per1=d_per; per2=d_fast; break;
case 10080: per1=w_per; per2=w_fast; break;
case 43200: per1=mn_per; per2=mn_fast; break;
}
for(int i=0; i lt limit; i++)
{
USD[i]=
(iMA("EURUSD",0,per1,0,Mode,Price,i)-
iMA("EURUSD",0,per2,0,Mode,Price,i))*10000
+
(iMA("GBPUSD",0,per1,0,Mode,Price,i)-
iMA("GBPUSD",0,per2,0,Mode,Price,i))*10000
+
(iMA("USDCHF",0,per2,0,Mode,Price,i)-
iMA("USDCHF",0,per1,0,Mode,Price,i))*10000
+
(iMA("USDJPY",0,per2,0,Mode,Price,i)-
iMA("USDJPY",0,per1,0,Mode,Price,i))*100
;
EUR[i]=
(iMA("EURUSD",0,per2,0,Mode,Price,i)-
iMA("EURUSD",0,per1,0,Mode,Price,i))*10000
+
(iMA("EURGBP",0,per2,0,Mode,Price,i)-
iMA("EURGBP",0,per1,0,Mode,Price,i))*10000
+
(iMA("EURCHF",0,per2,0,Mode,Price,i)-
iMA("EURCHF",0,per1,0,Mode,Price,i))*10000
+
(iMA("EURJPY",0,per2,0,Mode,Price,i)-
iMA("EURJPY",0,per1,0,Mode,Price,i))*100
;
GBP[i]=
(iMA("GBPUSD",0,per2,0,Mode,Price,i)-
iMA("GBPUSD",0,per1,0,Mode,Price,i))*10000
+
(iMA("EURGBP",0,per1,0,Mode,Price,i)-
iMA("EURGBP",0,per2,0,Mode,Price,i))*10000
+
(iMA("GBPCHF",0,per2,0,Mode,Price,i)-
iMA("GBPCHF",0,per1,0,Mode,Price,i))*10000
+
(iMA("GBPJPY",0,per2,0,Mode,Price,i)-
iMA("GBPJPY",0,per1,0,Mode,Price,i))*100
;
CHF[i]=
(iMA("USDCHF",0,per1,0,Mode,Price,i)-
iMA("USDCHF",0,per2,0,Mode,Price,i))*10000
+
(iMA("EURCHF",0,per1,0,Mode,Price,i)-
iMA("EURCHF",0,per2,0,Mode,Price,i))*10000
+
(iMA("GBPCHF",0,per1,0,Mode,Price,i)-
iMA("GBPCHF",0,per2,0,Mode,Price,i))*10000
+
(iMA("CHFJPY",0,per2,0,Mode,Price,i)-
iMA("CHFJPY",0,per1,0,Mode,Price,i))*100
;
JPY[i]=
(iMA("USDJPY",0,per1,0,Mode,Price,i)-
iMA("USDJPY",0,per2,0,Mode,Price,i))*100
+
(iMA("EURJPY",0,per1,0,Mode,Price,i)-
iMA("EURJPY",0,per2,0,Mode,Price,i))*100
+
(iMA("GBPJPY",0,per1,0,Mode,Price,i)-
iMA("GBPJPY",0,per2,0,Mode,Price,i))*100
+
(iMA("CHFJPY",0,per1,0,Mode,Price,i)-
iMA("CHFJPY",0,per2,0,Mode,Price,i))*100
;
}
//----
return(0);
}
//+------------------------------------------------------------------+