Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
SMAD for Amibroker (AFL)
Simple Moving Average previous Days
Another form of Moving Average that used the same candle data in previous days.
Similar Indicators / Formulas
Indicator / Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | _SECTION_BEGIN ( "SMAD" ); function SMAD(array,periods) { local i,times; result = 0; times = TimeNum (); for (i = 0 ; i < periods ; i++) result += ValueWhen (times == times,array,i); return result/periods; } Plot (SMAD( C , Param ( "Period" ,3,1,20)), "SMAD" , colorGreen ); _SECTION_END (); |
0 comments
Leave Comment
Please login here to leave a comment.
Back