Martin Pring's KST System for Amibroker (AFL)
sakhapradnya over 7 years ago Amibroker (AFL)
Martin Pring’s Know Sure Things (KST) System
Smooth indicator base on average of ROC in different periods to apply the weighting.
Enjoy.
Screenshots
Indicator / Formula
Copy & Paste Friendly
Indicator only. If you want to add buy and sell signal on your chart just kindly remove the Plot section of KST and MA1.
_SECTION_BEGIN("KST Indicator");
Avg1 = Sum(ROC(C,24),9)/9;
Avg2 = Sum(ROC(C,18),9)/9;
Avg3 = Sum(ROC(C,12),6)/6;
Avg4 = Sum(ROC(C,6),6)/6;
KST = 4*Avg1 + 3*Avg2 + 2*Avg3 + Avg4;
MA1 = MA(KST, 9);
Plot(kst,"KST" ,ParamColor("KST Color",colorRed),ParamStyle("KST Style",styleLine));
Plot(MA1,"MA" ,ParamColor("MA Color",colorBlue),ParamStyle("MA Style",styleLine));
BuyT = Cross(KST,MA1);
SellT = Cross(MA1,KST);
Buy=ExRem(BuyT,SellT);
Sell=ExRem(SellT,BuyT);
// Much beter if you do some position settings
/*
MaxOpenPos = Optimize("Max Open Positions",7,3,10,1);
SetOption("MaxOpenPositions", MaxOpenPos);
PositionSize=-100/MaxOpenPos;
PositionScore=buy;
SetTradeDelays(0,0,0,0);
*/
PlotShapes( Buy * shapeSmallUpTriangle + Sell * shapeSmallDownTriangle, IIf( Buy, colorBlue, colorRed ) );
Plot(0,"",ParamColor("Zero Line",colorGrey50), ParamStyle("Zero Line Style",styleLine));
_SECTION_END();4 comments
Leave Comment
Please login here to leave a comment.
anyone can make me afl … i know everything about market but i dont know coding
Sorry no one in this universe make you AFL from human.
Hi ROHITJAIN
Will help you and you can touch with me kalyan4naidus@gmail.com for your afl.
Hello Rohit,
I can help you in coding your ideas.
You can mail me your idea at my email id : choudhary.10gagan@gmail.com