SMI4 Replication in EasyLanguage - NinjaTrader Programming | futures io social day trading
futures io futures trading


SMI4 Replication in EasyLanguage
Updated: Views / Replies:3,027 / 6
Created: by daedalus 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
 

SMI4 Replication in EasyLanguage

  #1 (permalink)
Member
Omaha, NE
 
Futures Experience: Intermediate
Platform: OpenECry Trader
Broker/Data: InfinityAT/OEC
Favorite Futures: Forex Futures
 
daedalus's Avatar
 
Posts: 46 since Nov 2009
Thanks: 15 given, 25 received

SMI4 Replication in EasyLanguage

Well the title states the objective...

I have a fairly rudimentary version of SMI in easylanguage....

But as you can see the indicator is nothing like the SMI4 indicator provide by TheWizard in the latest Holy Grail package.

I don't very much need the dots or coloring, but I would like to mimic the SMI4's calculations for its +/-0 bias in its calculation.

Apparently its more than just a simple change of the calculation periods (I think at least?).

Can anyone tell me what changes have been made to SMI4 from the most basic rudimentary basic SMI indicator?

I've attached similar timeframes of the same shot comparing the two indicators (keep in mind these platforms calculate range bars slightly differently and they are from different data feeds so they won't be 100%).

Attached Thumbnails
SMI4 Replication in EasyLanguage-6j-03-10-2_19_2010-4-range-.jpg   SMI4 Replication in EasyLanguage-1.jpg  
Reply With Quote
 
  #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)
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,354 given, 83,237 received


Thanks for the effort to start converting these

I found SMI elsewhere, this is just a very basic one:

Function
 
Code
                            
Type : Function, Name SMI                        input:
length1(NumericSimple),
length2(NumericSimple),
length3(NumericSimple);
                           var:
              
HH(0),
              
LL(0);
             
HH Highest(H,length1);
              
LL Lowest (L,length1);
             
SMI 100 *  (XAverage(XAverage(C-(0.5*(HH+LL)),length2),length3) /
  (
0.5 XAverage(XAverage(HH-LL,length2),length3))); 

Indicator
 
Code
                            
Type IndicatorName SMI                      
input
:length1(13),length2(25),length3(2),alertLevel(40);
           
plot1smi(length1,length2,length3), "SMI" );
            
plot2alertLevel"sell line" );
            
plot3(-alertLevel"buy line" );
           if 
plot1 crosses above -alertLevel then
  alert
("SMI crosses above buy line");
           if 
plot1 crosses below alertLevel then
  alert
("SMI crosses below sell line"); 


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


I've not compiled anything in MultiCharts yet but don't expect any problems. I don't use this one personally although I know many traders here do, so if you would be so kind as to share the final code please do. Upload it to the file sharing section (Downloads), let me know if you run into any problems sharing certain extensions.

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
The following user says Thank You to Big Mike for this post:
 
  #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,354 given, 83,237 received

BTW, you might contact Todd. He knows a lot about SMI and had a lot of custom work done to the version that many people use here on futures.io (formerly BMT).

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
The following user says Thank You to Big Mike for this post:
 
  #5 (permalink)
Elite Member
Indianapolis,IN
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: AMP Futures/Zen-Fire
Favorite Futures: Emini Futures
 
Posts: 3 since Feb 2010
Thanks: 6 given, 1 received


daedalus View Post
Well the title states the objective...

I have a fairly rudimentary version of SMI in easylanguage....

But as you can see the indicator is nothing like the SMI4 indicator provide by TheWizard in the latest Holy Grail package.

I don't very much need the dots or coloring, but I would like to mimic the SMI4's calculations for its +/-0 bias in its calculation.

Apparently its more than just a simple change of the calculation periods (I think at least?).

Can anyone tell me what changes have been made to SMI4 from the most basic rudimentary basic SMI indicator?

I've attached similar timeframes of the same shot comparing the two indicators (keep in mind these platforms calculate range bars slightly differently and they are from different data feeds so they won't be 100%).

