Holt EMA
futures io futures trading



Holt EMA


EasyLanguage Programming

Created November 28th 2010 by cbritton
Updated December 1st 2010 by cbritton
looks_onecbritton with 2 posts (4 thanks)
looks_twotradersheldon with 2 posts (1 thanks)
looks_3Big Mike with 1 posts (0 thanks)
 
trending_up5,527 views
thumb_up5 thanks given
forum5 replies
attach_file2 attachments



Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Holt EMA

  #1 (permalink)
Atlanta, Georgia
 
Trading Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 248 received

Holt EMA

Port to EL with color.

 
Code
input:    price(close), gmma(40), alpha(20);
vars:    mygamma(gmma), myalpha(alpha), b(0);

if alpha > 1 then myalpha = 2.0/(alpha+1.0) else myalpha = alpha;
if gmma > 1 then mygamma = 2.0/(gmma+1) else mygamma = gmma;

If CurrentBar = 1 then begin
    value1 = price;
    b = 0.0;
end else begin
    value1 = (1-myalpha)*(value1[1] + b[1]) + myalpha*price;
    b = (1-mygamma)*b[1] + mygamma*(value1 - value1[1]);
end;

Plot1( value1, "Rising" );
Plot2( value1, "Falling" );
Plot3( value1, "Neutral" );
Plot4( value1, "HoltEMA", iff(value1=value1[1], GetPlotColor(3), iff(value1>value1[1], GetPlotColor(1), GetPlotColor(2))));
NoPlot(1);
NoPlot(2);
NoPlot(3);
Enjoy,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Attached Thumbnails
Holt EMA-holtema.png  
Reply With Quote
The following 4 users say Thank You to cbritton for this post:

Can you help answer these questions
from other members on futures io?
What variable is used for TS(transaction size) under Times and Sales?
ThinkOrSwim
Transferring IRA - Block accounts with Ninjatrader
Reviews of Brokers and Data Feeds
UWT Alternative
Stocks and ETFs
Eurhythmic RSI - A Smoothed Double RSI
EasyLanguage Programming
Plot line has gaps/disconnected on intraday charts
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
ES futures Spoo-nalysis SP500/SPX
350 thanks
Recession? Depression? Bailout!
173 thanks
Coronavirus COVID-19
168 thanks
Is Orderflow An Outdated Concept?
164 thanks
Gold Futures (GC) main discussion
52 thanks
 
  #3 (permalink)
Western Maryland
 
Trading Experience: Intermediate
Platform: Multicharts
Broker/Data: Vision Financial (Direct)/ CQG, Rithmic
Favorite Futures: Gold, Euro, ES
 
Posts: 39 since Sep 2010
Thanks: 20 given, 49 received


Does someone have the easylanguage/powerlanguage for the collectiveMA indicator? I need this for my Multicharts.
Sheldon

Reply With Quote
 
  #4 (permalink)
Site Administrator
Manta, Ecuador
 
Trading Experience: Advanced
Platform: My own custom solution
Favorite Futures: SPX, Emini Futures
 
Big Mike's Avatar
 
Posts: 48,227 since Jun 2009
Thanks: 30,817 given, 92,266 received


tradersheldon View Post
Does someone have the easylanguage/powerlanguage for the collectiveMA indicator? I need this for my Multicharts.
Sheldon

and also this is not an Elite thread, and that indicator is Elite only.

Post here:
https://futures.io/elite-circle/1252-big-mike-trading-collective-ma.html

And if someone else hasn't done it already, I have, I just need to dig it up.

Mike

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.
6)
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 (see why)

Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #5 (permalink)
Western Maryland
 
Trading Experience: Intermediate
Platform: Multicharts
Broker/Data: Vision Financial (Direct)/ CQG, Rithmic
Favorite Futures: Gold, Euro, ES
 
Posts: 39 since Sep 2010
Thanks: 20 given, 49 received

Thank you!

Reply With Quote
The following user says Thank You to tradersheldon for this post:
 
  #6 (permalink)
Atlanta, Georgia
 
Trading Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 248 received

Here's a revised version of this indicator. I split out the algorithm into a function so you can call it directly from another indicator. Also, I added two angle values (in degrees) to the indicator to give a visual cue to the slope of the line. See the attached chart.

The function:
 
Code
input:    price(NumericSeries), gmma(NumericSimple), alpha(NumericSimple);
vars:    mygamma(gmma), myalpha(alpha), b(0);

if alpha > 1 then myalpha = 2.0/(alpha+1.0) else myalpha = alpha;
if gmma > 1 then mygamma = 2.0/(gmma+1) else mygamma = gmma;

If CurrentBar = 1 then begin
    value1 = price;
    b = 0.0;
end else begin
    value1 = (1-myalpha)*(value1[1] + b[1]) + myalpha*price;
    b = (1-mygamma)*b[1] + mygamma*(value1 - value1[1]);
end;

HoltEMA = value1;
The indicator:
 
Code
input:    price(close), gmma(40), alpha(20), angle1(30), angle2(60);
vars:    mygamma(gmma), myalpha(alpha), b(0), slope(0), debug(1);

value1 = HoltEMA(price, gmma, alpha);

slope = (arctangent((value1-(value1[1]+value1[2])/2)/1.5/(minmove/pricescale)));

condition1 = value1 > value1[1];
condition2 = slope >= angle2;
condition3 = slope >= angle1;
condition4 = slope <= -1*angle2;
condition5 = slope <= -1*angle1;

Plot1( value1, "FastRising" );
Plot2( value1, "Rising" );
Plot3( value1, "Neutral" );
Plot4( value1, "Falling" );
Plot5( value1, "FastFalling" );

value2 = iff(condition2, GetPlotColor(1), iff(condition3, GetPlotColor(2), GetPlotColor(3)));
value3 = iff(condition4, GetPlotColor(5),    iff(condition5, GetPlotColor(4), GetPlotColor(3)));

if debug = 1 then begin
    #beginCmtryOrAlert
        CommentaryCL("  slope: ", slope);
    #End;
end;

Plot6( value1, "HoltEMA", iff(value1 > value1[1], value2, value3));
NoPlot(1);
NoPlot(2);
NoPlot(3); 
NoPlot(4);
NoPlot(5);

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Attached Thumbnails
Holt EMA-holt_rino.png  
Reply With Quote

Reply



futures io Trading Community Platforms and Indicators EasyLanguage Programming > Holt EMA




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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Social Media Predictive Data for Traders w/Joe Gits @ SMA [and Lime Brokerage]

Apr 9
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
EMA for CCI perryg NinjaTrader 7 January 19th, 2012 08:45 AM
Holt Trend-Corrected EMA websouth The Elite Circle 2 February 19th, 2011 10:08 PM
Multiple EMA's trs3042 NinjaTrader 5 January 13th, 2011 02:28 PM
EMA colorizer Zoethecus NinjaTrader 2 October 5th, 2010 06:11 PM
MACD: The 12-period (EMA) minus 26 EMA emini_Holy_Grail Traders Hideout 1 February 22nd, 2010 12:04 PM


All times are GMT -4. The time now is 06:04 PM. (this page content is cached, log in for real-time version)

Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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