Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

SMAD for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker, moving average

Simple Moving Average previous Days

Another form of Moving Average that used the same candle data in previous days.

Similar Indicators / Formulas

Hull Moving Average (HMA)
Submitted by kaiji almost 15 years ago
Beauty
Submitted by sbtc555 over 11 years ago
Smoothed MA (SSMA)
Submitted by kelvinhand over 11 years ago
Trend Scalping System
Submitted by esnataraj over 14 years ago
TD DeMarker Plane
Submitted by extremist over 13 years ago
Buff Volume Weighted Moving Averages
Submitted by kaiji almost 15 years ago

Indicator / Formula

Copy & Paste Friendly
_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