ZOrder - NinjaTrader Programming | futures io social day trading
futures io futures trading


ZOrder
Updated: Views / Replies:2,821 / 6
Created: by mea109 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
 

ZOrder

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

ZOrder

Hi, this is getting on my nerves.

I'm trying to set ZOrder inside Initialize().

I can put whatever value (positive or negative) and the plots will still display behind candles. Is that normal ?

I have to set it manually.

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)
Elite Member
france
 
Futures Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 50 received


Also, is there a way to separate ZOrder from plots to BarColor/CandleOutlineColor function ?

Because if my indicator has plots + paint bar study, if I change manually the ZOrder in order to put plots behind candles, then all bar painting disappears !

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,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary


mea109 View Post
Also, is there a way to separate ZOrder from plots to BarColor/CandleOutlineColor function ?

Because if my indicator has plots + paint bar study, if I change manually the ZOrder in order to put plots behind candles, then all bar painting disappears !

The value of ZOrder - whatever it is - will be applied to all plots of your indicator. So if you have an indicator with both plots and bar coloring, you cannot manage the layers separately. Only solution here is to divide the coloring of the bars and the plots between two separate indicators.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #5 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


mea109 View Post
Hi, this is getting on my nerves.

I'm trying to set ZOrder inside Initialize().

I can put whatever value (positive or negative) and the plots will still display behind candles. Is that normal ?

I have to set it manually.

Hi mea109,

I did some research on ZOrder a couple weeks back.

I started with code I found and fixed it.

This works pretty good. Contact me if you need assistance.
--------------------------------------------------
#region Variables

private bool zOrderBehind = false;

private int CatchZOrder;
----------------------------------------------------
protected override void Initialize()

CatchZOrder = ZOrder;
----------------------------------------------------
protected override void OnStartUp()
{
CatchZOrder = ZOrder;
}
----------------------------------------------------
protected override void OnBarUpdate()

{
if(zOrderBehind == true)ZOrder = -1;
if(zOrderBehind == false)ZOrder = CatchZOrder;
}
------------------------------------------------------------------
#region Properties

[Description("Draw Price Lines Behind Bars")]
[Category("Display Settings")]
[Gui.Design.DisplayName ("Draw Price Lines Behind Bars")]
public bool ZOrderBehind
{
get { return zOrderBehind; }
set { zOrderBehind = value;}
}
-------------------------------------------------------------------------------
Enjoy,

RJay

Reply With Quote
The following 7 users say Thank You to RJay for this post:
 
  #6 (permalink)
Elite Member
france
 
Futures Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 50 received

Sorry I found no time earlier.

Your code snippet is useful.

In the end I came up with ZOrder = int.MaxValue; on Initialize()
This allows and indeed worked to put plots in front of candles but on top of that, it will also manage to set the proper order between numerous indicator installations...

The opposite is ZOrder = int.MinValue;


Last edited by mea109; September 22nd, 2011 at 03:15 PM.
Reply With Quote
The following 6 users say Thank You to mea109 for this post:
 
  #7 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


mea109 View Post
Sorry I found no time earlier.

Your code snippet is useful.

In the end I came up with ZOrder = int.MaxValue; on Initialize()
This allows and indeed worked to put plots in front of candles but on top of that, it will also manage to set the proper order between numerous indicator installations...

The opposite is ZOrder = int.MinValue;

Hi mea109,

You just solved an issue I was dreading working on.

Thanks,

RJay


Last edited by RJay; September 22nd, 2011 at 04:35 PM.
Reply With Quote

Reply



futures io > > > > > ZOrder

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     


All times are GMT -4. The time now is 10:31 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-12 in 0.10 seconds with 18 queries on phoenix via your IP 54.90.92.204