EMAV = EMA(V, 10);
Above = 0;
Below = 0;
if(BarCount > 10)
{
for(i = 1; i <11; i ++)
{
if(V[BarCount - i] > EMAV[BarCount - i]) Above = Above + 1;
if(V[BarCount - i] < EMAV[BarCount - i]) Below = Below + 1;
}
Plot(Above, "Above", colorGreen, styleOwnScale | styleNoDraw | styleNoLabel);
Plot(Below, "Below", colorRed, styleOwnScale | styleNoDraw | styleNoLabel);
}
=========================================================
i need to change this afl to the sume of if the volume bars above EMA(v,1o) and C>O in the last 10 dayes
and the sume of volume bars above EMA(v,1o) and C<O in the last 10 dayes
=========================================================
pleas peopel helpe who can change this afl
Above = 0;
Below = 0;
if(BarCount > 10)
{
for(i = 1; i <11; i ++)
{
if(V[BarCount - i] > EMAV[BarCount - i]) Above = Above + 1;
if(V[BarCount - i] < EMAV[BarCount - i]) Below = Below + 1;
}
Plot(Above, "Above", colorGreen, styleOwnScale | styleNoDraw | styleNoLabel);
Plot(Below, "Below", colorRed, styleOwnScale | styleNoDraw | styleNoLabel);
}
=========================================================
i need to change this afl to the sume of if the volume bars above EMA(v,1o) and C>O in the last 10 dayes
and the sume of volume bars above EMA(v,1o) and C<O in the last 10 dayes
=========================================================
pleas peopel helpe who can change this afl