Hull-DNA (Easylanguage) - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Hull-DNA (Easylanguage)
Started:January 13th, 2011 (03:12 PM) by JVentura Views / Replies:2,757 / 2
Last Reply:January 13th, 2011 (04:16 PM) Attachments:2

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Hull-DNA (Easylanguage)

Old January 13th, 2011, 03:12 PM   #1 (permalink)
Elite Member
Ventura, California, United St
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: Open E Cry (OEC)
Favorite Futures: RLM, 6E
JVentura's Avatar
Posts: 20 since Oct 2010
Thanks: 38 given, 16 received

Hull-DNA (Easylanguage)

Hi, I have been working on various systems trying to teach myself Easylanguage and reading a bunch of all your posts which is helping a ton; Thanks!
I am a trend follower and don't need to pick tops and bottoms but I want that chunk out of the middle of trend in the safest and most efficient method I can come up with.
So with all that in mind I keep coming back to moving averages of one type or another to clean and smooth but as you know they can lag pretty bad at times.
So I came up with a three moving average system as follows:
Using the Hull Moving averages (for speed) and a simple moving averages as a zero line for overall trend:

Center-line (Zero):
So the Simple MA(Zero Line) is color coded to indicate the location of the closing price via color I have also added an Average True Range cushion around it so when the price gets close to the line you can clearly see it.
A blue dot indicates the closing price is above the slower simple MA and red indicates it's below, if the center line is gray the MA is within the ATR(Middle MA value).

Moving Average (Oscillations/MACD)
The other two moving averages are the Hull Moving averages, In order to have it oscillate I just subtract the hullslowMA from the hullfastMA (MACD).
The coloring of the lines however is as follows if the lines are in contango (i.e. in a rising market fast is on the top, slow is on the bottom and the baseline value is below them) it goes all blue indicating a buy.

I'm still working on a more sound exit strategy I don't believe this system protects enough for the exit side. I am looking at some sort of trailing stop wanting the market to exit the trade

Help: Is it possible in easylanguange to plot a paintbar into window#1, I would like to do it when the MACD crosses over the zeroline.

Like I said I am new to this so if there are best practices to coding what I have done here I would appreciate any feedback...thanks.

---My code---
// Using the Hull Moving average as the fast and slow, went to a standard moving average for the long term (zero line)
Price (close),

SlowHull=_HMA(Price, HullSlow);
FastHull=_HMA(Price, HullFast);

//Center Line Calculation and Coloring
CenterMA= AverageFC(Price, HullCenter);
If close < (CenterMA - var1) then Centercolor = CenterdnColor;
If close > (CenterMA + var1) then Centercolor = CenterUpColor;

If Close = CenterMA then Centercolor = Yellow;
// Calculate Fast and Slow around Centerline
HullMACD= FastHull-SlowHull;

//Contango Using this to define and mark trend when all MA's are H->L in order

If Slowhull<FastHull and Slowhull>CenterMA then Contango=blue;
If Slowhull>Fasthull and slowhull<CenterMA then Contango=Red;

//If Condition1 then PlotPB( High, Low, Open, Close, "Contango", Yellow ) ;
//Would really like to figure out how to plot a Paintbar into Window #1 when HullMACD crosses Centerline

Plot1 (HullMACD,"HullCross", Contango);
Plot2 (HullMACD, "", Contango) ;
Plot3(0,"HullCenter", CenterColor);

Attached Thumbnails
Hull-DNA (Easylanguage)-ja-hull-dna.png  
Attached Files
Register to download File Type: pla JA-Hull-DNA.pla (7.0 KB, 67 views)
Reply With Quote
The following 2 users say Thank You to JVentura for this post:

Old January 13th, 2011, 03:12 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old January 13th, 2011, 04:16 PM   #3 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 45,447 since Jun 2009
Thanks: 28,848 given, 79,601 received

Here is an example of painting paintbars. Re-work for your use.

var1 MyFunction(ampnearsmoothingfarsmoothingangle);


var1 and H then PlotPaintBar(HLCO"bar"GetPlotColor(5));
var1 and L then PlotPaintBar(HLCO"bar"GetPlotColor(8));
var1 and L then PlotPaintBar(HLOC"bar"GetPlotColor(6));
var1 and H then PlotPaintBar(HLOC"bar"GetPlotColor(9));

var1 and var1 var1[1then PlotPaintBar(HLOC"bar"GetPlotColor(7));
var1 and var1 var1[1then PlotPaintBar(HLOC"bar"GetPlotColor(7));



Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Hull-DNA (Easylanguage)

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hull indicator Tom Joad Open E Cry 3 October 11th, 2011 08:48 AM
Easylanguage subroutines skan EasyLanguage Programming 7 August 18th, 2011 07:34 PM
EasyLanguage vs NinjaScript Traderji Platforms and Indicators 2 October 22nd, 2010 01:00 AM
Easylanguage vs. C++ Cogito ergo sum EasyLanguage Programming 10 August 2nd, 2010 02:12 PM

All times are GMT -4. The time now is 01:00 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-27 in 0.08 seconds with 20 queries on phoenix via your IP