_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | styleCandle| ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("TOP BOTTOM");
sen = Param("% change",5,0.1,25,0.1);
High = Peak( H, Sen ) ;
Low = Trough( L, Sen ) ;
Mid = Zig(H+L/2,SEN) ;
mid = (H+L)/2;
Top = (High);
Bottom= (Low);
Plot(Zig(C,Sen)," Zig " , colorBlue,styleLine) ;
Plot(TOP,"TOP",colorGold,styleDots|styleNoLine|styleNoRescale);
Plot(Mid,"Mid",colorRed,styleDots|styleNoLine|styleNoRescale);
Plot(BOTTOM,"BOTTOM",colorGreen,styleDots|styleNoLine|styleNoRescale);
_SECTION_END();
No comments:
Post a Comment
Thanks