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


Hide / Unhide Indicator
Updated: Views / Replies:8,306 / 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

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

HotKeys

Its only once you start using hotkeys and the keyboard you realise just how slow mouse clicking is.
Clearly your skill level is way beyond mine Richard but even if I make my own plot I still don't see how I can re write historical bars - sorry if it's simple but I just don't see it?
Are you referring to iterating through every bar on the chart each time I press the hotkey perhaps?

Reply With Quote
The following user says Thank You to Mindset for this post:
 
  #22 (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
Clearly your skill level is way beyond mine Richard but even if I make my own plot I still don't see how I can re write historical bars - sorry if it's simple but I just don't see it?

When you make a custom plot() method, you paint the chart when asked to do so by ninja. So... you can just not paint anything if you don't want to. So, it's as simple as doing nothing. Look at indicators that have custom plot() for examples of how to do it, but beware it will be confusing if you don't have any windows.forms experience.

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

Ugly version


Ok here is a start anyway.
Life is just too short to spend too much time on such basic stuff.
This will turn the EMA indicator on/off using Shift+H(ide) or V(isible).

BUT It reloads Ninja Script so has very limited value but you know I am not a programmer.....

Attached Files
Register to download File Type: zip HideShowEma.zip (3.9 KB, 45 views)
Reply With Quote
 
  #24 (permalink)
 Vendor: www.tradingstudies.com 
Denver, CO
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: TF, ES, CL
 
roonius's Avatar
 
Posts: 132 since Jun 2009
Thanks: 20 given, 272 received


Richard View Post
When you make a custom plot() method, you paint the chart when asked to do so by ninja. So... you can just not paint anything if you don't want to. So, it's as simple as doing nothing. Look at indicators that have custom plot() for examples of how to do it, but beware it will be confusing if you don't have any windows.forms experience.

if you want to override plot method to do nothing it should be fairly simple:

 
Code
 
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
{
     if(!showPlots) return;
     base.Plot(graphics, bounds, min, max)
}

Reply With Quote
The following 3 users say Thank You to roonius for this post:
 
  #25 (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


roonius View Post
if you want to override plot method to do nothing it should be fairly simple:

Ah, you're right. If he doesn't want to do anything unusual except not plot, then he can just let ninja take care of the rest. Now why didn't I think of that? I think my brain is hard-wired to equate custom plot() with pain.

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

CustomPlot

Actually it was the drawing of the EMA line I struggled with!
The minute I go near x and y I just simply get confused.

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

Update

Hadn't looked at this in a while and didn't realise people had responded.

The issue remains that 'hiding' the ema line proves elusive.
It may be that a clone() is required but again this may be beyond me to resolve.

Ref No Plot - yes I get that but it doesn't hide existing plots does it? It just stops plotting

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

Sort of cracked it

This doesn't seem very elegant - but then it gets the job done with the minimum of fuss.

I have only tidied the code up a little and there are 'other' working bits in it but hopefully it will be useful to some.
If somebody more capable than me can make it better please feel free.
It doesn't feel good enough to include as an indicator download but maybe one of the moderators could comment on that?
You can turn the Moving average plot 'On' or 'Off' via toolbar button or keycode (Shift + H)

NB NT7 version only.

Attached Thumbnails
Hide / Unhide Indicator-ema-.png   Hide / Unhide Indicator-ema-off.png  
Attached Files
Register to download File Type: zip emaplay.zip (10.4 KB, 34 views)
Reply With Quote
The following 5 users say Thank You to Mindset for this post:
 
  #29 (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

Update

Still not entirely convinced by this indicator... but still this is an updated version - just some colour choices and a few minor code changes.
I find every now and again if you click the ema off and then add it say 20 bars later it doesn't update... if you keep the indicator as Calculate on Bar Close this doesn't seem to happen.
This should work in both 6.5 and 7 but I have NOT tested it on 6.5.

Attached Files
Register to download File Type: zip emaplay.zip (10.5 KB, 21 views)
Reply With Quote
The following 2 users say Thank You to Mindset for this post:
 
  #30 (permalink)
Elite Member
Australia
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 29 since Jun 2009
Thanks: 20 given, 17 received


Here is a slightly updated version of Mindset's original.

Does the same stuff but I figured out how to refresh the chart after button toggle.

Thanks to Mindset.

Attached Files
Register to download File Type: zip MAToggle.zip (10.1 KB, 60 views)
Reply With Quote
The following 5 users say Thank You to rt-trader for this post:

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 06:56 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-13 in 0.14 seconds with 20 queries on phoenix via your IP 54.90.92.204