plot(C, "C", colorblack);
myMA = MA(C,13);
plot(myMA, "MA", colorblue);
plot(C - myMA, "Distance", colorgreen, styleHistogram | styleownscale);

Pardon my saying so but one thing that would really help you would be 
to read the AFL manual. This is a very simple problem to solve.

Barry

--- In [email protected], "Mohammed" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
> Any one can create indicator that can measure the distance between 
> price and Simple Moving average and plot the result as a histogram or 
> any good shape.
> 
> Regards.
>


Reply via email to