A reversal indicator Priliv.mq4 Indicator For MT4
O A reversal indicator Priliv.mq4 Indicator For MT4 desenha quatro linhas importantes nos gráficos de preços. A linha while é traçada com base na EMA 8 e fornece aos comerciantes uma pista clara sobre a direção da tendência. E as três linhas restantes mostram a força da tendência, o alvo fechado e maior para determinadas configurações de negociação.
Instalando o A reversal indicator Priliv.mq4 Indicator For MT4
Depois de baixar o indicador através do formulário acima, você precisa descompactar o arquivo zip. Em seguida, você precisa copiar o arquivo Priliv.mq4 na pasta MQL4Indicators da sua instalação do MT4 . Depois disso, reinicie o MT4 e você poderá ver o indicador na lista de indicadores.
Parâmetros da A reversal indicator Priliv.mq4 Indicator For MT4
O A reversal indicator Priliv.mq4 Indicator For MT4 possui parâmetros 0 para configurar.
Buffers of the A reversal indicator Priliv.mq4 Indicator For MT4
O A reversal indicator Priliv.mq4 Indicator For MT4 fornece buffers 4 .
SetIndexBuffer(0,Buf_1);
SetIndexBuffer(1,Buf_2);
SetIndexBuffer(2,Buf_3);
SetIndexBuffer(3,Buf_4);
Principais partes do código
int start()
{
int counted_bars=IndicatorCounted();
if(counted_bars lt 0) return(-1);
if(counted_bars gt 0) counted_bars--;
int limit=Bars-counted_bars;
if(counted_bars==0) limit--;
i=limit;
//--------------------------------------------------------------------------------------------------------------------
for (n=2;n lt =Kol_Line;n++)
{
k=n-1;
Polzun_1[n]=Polzun_1[k]/KK;
Polzun_2[n]=Polzun_2[k]/KK;
Polzun_3[n]=Polzun_3[k]/KK;
}
//====================================================================================================================
while(i gt =0)
{
//--------------------------------------------------------------------------------------------------------------------
MA_0 = iMA( NULL, 0, Period_MA_0, 0, MODE_LWMA, PRICE_TYPICAL, i );
Buf_1[i]=MA_0; // Îïîðíàÿ ÌÀ
//--------------------------------------------------------------------------------------------------------------------
Buf_2[i]= 0;
MA_11 = iMA( NULL, 0, Period_MA_1, 0, MODE_LWMA, PRICE_TYPICAL, i );
for (n=1;n lt =Kol_Line;n++)
{
MA_12 = iMA( NULL, 0, Period_MA_1, 0, MODE_LWMA, PRICE_TYPICAL, i +Polzun_1[n]);
Line[n] = MA_11-MA_12;
Buf_2[i] = Buf_2[i]+Line[n];
}
Buf_2[i]= MA_0 + K*Buf_2[i]/Kol_Line;
//--------------------------------------------------------------------------------------------------------------------
Buf_3[i]= 0;
MA_11 = iMA( NULL, 0, Period_MA_2, 0, MODE_LWMA, PRICE_TYPICAL, i );
for (n=1;n lt =Kol_Line;n++)
{
MA_12 = iMA( NULL, 0, Period_MA_2, 0, MODE_LWMA, PRICE_TYPICAL, i +Polzun_2[n]);
Line[n] = MA_11-MA_12;
Buf_3[i] = Buf_3[i]+Line[n];
}
Buf_3[i]= iMA( NULL, 0, Period_MA_0*K2, 0, MODE_LWMA, PRICE_TYPICAL, i) + K*Buf_3[i]/Kol_Line;
if (K2==0)Buf_3[i]=0;
//--------------------------------------------------------------------------------------------------------------------
Buf_4[i]= 0;
MA_11 = iMA( NULL, 0, Period_MA_3, 0, MODE_LWMA, PRICE_TYPICAL, i );
for (n=1;n lt =Kol_Line;n++)
{
MA_12 = iMA( NULL, 0, Period_MA_3, 0, MODE_LWMA, PRICE_TYPICAL, i +Polzun_3[n]);
Line[n] = MA_11-MA_12;
Buf_4[i] = Buf_4[i]+Line[n];
}
Buf_4[i]= iMA( NULL, 0, Period_MA_0*K3, 0, MODE_LWMA, PRICE_TYPICAL, i) + K*Buf_4[i]/Kol_Line;
if (K3==0)Buf_4[i]=0;
//--------------------------------------------------------------------------------------------------------------------
i--;
}
//====================================================================================================================
return(0);
}
//ææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ
int deinit()
{
return(0);
}
//ææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