panel condition - NinjaTrader Programming | futures io social day trading
futures io futures trading


panel condition
Updated: Views / Replies:983 / 9
Created: by baberg Attachments:0

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
 

panel condition

  #1 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

panel condition

Hi,

Is it possible to code something like :

if(indicator on panel 2)
else if(indicator on panel 3)
else ...

?

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received



baberg View Post
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.

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

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.

Reply With Quote
 
  #5 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


baberg View Post
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.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

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.

Reply With Quote
 
  #7 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

Ok gotcha! Sorry I am not sure how you would access that information or if it is possible?

Reply With Quote
 
  #8 (permalink)
Elite Member
Orlando, Florida
 
Futures Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Favorite Futures: ES
 
Posts: 56 since Aug 2010
Thanks: 3 given, 66 received

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
Reply With Quote
The following 4 users say Thank You to MooreTech for this post:
 
  #9 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

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

Reply With Quote
 
  #10 (permalink)
Elite Member
france
 
Futures Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 50 received


Did someone make it work ?

Reply With Quote

Reply



futures io > > > > > panel condition

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
SuperTrend Panel 2 ceramictilepro NinjaTrader Programming 2 March 22nd, 2011 05:55 AM
to get NT to perform an action only once while a strategy condition is true richw NinjaTrader Programming 3 February 28th, 2011 09:38 PM
Same condition every hour rajafx1 NinjaTrader Programming 5 August 13th, 2010 06:43 AM
Strategy Condition Logic >> my wetware Trader.Jon NinjaTrader Programming 2 May 24th, 2010 05:17 PM
Please, I need help with this panel George The Elite Circle 7 August 17th, 2009 04:34 PM


All times are GMT -4. The time now is 12:59 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-16 in 0.13 seconds with 19 queries on phoenix via your IP 54.91.38.173