SMI2 Indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


SMI2 Indicator
Updated: Views / Replies:12,154 / 50
Created: by keepdchange Attachments:11

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
 11  
 
Thread Tools Search this Thread
 

SMI2 Indicator

  #31 (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


cory View Post
you use drawregion command, basically you pain from one y value to other y value as you go bar by bar.
http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?DrawRegion
check out my market range coloring
https://futures.io/free_downloads/ninjatrader/indicators/272-download.html?view

in this case since y1 and y2 is fix value it is very simple;
DrawRegion("band1", CurrentBar, 0, 20, -20, Color.Green, 10);

Cory,

I tried that & it doesn't seem to like that line of code. I get:
"No overload for method "DrawRegion" takes "7" arguments"

So, I went in to your indicator & copied code & modified it for mine:
(added a private double M = 0; the public data series for "Middle", "UR" (upper region) and "LR" (lower region), thinking that if '0' was the middle, +20 would be the upper region and -20 would be the lower region & then added this code:

Middle.Set(M);
UR.Set(20);
LR.Set(-20);
DrawRegion("choparea", CurrentBar, 0, Middle, UR, Color.Transparent, Color.DimGray, 10);
DrawRegion("choparea", CurrentBar, 0, Middle, LR, Color.Transparent, Color.DimGray, 10);

And EVERYTHING disappeared from that indicator panel - all the lines, histogram bars, alert lines, - everything. HELP! (THANKS!)

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
 
  #32 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,215 since Jun 2009
Thanks: 628 given, 6,312 received

it wiped out because it try to draw region on price panel you need to tell it 'no'
...
DrawOnPricePanel = false;
...

you code will work but it's kind of heavy for this job, here is a sample using one data series only.

Attached Thumbnails
SMI2 Indicator-es-03-10-3_5_2010-medianrenko-4-ticks-.jpg  
Attached Files
Register to download File Type: cs SMI4.cs (26.7 KB, 51 views)
Reply With Quote
The following user says Thank You to cory for this post:
 
  #33 (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



cory View Post
it wiped out because it try to draw region on price panel you need to tell it 'no'
...
DrawOnPricePanel = false;
...

you code will work but it's kind of heavy for this job, here is a sample using one data series only.

Thank you very much for this!

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
 
  #34 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,215 since Jun 2009
Thanks: 628 given, 6,312 received

remember to turn it off so that you can draw arrows, vertical lines on price panel again
...
DrawOnPricePanel = true;
...

Reply With Quote
 
  #35 (permalink)
Elite Member
California
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Zen Fire
Favorite Futures: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received

Guys....I am very glad I started this thread. I just needed a simple clarification and it is ending up to be a thread for creation of a revised and more useful indicator....excellent work Zeller, Wizard, Cory and everyone else contributing. This just shows how powerful this forum can get (Thanks Mike).

Thanks
-Keep

Reply With Quote
 
  #36 (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


cory View Post
remember to turn it off so that you can draw arrows, vertical lines on price panel again
...
DrawOnPricePanel = true;
...

Cory, Just so I understand:

DrawOnPricePanel = false;
....then the code for coloring the region
...then
DrawOnPricePanel = true; (to allow for the drawing of arrows, lines, etc)

So it turn 'off' just long enough to color the region, then turn it back 'on' for line, arrows, etc - each new bar cycle?

Is that how it should look? As always, a big THANK YOU.

p.s. Maybe you'll make a programmer out of me yet!

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
 
  #37 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,215 since Jun 2009
Thanks: 628 given, 6,312 received


TheWizard View Post
Cory, Just so I understand:

DrawOnPricePanel = false;
....then the code for coloring the region
...then
DrawOnPricePanel = true; (to allow for the drawing of arrows, lines, etc)

So it turn 'off' just long enough to color the region, then turn it back 'on' for line, arrows, etc - each new bar cycle?

Is that how it should look? As always, a big THANK YOU.

p.s. Maybe you'll make a programmer out of me yet!

yes, you got it.
yes, thats the idea behind of why I cited sources and examples instead of merely giving you the codes.

Reply With Quote
The following user says Thank You to cory for this post:
 
  #38 (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


perryg View Post
Yes that is correct

Perry,

I just posted the SMI5 to the downloads section with the enhancements you requested. Cory was kind enough to guide me through & contribute the code that made this possible.

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
 
  #39 (permalink)
Elite Member
California
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Zen Fire
Favorite Futures: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received

Wizard, I just downloaded and applied the SMI5 to a 6E chart. For some reason, I can not get the arrows or the background color to paint on the price bar. I have the paint background to "true" and show arrows as "true", also.

Appreciate any help.

Thanks,
Keep

Reply With Quote
 
  #40 (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



keepdchange View Post
Wizard, I just downloaded and applied the SMI5 to a 6E chart. For some reason, I can not get the arrows or the background color to paint on the price bar. I have the paint background to "true" and show arrows as "true", also.

Appreciate any help.

Thanks,
Keep

Keep,

Go into the indicator preferences panel & under OFFSET, change it to 0.001.

The background coloring occurs in the indicator panel (#2, #3, etc) - not the main price bar panel.

If you want to paint the price bar panel, add another SMI5, change all the plots (lines, dots, histogram bars, etc) to "TRANSPARENT" and then put the indicator in PANEL 1. That way ONLY the background coloring will occur & only in panel 1 (Pricebar panel).

I've attached a screenshot of what my 6E looks like with the OFFSET set to 0.001 for the arrows, both on the slow and the fast SMI5. Hope that helps.

After all, it's what you learn AFTER you know it all, that counts!
Attached Thumbnails
SMI2 Indicator-6e.jpg   SMI2 Indicator-6e-settings.jpg  
Reply With Quote
The following 2 users say Thank You to TheWizard for this post:

Reply



futures io > > > > > SMI2 Indicator

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
smi2 in a strategy?? carlos NinjaTrader Programming 2 September 12th, 2011 08:50 PM
ADXVMA & SMI2 Indicators + repaint Q keepdchange NinjaTrader Programming 16 December 29th, 2009 03:43 PM
Adding SMI2 to Dspotter Todd NinjaTrader Programming 1 September 24th, 2009 08:16 PM
Paintbar for SMI2 TraderAZ NinjaTrader 2 August 22nd, 2009 01:08 AM


All times are GMT -4. The time now is 11:02 PM.

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.12 seconds with 20 queries on phoenix via your IP 54.145.16.43