RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Want to create a Hull Moving Average trading... Expand / Collapse
Message
Posted 10/21/2010 18:41:43 Post #12412
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hello everyone,

So I am a complete newbie here and I am looking for some help. I want to create a trading system using the Hull moving average, basically be short when the average is negative and long when it is positive. I am looking to use a 20 period average. I really dont even know where to start so any help would be greatly appreciated.
Posted 10/22/2010 09:21:04 Post #12417
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
We don't have a Hull MA indicator out of the box, so the first step would be to create that indicator plugin. Take a look at the samples folder for indicator plugin samples. After that, a trading system can be coded that would create an instance of the HMA indicator and analyze each point. A good example of using an indicator value to base trading decisions can be found in the Samples/Systems folder. The CrossOver system demonstrates a moving average cross over. You're not looking for a crossover, I understand, but you could do something like
if (HMA.Current < 0)
OpenPosition(PositionType.Short, OrderType.Market);

if (HMA.Current > 0)
OpenPosition(PositionType.Long, OrderType.Market);

papamo (10/21/2010)
Hello everyone,

So I am a complete newbie here and I am looking for some help. I want to create a trading system using the Hull moving average, basically be short when the average is negative and long when it is positive. I am looking to use a 20 period average. I really dont even know where to start so any help would be greatly appreciated.
Posted 1/8/2011 10:51:31 Post #12731
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Here's a version of the HullMA if you want to use that - unzip into your plugins folder

  Post Attachments 
HullMA.zip (109 views, 2.50 KB)
Posted 1/9/2011 06:45:39 Post #12733
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Thanks for sharing that.

-Pete
(See also rightedge-ats Yahoo group )

Posted 1/10/2011 10:50:50 Post #12735
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Nice work! Very much appreciated.
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 4:54pm

2005-2007 © RightEdge Systems