SMI4 Replication in EasyLanguage - futures io
futures io futures trading



SMI4 Replication in EasyLanguage


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 3 posts (2 thanks)
    2. looks_two TheWizard with 1 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 daedalus with 1 posts (0 thanks)
    1. trending_up 3,723 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

SMI4 Replication in EasyLanguage

(login for full post details)
  #1 (permalink)
Omaha, NE
 
 
Posts: 46 since Nov 2009
Thanks: 15 given, 25 received

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
Click image for larger version

Name:	6J 03-10  2_19_2010 (4 Range).jpg
Views:	275
Size:	92.8 KB
ID:	8471   Click image for larger version

Name:	1.jpg
Views:	219
Size:	117.7 KB
ID:	8472  
Reply With Quote

Can you help answer these questions
from other members on futures io?
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
What blockvolume is visible? - order processing
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
 
 
(login for full post details)
  #3 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,779 since Jun 2009
Thanks: 32,306 given, 97,566 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"); 




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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #4 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,779 since Jun 2009
Thanks: 32,306 given, 97,566 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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #5 (permalink)
Indianapolis,IN
 
Experience: Intermediate
Platform: Ninja Trader
Broker: AMP Futures/Zen-Fire
Trading: 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
 
(login for full post details)
  #6 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,779 since Jun 2009
Thanks: 32,306 given, 97,566 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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
Houston, TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
 
TheWizard's Avatar
 
Posts: 1,736 since Jun 2009
Thanks: 517 given, 4,214 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:


futures io Trading Community Platforms and Indicators NinjaTrader > SMI4 Replication in EasyLanguage


Last Updated on May 23, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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