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)
olegon11
about 12 years ago
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 over 15 years ago
Beauty
Submitted by sbtc555 almost 12 years ago
Smoothed MA (SSMA)
Submitted by kelvinhand almost 12 years ago
Trend Scalping System
Submitted by esnataraj almost 15 years ago
TD DeMarker Plane
Submitted by extremist almost 14 years ago
Buff Volume Weighted Moving Averages
Submitted by kaiji about 15 years ago

Indicator / Formula

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