Respected Sir DETWO
SIR I TRYING BELOW AFL, CAN U CHANGE (EXTEND) SUPPORT & STOP LOSS IN THIS AFL
THANKS
_SECTION_BEGIN("Unnamed 1");
Title = EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) +
" - " + Date() +" - "+"\n" +EncodeColor(colorWhite) +"Op-"+O+" "+"Hi-"+H+" "+"Lo-"+L+" "+
"Cl-"+C+" "+ "Vol= "+ WriteVal(V);
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C) + "\n" + "\n" ;
threshold = 5;
uptrend = StochK(39,3) > StochD(39,3,3);
downtrend =StochK(39,3) < StochD(39,3,3);
Buy = uptrend AND H >= Ref(H,-1) + threshold; BuyPrice = Max(O,Ref(H,-1) + threshold);
Sell = downtrend AND L <= Ref(L,-1) - threshold; SellPrice = Min(O,Ref(L,-1) - threshold);
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
SetChartOptions(0, chartShowDates);
//Plot(C,"\nC",colorWhite,64);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGr een,0,L,-15);
//PlotShapes(IIf(Buy,shapeHollowUpArrow,shapeNone),c olorWhite,0,L,-15);
PlotShapes(IIf(Buy,shapeHollowSmallCircle,shapeNon e),colorWhite,0,BuyPrice,0);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colo rRed,0,H,-15);
//PlotShapes(IIf(Sell,shapeHollowDownArrow,shapeNone ),colorWhite,0,H,-15);
PlotShapes(IIf(Sell,shapeHollowSmallCircle,shapeNo ne),colorWhite,0,SellPrice,0);
MYcolor = IIf( uptrend, colorBrightGreen, IIf(downtrend , colorRed, colorBlue));
PlotOHLC( Open, High, Low, Close, "", Mycolor, styleCandle );
_SECTION_END();
BEST REGARDS
CHUKARE