Hello Friends,
I am new to AFL coding and facing problem in this AFL.
First what I need:-
I want that:
a. a circle or star in GREEN should appear BELOW the PRICE CANDLE when
RSI(9) goes BELOW 30.
b. A circle or Star in RED should appear ABOVE the price candle when RSI(9) goes ABOVE 70.
I want these symbols in PRICE CHART not in a separate window, I also don't want to show rsi line, just these two symbols.
Now this is what I did in my AFL:-
s=RSI(9);
C=IIf(s>70, colorRed, IIf(s<30, colorGreen, colorBlue));
Cond=IIf(s>70, T, IIf(s<30, B, A);
pos=IIf(Cond=T, shapePositionAbove, (IIf(Cond=B, ShapePositionBelow));
PlotShapes(shapeCircle, C, pos);
But this is giving me all sort of problems with one error after another.
Pls help me by rectifying this coding.
Thanks
Sanjeev Bhatia
I am new to AFL coding and facing problem in this AFL.
First what I need:-
I want that:
a. a circle or star in GREEN should appear BELOW the PRICE CANDLE when
RSI(9) goes BELOW 30.
b. A circle or Star in RED should appear ABOVE the price candle when RSI(9) goes ABOVE 70.
I want these symbols in PRICE CHART not in a separate window, I also don't want to show rsi line, just these two symbols.
Now this is what I did in my AFL:-
s=RSI(9);
C=IIf(s>70, colorRed, IIf(s<30, colorGreen, colorBlue));
Cond=IIf(s>70, T, IIf(s<30, B, A);
pos=IIf(Cond=T, shapePositionAbove, (IIf(Cond=B, ShapePositionBelow));
PlotShapes(shapeCircle, C, pos);
But this is giving me all sort of problems with one error after another.
Pls help me by rectifying this coding.
Thanks
Sanjeev Bhatia