Multi-plots of the same oscillator in one panel, how? - NinjaTrader | futures io social day trading
futures io futures trading


Multi-plots of the same oscillator in one panel, how?
Updated: Views / Replies:1,684 / 7
Created: by aligator 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
 

Multi-plots of the same oscillator in one panel, how?

  #1 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

Multi-plots of the same oscillator in one panel, how?

How do you get (or edit) an oscillator (i.e, CCI, etc.) to plot itself twice in the same panel, let's say once as a line and anther time as a histogram without applying the indicator twice? All other setting are the same. The idea is to add a boundary to the histogram.

Thanks a bunch!

Reply With Quote
 
  #2 (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,353 given, 83,235 received


aligator View Post
How do you get (or edit) an oscillator (i.e, CCI, etc.) to plot itself twice in the same panel, let's say once as a line and anther time as a histogram without applying the indicator twice? All other setting are the same. The idea is to add a boundary to the histogram.

Thanks a bunch!

If you don't want to simply add the indicator twice, and delete the duplicate plots (make them transparent), while leaving the useful plot and setting it how you want (histogram) --- then the only other option is to make a new indicator and add the Plots to the code.

You can find a webinar that covers it:

Webinar: C# and NinjaScript Overview

and

Webinar: Basic NinjaTrader Programming

and

Webinar: NinjaTrader Advanced Strategies and Programming

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
 
  #3 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary



Big Mike View Post
the only other option is to make a new indicator and add the Plots to the code.


Mike

Thanks Mike. I actually did try to modify, as an example, the default fisher transform indi by adding an extra add new plot statement for a second plot of the indicator, however, it plotted the end "Value" only once. Also, tried to use the Value.Set() twice and did not worked either.

Do I need to add a new data series also for the second plot?

Thanks.

Reply With Quote
 
  #4 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


aligator View Post
Thanks Mike. I actually did try to modify, as an example, the default fisher transform indi by adding an extra add new plot statement for a second plot of the indicator, however, it plotted the end "Value" only once. Also, tried to use the Value.Set() twice and did not worked either.

Do I need to add a new data series also for the second plot?

Thanks.

Just add a second plot in Initialize() and add a property for the that plot in the Properties section. When you add a plot, the plot series is added automatically, you do not need to define a separate variable for the data series.

Set the values for the second plot in OnBarUpdate() exactly as you have set them for the first plot and the plot should display correctly.

Reply With Quote
 
  #5 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

Thanks Fat Tails. I will try that today after the Gators have whooped the Dogs, starting in few minutes

Reply With Quote
 
  #6 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


Fat Tails View Post
Just add a second plot in Initialize() and add a property for the that plot in the Properties section. When you add a plot, the plot series is added automatically, you do not need to define a separate variable for the data series.

Set the values for the second plot in OnBarUpdate() exactly as you have set them for the first plot and the plot should display correctly.

Thanks again Fat Tails. I tried your suggestion as an example for FT. It compiles fine but I can't get it to plot twice. Attached is what I have done.

Attached Files
Register to download File Type: cs DoubleFisherTransform.cs (8.2 KB, 14 views)
Reply With Quote
The following user says Thank You to aligator for this post:
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer


aligator View Post
Thanks again Fat Tails. I tried your suggestion as an example for FT. It compiles fine but I can't get it to plot twice. Attached is what I have done.

(1) You have called your two plots the same name. If you have two children, would you give them the same name?

-> Give your two plots different names, for example "PlotLine" and "Histogram"
 
Code
            Add(new Plot(new Pen(Color.DodgerBlue, 6), PlotStyle.Bar, "PlotLine"));
            Add(new Plot(new Pen(Color.White, 2), PlotStyle.Line, "Histogram"));
(2) You have neither defined a property for the first nor for the second plot.

-> Define properties for both plots in the Properties section - I have told you so in my last post.


 
Code
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries PlotLine
        {
            get { return Values[0]; }
        }

        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries Histogram
        {
            get { return Values[1]; }
        }
(3) You have not set any value to the second PlotSeries, but have set a value to the first PlotSeries twice.

-> Once you have defined properties you can use them for setting values.

 
Code
PlotLine.Set(fishValue);
Histogram.Set(fishValue);
Not tested.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #8 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


Fat Tails View Post
(1) If you have two children, would you give them the same name? I have told you so in my last post.
.

Thanks a bunch Fat Tails. It worked fine.

Yes, you told me so, but I thought the properties were already defined under the add plot statement, as in the default version.

By the way, I was told Germans can't be funny, but that is no longer true.

And no, I usually call my babies "Come", and usually one of them will show up for a treat

Reply With Quote

Reply



futures io > > > > Multi-plots of the same oscillator in one panel, how?

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
NT Multi Timeframe and multi indicator review eurostoxx NinjaTrader 3 August 29th, 2011 01:07 PM
Ninjatrader indicators without plots jstnbrg NinjaTrader 6 March 2nd, 2011 02:14 AM
Constant Zone Plots Wrong Panel trs3042 NinjaTrader 9 December 22nd, 2010 08:54 PM
Null Plots kenz987 NinjaTrader Programming 7 May 10th, 2010 11:29 PM
Oscillator 0 - 100 zeller4 NinjaTrader Programming 4 September 14th, 2009 09:27 AM


All times are GMT -4. The time now is 07:29 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-16 in 0.15 seconds with 36 queries on phoenix via your IP 54.226.113.250