ZOrder - futures io
futures io futures trading



ZOrder


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one mea109 with 3 posts (10 thanks)
    2. looks_two RJay with 2 posts (11 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Fat Tails with 1 posts (3 thanks)
    1. trending_up 3,947 views
    2. thumb_up 24 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

ZOrder

(login for full post details)
  #1 (permalink)
france
 
Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 56 received

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.

Started this thread Reply With Quote
The following user says Thank You to mea109 for this post:

Can you help answer these questions
from other members on futures io?
What blockvolume is visible? - order processing
NinjaTrader
Indicators for pair trading MES and M2K
Platforms and Indicators
Short Interest Ratio indicator?
ThinkOrSwim
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Big Mike in Ecuador
34 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
france
 
Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 56 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 !

Started this thread Reply With Quote
The following user says Thank You to mea109 for this post:
 
(login for full post details)
  #4 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,731 received


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 3 users say Thank You to Fat Tails for this post:
 
(login for full post details)
  #5 (permalink)
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 688 since Jun 2009
Thanks: 747 given, 780 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 10 users say Thank You to RJay for this post:
 
(login for full post details)
  #6 (permalink)
france
 
Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 56 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;

Started this thread Reply With Quote
The following 8 users say Thank You to mea109 for this post:
 
(login for full post details)
  #7 (permalink)
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 688 since Jun 2009
Thanks: 747 given, 780 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

Reply With Quote
The following user says Thank You to RJay for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > ZOrder


Last Updated on September 22, 2011


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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