Holt EMA - EasyLanguage Programming | futures io social day trading
futures io futures trading


Holt EMA
Updated: Views / Replies:3,615 / 5
Created: by cbritton Attachments:2

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 90,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)
Elite Member
Atlanta, Georgia
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 237 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:
 
  #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.

 
  #3 (permalink)
Elite Member
Western Maryland
 
Futures 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
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 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.

Reply With Quote
 
  #5 (permalink)
Elite Member
Western Maryland
 
Futures 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)
Elite Member
Atlanta, Georgia
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 237 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 > > > > > Holt EMA

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 06:40 AM.

Copyright © 2017 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
Page generated 2017-12-15 in 0.09 seconds with 20 queries on phoenix via your IP 107.20.115.174