Is is true that SMI4's histogram is lagging? I examined the indicator's code, and it uses data from a subsequent cycle to set the histogram's value for the preceding cycle. Here is the code inside the indicator:

if (Falling(esmis))
{
eSMIdn.Set(
1, esmis[1]);
eSMIdn.Set(esmis[
0]);

}
if (Rising(esmis))
{
eSMIup.Set(
1, esmis[1]);
eSMIup.Set(esmis[
0]);

}

Reply With Quote
 
  #6 (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,354 given, 83,237 received


mihabibi View Post
Is is true that SMI4's histogram is lagging? I examined the indicator's code, and it uses data from a subsequent cycle to set the histogram's value for the preceding cycle. Here is the code inside the indicator:

if (Falling(esmis))
{
eSMIdn.Set(
1, esmis[1]);
eSMIdn.Set(esmis[
0]);

}
if (Rising(esmis))
{
eSMIup.Set(
1, esmis[1]);
eSMIup.Set(esmis[
0]);

}

That code repaints. You can learn more about repainting here.

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
 
  #7 (permalink)
Market Wizard
Houston, TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Optimus Futures
Favorite Futures: 6E
 
TheWizard's Avatar
 
Posts: 1,711 since Jun 2009
Thanks: 509 given, 4,072 received


daedalus View Post
Well the title states the objective...

I have a fairly rudimentary version of SMI in easylanguage....

But as you can see the indicator is nothing like the SMI4 indicator provide by TheWizard in the latest Holy Grail package.

I don't very much need the dots or coloring, but I would like to mimic the SMI4's calculations for its +/-0 bias in its calculation.

Apparently its more than just a simple change of the calculation periods (I think at least?).

Can anyone tell me what changes have been made to SMI4 from the most basic rudimentary basic SMI indicator?

I've attached similar timeframes of the same shot comparing the two indicators (keep in mind these platforms calculate range bars slightly differently and they are from different data feeds so they won't be 100%).

Daedalus,

If i remember correctly, I took a modified version of SMI2 that Cory had done awhile back and, at the time, was calling SMI_MultiColor. It had the SMI, SMIEMA and a differential histogram. I believe it's been reposted to the download section and simply called SMI2. What I did was to swap a couple of plots inside (SMI / Histogram) so that the Histogram became the SMI and the SMI became the histogram, then converted the histogram from bar to dot. I was just playing around with indicator code, having some fun. I liked the way that it looked - similar to an ergodic oscillator. I created a couple of versions (didn't like SMI3), liked SMI4 better, added background coloring so that when the SMIEMA is ABOVE '0', it paints the background blue & if it's below '0' - red, indicating trend direction, added sounds, vertical lines, arrows, etc. etc. That's about it. Nothing special.

For what you want to do, you could use the basic SMI or Cory's SMI2. I believe the code for the SMI2 (minus the histogram plots) is identical to the SMI. Standard Stochastic Momentum Index calculation as proposed by William Blau.

Here's a comment from the SMI indicator, if it helps:

Author: Mathew Wyatt (mathew.wyatt at gmail.com)
// This indicator is the Stochastic Momentum Index by William Blau. Formula for the indicator was found - Re: Bill Blau's formulas, MetaStock Email Archive | PureBytes.Com.

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
The following user says Thank You to TheWizard for this post:

Reply



futures io > > > > > SMI4 Replication in EasyLanguage

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
Converting EasyLanguage to C# christof21 Platforms and Indicators 5 December 9th, 2013 08:31 PM
Easylanguage subroutines skan EasyLanguage Programming 7 August 18th, 2011 08:34 PM
EasyLanguage vs NinjaScript Traderji Platforms and Indicators 2 October 22nd, 2010 02:00 AM
Easylanguage vs. C++ Cogito ergo sum EasyLanguage Programming 10 August 2nd, 2010 03:12 PM


All times are GMT -4. The time now is 02:35 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-17 in 0.15 seconds with 20 queries on phoenix via your IP 54.82.56.95