Comment on Pi Bridge for Amibroker

SAI commented on 09 Mar 2016, 01:55 PM

I WISH TO ADD INDICATOR OF KPL FO PI ,MAY THAT I GET ?
THE BELOW MENTIONED FORMULA AMIBROKER KPL AFL
_SECTION_BEGIN(“SS 36”);
no=Param( “Swing”, 36, 1, 55 );
res=HHV(H,no);
sup=LLV(L,no);
tsl=IIf(ValueWhen(IIf(C>Ref(res,-1),1,IIf(CRef(res,-1),1,IIf(C<Ref(sup,-1),-1,0)),1)==1,sup,res);

Plot(tsl, _DEFAULT_NAME(), colorCustom12, styleStaircase); PlotText( "S.S 36\n", LastValue(Cum(1)), LastValue(tsl), colorCustom12)|styleNoRescale;

Buy=Cross(C,tsl);
Sell=Cross(tsl,C);
shape=Buy*shapeUpArrow + Sell*shapeDownArrow;
PlotShapes(shape,IIf(Buy,colorCustom12,colorCustom12),0,IIf(Buy,Low,High));
_SECTION_END();

View the full comment thread »