Hide / Unhide Indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


Hide / Unhide Indicator
Updated: Views / Replies:8,308 / 32
Created: by Mindset Attachments:17

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

Hide / Unhide Indicator

  #11 (permalink)
Elite Member
Denver
 
Futures Experience: None
Platform: NinjaTrader
 
TraderJesse's Avatar
 
Posts: 83 since Aug 2009
Thanks: 50 given, 89 received

Source link toward bottom of his site

johnthom - Project Hosting on Google Code

Reply With Quote
The following user says Thank You to TraderJesse for this post:
 
  #12 (permalink)
Trading for Fun
Dallas TX/USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: ES
 
Posts: 154 since Jun 2009
Thanks: 33 given, 281 received


Mindset View Post
Wow that is some coding - I can't even find the source code let alone try and understand it!

FWIW I posted a tutorial on how to make hide/show panels here:

Move the Markets :: Customizing Ninjatrader Toolbar/Panels/Etc.

But that's not really what you originally asked for. I agree with others that just putting a boolean in your parameters is the easiest way to go. If you need to avoid recalculation, though you can make a custom Plot() with an opacity level... then add a button or slider to your toolbar that lets you make the indicator transparent when you don't want to see it, in realtime.

Reply With Quote
The following 2 users say Thank You to Richard for this post:
 
  #13 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Richard


Nice work!
I shall look into splitting panels for another project but for now I would like to complete this one.

I am almost there but how do you force a plot to repaint?
I can get the plot to stop plotting at will but it still leaves the prior values ( in this case an EMA line) .
Seems easy but nothing seems to work.

Attached Thumbnails
Hide / Unhide Indicator-ema-line.png  
Reply With Quote
 
  #14 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Stuck

mmm ... it seems you can't repaint by all accounts.
You can set a dataseries to zero by using Reset() but of course it leaves history behind.

Even in NT7 there is still no way even to programmatically F5.

Reply With Quote
 
  #15 (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,352 given, 83,233 received

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


Send that to NT and tell them to get with the program.

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:
 
  #16 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Now you're just teasing!!
On a serious note - I shall persist in this but it does look like it's beyond my capabilities and of course NT doesn't support it so if anyone else would like to pick up the baton please feel free.


Last edited by Mindset; March 12th, 2010 at 12:07 PM.
Reply With Quote
The following user says Thank You to Mindset for this post:
 
  #17 (permalink)
Trading for Fun
Dallas TX/USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: ES
 
Posts: 154 since Jun 2009
Thanks: 33 given, 281 received


Mindset View Post
Now you're just teasing!!
On a serious note - I shall persist in this but it does look like it's beyond my capabilities and of course NT doesn't support it so if anyone else would like to pick up the baton please feel free.

If you change a parameter, NT will recalc the indicator. So, just opting not to plot (or calling Value.Reset() on every bar) when your hide/show parameter is set to false will do the trick. This is what Big Mike and others had suggested. I've attached an example indicator, and a screenshot showing that you can't see a line when the parameter is set to false.

hope this helps.

(it's an NT7 indicator, so if you aren't on 7 here's the entire OnBarUpdate method:

 
Code
if(!showPlot) return;
Avg.Set(EMA(Input,len)[0]);
... where showPlot is a boolean input parameter to the indicator)

Attached Thumbnails
Hide / Unhide Indicator-es-06-10-1-min-3_12_2010.jpg  
Attached Files
Register to download File Type: zip Z20100312HideShowEMA.zip (3.5 KB, 40 views)
Reply With Quote
 
  #18 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Hide Ema

Richard - appreciate the reply.
I should have shown my code and then you could see the issue.

I have got the showplot to change to false/true with my key code but the indicator doesn't plot? Beyond me.

In my original code I had the ema as 3 dataseries (flat,rising,falling) but I think that just confused things.

Anyway I have added my code to your code so see what you think.

Edit - should have changed CalculateOnBarClose to false btw.

Attached Files
Register to download File Type: zip Z20100312hideEma.zip (4.0 KB, 25 views)
Reply With Quote
 
  #19 (permalink)
Trading for Fun
Dallas TX/USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: ES
 
Posts: 154 since Jun 2009
Thanks: 33 given, 281 received

It's one of those situations where you have to be really fancy or not fancy at all. Halfway fancy won't work.

If you are going to use hotkeys, then either make your own Plot() method, or go and Reset() your plot across all bars when the plot is turned off (and when you turn the plot back on, go and Set() the plot across all bars). But, it's far easier to forego the hotkeys and just change the input via the indicator properties.

Reply With Quote
 
  #20 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Own Plot


Ok Richard - thanks. All seems very complicated for what should be very simple and easy.
I can't understand why NT haven't thrown this feature in to v7.

Reply With Quote

Reply



futures io > > > > > Hide / Unhide Indicator

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
Goldman helped hide some of Greeces debt Big Mike Traders Hideout 5 March 9th, 2010 10:34 AM


All times are GMT -4. The time now is 05:18 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-14 in 0.13 seconds with 20 queries on phoenix via your IP 54.221.73.186