Dark Theme
Light Theme
Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated September 7, 2011
Top Posters
looks_one
baberg
with 4 posts (0 thanks)
looks_two
forrestang
with 3 posts (0 thanks)
looks_3
Quick Summary
with 1 posts (0 thanks)
looks_4
MooreTech
with 1 posts (4 thanks)
trending_up
2,612 views
thumb_up
4 thanks given
group
3 followers
forum
9 posts
attach_file
0 attachments
September 5th, 2011, 12:22 AM
Canada
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1
Hi,
Is it possible to code something like :
if(indicator on panel 2)
else if(indicator on panel 3)
else ...
?
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 5th, 2011, 12:25 AM
Chicago IL
Legendary Urban Samurai
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060
baberg
Hi,
Is it possible to code something like :
if(indicator on panel 2)
else if(indicator on panel 3)
else ...
?
If you are asking if you can reference more than one indicator via a study you create, the answer is yes?
It doesn't matter what is actually on your chart, you can reference ANY study that exists within your library.
September 5th, 2011, 12:30 AM
Canada
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1
Actually I have a DataSeries that I wish would change depending if you select the indicator to appear on panel 1 or panel 2, etc
Not sure if I'm being understood.
September 5th, 2011, 12:32 AM
Chicago IL
Legendary Urban Samurai
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060
baberg
Actually I have a DataSeries that I wish would change depending if you select the indicator to appear on panel 1 or panel 2, etc
Not sure if I'm being understood.
Oh ok. I'm still not sure what you want to do, but I see it wasn't what I initially thought.
September 5th, 2011, 12:34 AM
Canada
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1
Sorry ! Let me try again.
if(indicator is displayed on panel 2) plot.Set(a);
else if(indicator is displayed on panel 3) plot.Set(b);
I'm trying to find out if you can test on which chart panel the indicator has been displayed by the user.
September 5th, 2011, 01:05 AM
Chicago IL
Legendary Urban Samurai
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060
Ok gotcha! Sorry I am not sure how you would access that information or if it is possible?
September 5th, 2011, 06:35 AM
Orlando, Florida
Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Trading: ES
Posts: 57 since Aug 2010
Thanks Given: 6
Thanks Received: 73
See if this helps...
Code
IndicatorBase[] indicators = ChartControl.Indicators;
foreach (Indicator i in indicators)
{
if (i.Panel==2)
{
// do something here
}
}
If you have any questions about our products or services please contact me via Private Message
September 5th, 2011, 10:41 PM
Canada
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1
Thanks for your Help !
However I ca't make it seem to work.
Here's a simple try
Code
if(Bars.FirstBarOfSession) c.Set(Close[1]);
else c.Set(c[1]);
c2.Set(c[0]);
foreach (Indicator i in indicators){
if(i.Panel>1) c2.Set(0);
else{
c2.Set(c[0]);
if(Bars.FirstBarOfSession) PlotColors[1][0]=Color.Transparent;
else PlotColors[1][0]=Color.Yellow;
}
}
When panel 1 is chosen, it's fine.
When panel 2 is chosen, it acts the same way it is coded for panel 1, that is to say previous day close instead of 0, and custom PlotColors.
It does not seem to detect panels and make a difference.
Also, AutoScale is forced to be set to "true" once indicator is installed on chart while AutoScale is actually hard-coded to "false" on Initiliase{}
Any ideas ?
Brian
September 7th, 2011, 01:26 AM
france
Experience: Beginner
Platform: nt
Posts: 198 since Oct 2009
Thanks Given: 1,776
Thanks Received: 56
Did someone make it work ?
Last Updated on September 7, 2011