NexusFi: Find Your Edge


Home Menu

 





Draw on several panels at same time


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cls71 with 6 posts (0 thanks)
    2. looks_two sefstrat with 3 posts (2 thanks)
    3. looks_3 zeller4 with 1 posts (0 thanks)
    4. looks_4 DavidHP with 1 posts (0 thanks)
    1. trending_up 9,863 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 cls71 
Madrid, Spain
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 18 since Oct 2009
Thanks Given: 7
Thanks Received: 14

Hello,

I'd like know if is possible to plot on several panels, simultaneously.
I'm developing an indicator which plots a summary (on Panel 2) but I want draw some curves on price panel, also.
All code is inside the method "override Plot".
I have tried with the properties Indicator.Panel and Indicator.PanelUI but don't work.

Thanks.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
US Treasury Weighs Direct Oil Futures Market Interventio …
Commodities
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Prediction Markets Lock Fed Pause at 99pct for April 29 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #2 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 478 since Jun 2009
Thanks Given: 1,419
Thanks Received: 404

i normally create a different version for non-price panel
then load it twice
not sure if this is best for use of resources tho but it's simple enough
kz


Reply With Quote
  #3 (permalink)
 cls71 
Madrid, Spain
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 18 since Oct 2009
Thanks Given: 7
Thanks Received: 14


Thanks zeller4,

but it is for an indicator which consumes much resources, and I want run it only once.


Regards


Started this thread Reply With Quote
  #4 (permalink)
 
sefstrat's Avatar
 sefstrat 
Austin, TX
 
Experience: Advanced
Platform: NT/Matlab
Broker: Interactive Brokers
Trading: FX majors
Posts: 285 since Jun 2009
Thanks Given: 20
Thanks Received: 768

it is not possible (it will be in NT7)


Reply With Quote
  #5 (permalink)
TAJTrades
Here, GA
 
Posts: 158 since Jun 2009
Thanks Given: 1
Thanks Received: 87

Hurry up and wait for NT 7 to do what you want. Other than that it is possible if you are a serious coder (not me) using the Graphics Methods in C#.


Reply With Quote
  #6 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: NQ / ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,801 since Aug 2009
Thanks Given: 11,742
Thanks Received: 3,018


TAJTrades View Post
Hurry up and wait for NT 7 to do what you want. Other than that it is possible if you are a serious coder (not me) using the Graphics Methods in C#.


Here is an indicator that will draw on both but may not be what you mean?


Attached Files
Elite Membership required to download: DrawOnPricePanelTest.zip
Follow me on X Reply With Quote
  #7 (permalink)
 cls71 
Madrid, Spain
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 18 since Oct 2009
Thanks Given: 7
Thanks Received: 14


DavidHP View Post
Here is an indicator that will draw on both but may not be what you mean?

Thanks David,

but no good. The DrawOnPricePanel doesn't change the ChartControl.PanelUI property. The override Plot method draws on the indicator panel, even though DrawOnPrice = true.

Regards


Started this thread Reply With Quote
  #8 (permalink)
 cls71 
Madrid, Spain
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 18 since Oct 2009
Thanks Given: 7
Thanks Received: 14

I guess the only way is change the size and position of the Graphics object inside the Plot method.


Started this thread Reply With Quote
  #9 (permalink)
 cls71 
Madrid, Spain
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 18 since Oct 2009
Thanks Given: 7
Thanks Received: 14

This is an evidence that can be drawn in several panels from a single indicator by overriding the plot method.

But there is a problem. To work properly you need to know the dimensions of all panels that are in the chart.
The panels are stored in the collection ChartControl.Panels.
However, this collection is not public and can not access it from the indicator. But is available during debugging.
Someone knows how to access this collection at design time ?




Started this thread Reply With Quote
  #10 (permalink)
 
sefstrat's Avatar
 sefstrat 
Austin, TX
 
Experience: Advanced
Platform: NT/Matlab
Broker: Interactive Brokers
Trading: FX majors
Posts: 285 since Jun 2009
Thanks Given: 20
Thanks Received: 768



cls71 View Post
To work properly you need to know the dimensions of all panels that are in the chart.
The panels are stored in the collection ChartControl.Panels.
However, this collection is not public and can not access it from the indicator. But is available during debugging.
Someone knows how to access this collection at design time ?

You should be able to access it via reflection.


Reply With Quote
Thanked by:




Last Updated on October 15, 2009


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts