Friday, 9 November 2018

Amibroker AFL RSI with shaded

Amibroker AFL  RSI with shaded








SetChartOptions(1,0, chartGrid20 | chartGrid30 | chartGrid50 | chartGrid70 | chartGrid80 );
periods = Param( "Periods", 14, 1, 200, 1 );
r = RSI(periods);

Plot( r, "", colorGreen, styleLine | styleClipMinMax | styleNoLabel, 30, 0 );
Plot( r, "", colorRed, styleLine | styleClipMinMax | styleNoLabel, 100, 70 );
IIf( r > 30 AND r < 70, Plot( r, _DEFAULT_NAME(), colorLightOrange, styleLine | styleClipMinMax ), Null );

PlotOHLC( r,r,50,r, "", IIf( r > 50, colorRed, colorGreen ), styleCloud | styleClipMinMax | styleNoLabel, 30, 70 );

1 comment:

  1. Sir,
    Very nice indicator but no price chart overlay. How can price & indicator overlay combineed is possible. Pl do advice. Email-jkpahuja12@gmail.com
    Thanks

    ReplyDelete

Thanks