SMI Indicator for TradeStation - TradeStation | futures io social day trading
futures io futures trading


SMI Indicator for TradeStation
Updated: Views / Replies:8,004 / 3
Created: by Todd Attachments:1

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
 

SMI Indicator for TradeStation

  #1 (permalink)
Elite Member
Alpharetta, GA
 
Futures Experience: Intermediate
Platform: ninja
Broker/Data: Mirus / Zenfire
Favorite Futures: ES
 
Todd's Avatar
 
Posts: 257 since Jun 2009
Thanks: 28 given, 40 received

SMI Indicator for TradeStation

Hi,

I contributed the SMI2New Indicator to the forum months ago and lots of people seem to be using it, which is awesome! I had taken the SMI indicator from Tradestation forums and had hired a programmer to transfer the easy language code to ninjascript then make improvements to it (added the SMIema crossover line, added paintbars, added alerts)

Now, I could you some help. Could someone who knows Ninja and TradeStation please take the current SMI2New indicator (attached below) and and duplicate this back into TradeStation easy language? I don't need any alerts but I'd like an SMI with SMIema and I'd very much like the paintbars in TradeStation.

Sometimes I need to use my TradeStation account to trade and it would help to have this same tool that I use in Ninja back in TS.

I don't know enough about programming to know if this is a big request or a small request. Any help with this is appreciated.

Thanks,
Todd

Attached Files
Register to download File Type: cs SMI2.cs (15.5 KB, 189 views)
Reply With Quote
 
  #2 (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

try this:

 
Code

inputs: Rng(13), EMAPd1(25), EMAPd2(1), SMIEMAPd(25), alertlevel(40);

var: sms(0), hls(0), denom(0.0), smis(0), smiema(0)
;

Plot1(close, "Rising SMI");
Plot2(close, "Falling SMI");
noplot(1);
noplot(2);

if CurrentBar >= EMAPd1 and CurrentBar >= EMAPd2 then begin

    sms = Close[0] - 0.5 * ((Highest(High, range) + lowest(Low, range)));
            
    //High low diffs
    hls = highest(High, range) - Lowest(Low, range);

    //Stochastic Momentum Index = SMI
    denom = 0.5*XAverage(XAverage(hls,emapd1),emapd2);
    value1 = iff(denom = 0, 1, denom);
     smis = 100*XAverage(XAverage(sms,emapd1),emapd2) / value1;
        
    //Set the line value for the SMIEMA by taking the EMA of the SMI
    smiema = XAverage(smis, smiemapd);

    value2 = iff(smis > smis[1], GetPlotColor(1), GetPlotColor(2));
    condition1 = smis crosses below smiema;
    condition2 = smis crosses above smiema;
    
    Plot3(smis, "SMI", value2);
    Plot4(smiema, "SMIEMA");
    
    if condition1 then begin
        // alert
        alert("SMI crosses above signal line");
    end else if condition2 then begin
        // alert
        alert("SMI crosses below signal line");
    end;
end;

Plot5(alertlevel, "Alert");
Plot6(-alertlevel, "Alert");
If you have NT, compare this with a daily chart of something. Let me know if they don't match and I'll fix it.

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
The following user says Thank You to cbritton for this post:
 
  #3 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker/Data: AMP Trading / CQG
Favorite Futures: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 22 received


Hello all,
long time ago i lesten ..good smi, but never use it , how you use it ?
do you post a graph ...
thank you so much
Serger

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Honolulu
 
Futures Experience: None
Platform: TS
Favorite Futures: Emini
 
Posts: 1 since Nov 2015
Thanks: 1 given, 1 received


cbritton View Post
try this:

Thanks, Cbritton! it's a useful code.
Please see updated version below, I fixed input Rng issue as it was not used in the code (there was "range" instead).
And I fixed wrong Alerts order
 
Code
// www bigmiketrading com/tradestation/654-smi-stochastic-momentum-index-indicator-tradestation.html
{STOCHASTIC MOMENTUM INDEX from William Blau  
}  
inputs: Rng(13), EMAPd1(25), EMAPd2(1), SMIEMAPd(25), alertlevel(40);

var: sms(0), hls(0), denom(0.0), smis(0), smiema(0);

Plot91(close, "Rising SMI");   noplot(91);
Plot92(close, "Falling SMI");  noplot(92);

if CurrentBar >= EMAPd1 and CurrentBar >= EMAPd2 then begin

    sms = Close[0] - 0.5 * ((Highest(High, Rng) + lowest(Low, Rng)));
            
    //High low diffs
    hls = highest(High, Rng) - Lowest(Low, Rng);

    //Stochastic Momentum Index = SMI
    denom = 0.5*XAverage(XAverage(hls,emapd1),emapd2);
    value1 = iff(denom = 0, 1, denom);
     smis = 100*XAverage(XAverage(sms,emapd1),emapd2) / value1;
        
    //Set the line value for the SMIEMA by taking the EMA of the SMI
    smiema = XAverage(smis, smiemapd);

    value2 = iff(smis > smis[1], GetPlotColor(91), GetPlotColor(92));
    
    Plot3(smis, "SMI", value2);
    Plot4(smiema, "SMIEMA");
    
    // alert
    if smis crosses above smiema then begin
        alert("SMI crosses above signal line");
    end else if smis crosses below smiema then begin
        alert("SMI crosses below signal line");
    end;
end;

Plot5(alertlevel, "Alert");
Plot6(-alertlevel, "Alert");

Reply With Quote
The following 3 users say Thank You to vvbit for this post:

Reply



futures io > > > > SMI Indicator for TradeStation

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Translate Tradestation indicator to Ninja trader esam_jir NinjaTrader Programming 8 February 15th, 2014 01:38 AM
Printing TradeStation indicator values to file RambleDog EasyLanguage Programming 5 April 11th, 2011 11:28 PM
need arrows for Multicharts- ADXVMA, SMI, zerolag MACD emini_Holy_Grail EasyLanguage Programming 1 January 17th, 2011 12:16 PM
Code a T3 indicator for TradeStation daveste99 EasyLanguage Programming 5 September 14th, 2010 03:09 PM
Tradestation rassi Reviews of Brokers and Data Feeds 5 June 22nd, 2010 08:36 AM


All times are GMT -4. The time now is 04:03 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-11 in 0.09 seconds with 20 queries on phoenix via your IP 54.226.113.250