Monday – Friday : 9:00 AM – 6:30 PM

Trend Score

Using Amibroker AFL, traders can create a Trend Score indicator that quantifies the strength and direction of a trend. Amibroker data is essential for accurate trend analysis. The Trend Score provides a numerical representation of market trends, aiding traders in identifying potential trend changes and making well-informed trading decisions based on trend strength and momentum.

_SECTION_BEGIN("Chande's Trend Score");

//  I just found this code in a Visual Trader site and transfered it into AFL.

SmoothingPeriod = 2;


CTSM = WMA(CTS,SmoothingPeriod);
Histo = IIf(CTSM==10,5,IIf(CTS==-10,-5,Null)); 

Plot(CTSM, "CTSM", colorBlack, styleLine );
Plot(Histo, "", colorGreen, styleHistogram );


Open chat
Hi, how can I help you?