It works fine. Custom RSI followed by Divergence in the same formula.
Best regards
Le 16/07/2010 16:42, infynhome a écrit :
> _SECTION_BEGIN("Custom RSI");
> /*
> Based on the book "Technical Analysis for the Trading Professional
>
> ...
> */
> Version(5.00);
> SetChartBkGradientFill( ParamColor("Backgroud Top Color",
> colorSeaGreen),ParamColor("Background Bottom Color", colorSeaGreen));
>
> periods = Param( "Periods", 14, 1, 200);
>
> Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color",
> colorDarkBlue ),
> ParamStyle("Style") );
>
> ShowMarket = ParamToggle("Bull Or Bear Market", "Bear|Bull");
>
> Plot(40,"",colorRed,styleLine|styleNoLabel);
> Plot(65,"",colorRed,styleLine|styleNoLabel);
>
> _SECTION_END();
> r = RSI(14);
> Plot( r, "RSI", colorBlack );
> PlotOHLC( r,r,50,r, "", IIf( r > 65, colorGreen, IIf (r < 40,
> colorRed, colorBlack )), styleCloud | styleClipMinMax, 40, 65 );