Showing posts with label Amibroker afl-SMOOTHED STOCHASTIC BUY SELL SIGNAL. Show all posts
Showing posts with label Amibroker afl-SMOOTHED STOCHASTIC BUY SELL SIGNAL. Show all posts

Friday, October 11, 2024

Amibroker afl-SMOOTHED STOCHASTIC BUY SELL SIGNAL

 _SECTION_BEGIN("Stochastic %D");

    SetChartOptions(0, 0, chartGrid20 | chartGrid80);

    GraphXSpace = Param("GraphXSpace", 5, -10, 20, 1);

     

    OBthreshold = Param("OBthreshold", 80, 60, 100, 1);

    OSthreshold = Param("OSthreshold", 20, 0, 40, 1);

    PlotGrid(OBthreshold, colorRed);// 8, 1, False);

    PlotGrid(OSthreshold, colorGreen);//, 8, 1, False);

     

    periods = Param("Periods", 13, 1, 200, 1);

    Ksmooth = Param("%K avg", 5, 1, 200, 1);

    Dsmooth = Param("%D avg", 5, 1, 200, 1);

    Plot(StochD(periods, Ksmooth, DSmooth), "StochD ("+periods+","+Ksmooth+", "+DSmooth+")", ParamColor("Color", colorCycle), ParamStyle("Style"));

_SECTION_END();

 

_SECTION_BEGIN("Stochastic %K");

    periods = Param("Periods", 13, 1, 200, 1);

    Ksmooth = Param("%K avg", 5, 1, 200, 1);

    Plot(StochK(periods, Ksmooth), "StochK ("+periods+","+Ksmooth+")", ParamColor("Color", colorCycle), ParamStyle("Style"));

 

    Buy = StochD(periods, Ksmooth, DSmooth) < OSthreshold AND Cross(StochK(periods, Ksmooth), StochD(periods, Ksmooth, DSmooth));

    PlotShapes(IIf(Buy, shapeUpArrow, shapeNone), colorBlue);

     

    Sell = StochD(periods, Ksmooth, DSmooth) > OBthreshold AND Cross(StochD(periods, Ksmooth, DSmooth), StochK(periods, Ksmooth));

    PlotShapes(IIf(Sell, shapeDownArrow, shapeNone), colorRed); 

_SECTION_END();

👉Tải tại đây

https://drive.google.com/file/d/1FwWgrgqIXbi-yzjTtSEXMZmGjEgyk8__/view?usp=drive_link

Cách sử dụng AFL  cho Amibroker  

Tải xuống tệp Amibroker AFL. 

Bây giờ hãy sao chép tệp afl và dán vào vị trí cài Amibroker  

D:\A KY PC\Win\Amibroker\Formulas\VIP free