Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now, It is Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hull indicator
Updated April 29, 2019
Top Posters
looks_one
Tom Joad
with 2 posts (0 thanks)
looks_two
pbeguin
with 1 posts (3 thanks)
looks_3
pablobar
with 1 posts (0 thanks)
looks_4
kronie
with 1 posts (0 thanks)
trending_up
4,492 views
thumb_up
3 thanks given
group
3 followers
forum
4 posts
attach_file
0 attachments
Hull indicator
(login for full post details)
Milano
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0
Hello .... I apologize for my English. I am an Italian trader and I ended up in this forum by chance, never seen anything like it. Sharing professionalism ... 'etc etc ... thanks! I want to put the indicator to be associated with Hull .... what gives the signal on the candles to turn around the moving average . I fastbrokers that uses OEC ... someone has the code please?? Many thanks to all
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
(login for full post details)
West Hills, CA
Experience: Beginner
Platform: OEC Trader, MC/DT
Broker: OEC
Trading: TF
Posts: 12 since Oct 2009
Thanks Given: 7
Thanks Received: 22
Here's the Hull MA Easylanguage that will work in OEC Trader. I'm not sure about the signal you're asking about. You could put together an Easylanguage strategy and run it on your chart, but without any more specifics on what signals you'd expect, this is probably a good starting point.
Code
{jtHMA - Hull Moving Average Indicator}
{Author: Atavachron}
{May 2005}
{
Inputs:
-------
price: the time series being smoothed, usually Close, High, etc,
but could be RSI(Close, 25) for example.
length: the length of the MA, pretty meaningless in the normal sense
of moving averages, as this quantity is heavily modified
in the code. You need to experiment, do not just use a setting
of 20 because that is what works for you with Simple Moving Averages.
zeroLine: if you are using this in an indicator pane, you might
want to display a centre line of some sort, ths allows
one to set its value
zeroVisible: boolean variable, determines whether the centre line
(zeroLine) is plotted.
upColour: If you wish to differentiate upward movements by colour coding.
downColour: If you wish to differentiate downward movements by colour coding.
colourDeltaBar: Set this to 1 if you wish the colour change to be effective on
the actual bar where the direction change occurred.
Set this to 0 for default behaviour. All other values
are pretty meaningless.
}
Inputs: price(Close), length(21),
zeroLine(0.0), zeroVisible(false),
upColour(Blue), downColour(Red);
Value1 = jtHMA(price, length);
Plot1(Value1, "jtHMA");
If ZeroVisible = true then
Plot2(zeroLine, "Zero");
{ Color criteria }
if (Value1 > Value1[1]) then
SetPlotColor(1, upColour)
else if (Value1 < Value1[1]) then
SetPlotColor(1, downColour);
#function jtHMA
{jtHMA - Hull Moving Average Function}
{Author: Atavachron}
{May 2005}
Inputs: price(NumericSeries), length(NumericSimple);
Vars: halvedLength(0), sqrRootLength(0);
{
Original equation is:
---------------------
waverage(2*waverage(close,period/2)-waverage(close,period), SquareRoot(Period)
Implementation below is more efficient with lengthy Weighted Moving Averages.
In addition, the length needs to be converted to an integer value after it is halved and
its square root is obtained in order for this to work with Weighted Moving Averaging
}
if ((ceiling(length / 2) - (length / 2)) <= 0.5) then
halvedLength = ceiling(length / 2)
else
halvedLength = floor(length / 2);
if ((ceiling(SquareRoot(length)) - SquareRoot(length)) <= 0.5) then
sqrRootLength = ceiling(SquareRoot(length))
else
sqrRootLength = floor(SquareRoot(length));
Value1 = 2 * WAverage(price, halvedLength);
Value2 = WAverage(price, length);
Value3 = WAverage((Value1 - Value2), sqrRootLength);
jtHMA = Value3;
The following 3 users say Thank You to pbeguin for this post:
(login for full post details)
Milano
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0
pbeguin
Here's the Hull MA
Easylanguage that will work in OEC Trader. I'm not sure about the signal you're asking about. You could put together an Easylanguage strategy and run it on your chart, but without any more specifics on what signals you'd expect, this is probably a good starting point.
Code
{jtHMA - Hull Moving Average Indicator}
{Author: Atavachron}
{May 2005}
{
Inputs:
-------
price: the time series being smoothed, usually Close, High, etc,
but could be RSI(Close, 25) for example.
length: the length of the MA, pretty meaningless in the normal sense
of moving averages, as this quantity is heavily modified
in the code. You need to experiment, do not just use a setting
of 20 because that is what works for you with Simple Moving Averages.
zeroLine: if you are using this in an indicator pane, you might
want to display a centre line of some sort, ths allows
one to set its value
zeroVisible: boolean variable, determines whether the centre line
(zeroLine) is plotted.
upColour: If you wish to differentiate upward movements by colour coding.
downColour: If you wish to differentiate downward movements by colour coding.
colourDeltaBar: Set this to 1 if you wish the colour change to be effective on
the actual bar where the direction change occurred.
Set this to 0 for default behaviour. All other values
are pretty meaningless.
}
Inputs: price(Close), length(21),
zeroLine(0.0), zeroVisible(false),
upColour(Blue), downColour(Red);
Value1 = jtHMA(price, length);
Plot1(Value1, "jtHMA");
If ZeroVisible = true then
Plot2(zeroLine, "Zero");
{ Color criteria }
if (Value1 > Value1[1]) then
SetPlotColor(1, upColour)
else if (Value1 < Value1[1]) then
SetPlotColor(1, downColour);
#function jtHMA
{jtHMA - Hull Moving Average Function}
{Author: Atavachron}
{May 2005}
Inputs: price(NumericSeries), length(NumericSimple);
Vars: halvedLength(0), sqrRootLength(0);
{
Original equation is:
---------------------
waverage(2*waverage(close,period/2)-waverage(close,period), SquareRoot(Period)
Implementation below is more efficient with lengthy Weighted Moving Averages.
In addition, the length needs to be converted to an integer value after it is halved and
its square root is obtained in order for this to work with Weighted Moving Averaging
}
if ((ceiling(length / 2) - (length / 2)) <= 0.5) then
halvedLength = ceiling(length / 2)
else
halvedLength = floor(length / 2);
if ((ceiling(SquareRoot(length)) - SquareRoot(length)) <= 0.5) then
sqrRootLength = ceiling(SquareRoot(length))
else
sqrRootLength = floor(SquareRoot(length));
Value1 = 2 * WAverage(price, halvedLength);
Value2 = WAverage(price, length);
Value3 = WAverage((Value1 - Value2), sqrRootLength);
jtHMA = Value3;
I am speechless .... I can not help but thank you very warmly. I hope I can be useful to someone in my time in the future. Yours sincerely Ivan
(login for full post details)
NYC + NY / USA
Experience: Advanced
Platform: "I trade, therefore, I AM!"; Theme Song: "Atomic Dog!"
Trading: EMD, 6J, ZB
Posts: 796 since Oct 2009
it would be most useful to post pictures demonstrating this Hull Indicator,
and show how it differentiates itself from other indicators already in existance, as well as how we might incorporate it into our trading spectrum
(login for full post details)
BUENOS AIRES
Posts: 2 since May 2017
Thanks Given: 1
Thanks Received: 0
Tom Joad
Hello .... I apologize for my English. I am an Italian trader and I ended up in this forum by chance, never seen anything like it. Sharing professionalism ... 'etc etc ... thanks! I want to put the indicator to be associated with Hull .... what gives the signal on the candles to turn around the
moving average . I fastbrokers that uses OEC ... someone has the code please?? Many thanks to all
Hello. Did you get working the Hull indicator on the OEC Platform?
Last Updated on April 29, 2019