Skip to main content

RSI value at the Bar for Amibroker (AFL)

Divyesh over 13 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    amibroker

this is not a any treading stretagy, but will display RSI value at the candale or baar. which will help to cealr the position….!

just copy paste this formula below the Code of Candle/Bar plotting in your AFL…!

Indicator / Formula

Copy & Paste Friendly
numbars = LastValue(Cum(Status("barvisible")));
fraction= IIf(StrRight(Name(),3) == "",3.2,3.2);
hts = Param ("Text Shift", -50,-100,100,10);
PlotText("RSI(14) >> " + WriteVal(RSI(14),fraction),
SelectedValue(BarIndex()+1)-(numbars/hts),SelectedValue(C),colorWhite);

5 comments

2. velmont
over 13 years ago

change the color in this line

SelectedValue(BarIndex()+1)-(numbars/hts),SelectedValue(C),colorWhite);

3. arjun72
over 12 years ago

Hi ,

Many thanks for the code , Can it be modified to plot the RSI value ( text on chart) for previous overbought / oversold swings of RSI on the chart

over 12 years ago

Thanks for AFL. It can be used to show text marks for any plotted variables.

5. arjun72
over 12 years ago

Hi ,

I need RSI ( 8 ) value above the candle on the chart for every swing when the reading is RSI > 70 on that candle / day and RSI < 30 below the candle on that day ( E0D) . I want to use it to spot divergence / swing failure visually on the chart . Thank in advance if anybody can help

Leave Comment

Please login here to leave a comment.