Dear friends/AFL experts,
Please help to modify following afl code.....
Its ma line which change colour with its movement ...eg up-green down-red.flat blue...Now i want to show fig (approximate) of opposite change of colour ...eg...when currently its in green then I want to show the fig (aprox)when it change to blue or red.....is it possible?i need this fig right side of chart where current rate shows...with colour...
_SECTION_BEGIN("MA");
Len = Param("Periods", 30, 10, 60, 10 );
Av = MA(C, Len);
Color = IIf(Av > Ref(Av,-1) AND C > Av, colorGreen, IIf(Av < Ref(Av,-1) AND C < Av, colorRed, colorBlue));
Plot(Av, "", Color, ParamStyle("Av",styleThick, maskAll));
Please help to modify following afl code.....
Its ma line which change colour with its movement ...eg up-green down-red.flat blue...Now i want to show fig (approximate) of opposite change of colour ...eg...when currently its in green then I want to show the fig (aprox)when it change to blue or red.....is it possible?i need this fig right side of chart where current rate shows...with colour...
_SECTION_BEGIN("MA");
Len = Param("Periods", 30, 10, 60, 10 );
Av = MA(C, Len);
Color = IIf(Av > Ref(Av,-1) AND C > Av, colorGreen, IIf(Av < Ref(Av,-1) AND C < Av, colorRed, colorBlue));
Plot(Av, "", Color, ParamStyle("Av",styleThick, maskAll));
Last edited: