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

Hull Moving Average for Amibroker (AFL)

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

Hull Moving Average

Screenshots

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
Buff Volume Weighted Moving Averages
Submitted by kaiji about 15 years ago
Volume wieghted moving average
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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************/
/* Hull Moving Average version 1.0 */
/* by Avi b a */
/* The Hull Moving Average solves the age
old dilemma of making a moving average more
responsive to current price activity whilst maintaining curve smoothness...
read more at- http://www.ensignsoftware.com/tips/tradingtips72.htm */
/***************************************/
 
//SetChartBkColor(16);
 
Period = Param("Period",26,1,100,1);
Hull = WMA( 2*WMA(C,int(Period/2))- WMA(C,Period),int(sqrt(Period)));
 
Plot(C,"close",6,128);
 
for( i = 1 ; i < BarCount-2; i++ )
{
if (hull[i] <hull[i-1] && hull[i] <hull[i+1])
 Lpml[i]=1;
else
Lpml[i] =0;
 
if (hull[i] >hull[i-1] && hull[i] >hull[i+1])
 Lpmh[i]=1;
else
Lpmh[i] =0;
}
 
GR =ExRem(LpmH,Lpmh);
RD =ExRem(Lpml,Lpml);
 
Plot( Hull, _DEFAULT_NAME(), ParamColor( "Color", colorBlue ), ParamStyle("Style") );

1 comments

1. RBuck

I believe in the for loop the expression [i+1] looks at tomorrow’s data.

It is a help for performance but one may need a crystal ball.

RBuck

Leave Comment

Please login here to leave a comment.

Back