Need this afl

#6
Thanks shiree sir

Thanks shiree sir for making this afl. but i think it is not fully as we like some improvment needed.

_SECTION_BEGIN("13 Day High Break");

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


Colorbar=IIf(C>O,colorGreen,colorRed);
Plot( C, "Close", Colorbar, styleNoTitle| styleThick | styleBar );



P1=Peak(High,1,1);

P1B=PeakBars(High,1,1);



Buy=Cross(C,P1) AND P1B>12;


PlotShapes(Buy*shapeUpTriangle,colorBrightGreen, 0, Low, Offset =-15);

////////////////////////////////////////////// VOLUME ///////////////////////////////////////////////////////////////////
VM=V/MA(V,20);


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Filter=Buy;

AddColumn( IIf(Buy,C,0) ,"BUY",1.0,colorWhite,IIf(Buy,colorDarkGreen,Null));
VM=V/MA(V,20);
AddColumn( VM ,"V",1.0,colorWhite,IIf(VM,colorDarkGreen,Null));
_SECTION_END();
 

Similar threads