NexusFi: Find Your Edge


Home Menu

 





indicator drawing in two panels


Discussion in NinjaTrader

Updated
    1. trending_up 1,765 views
    2. thumb_up 5 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
smallbirdking
FRANCE/NICE
 
Posts: 2 since Jul 2015
Thanks Given: 3
Thanks Received: 1

hello

Is it possible to have an indicator drawing (like DrawDiamond() ) in his own panel and also drawing in the price panel?

thanks in advance


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
US Treasury Weighs Direct Oil Futures Market Interventio …
Commodities
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
Energy Futures Shatter All-Time Daily Volume: 8.3 Millio …
Commodities
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,550 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,430


smallbirdking View Post
hello

Is it possible to have an indicator drawing (like DrawDiamond() ) in his own panel and also drawing in the price panel?

thanks in advance

The control variable is DrawOnPricePanel (boolean true or false)

Usually just set in Initialize but I seem to think it can be flipped in OnBarUpdate as well, but don't quote me..


Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093



ratfink View Post
The control variable is DrawOnPricePanel (boolean true or false)

Usually just set in Initialize but I seem to think it can be flipped in OnBarUpdate as well, but don't quote me..

yes! that's correct.


Reply With Quote
Thanked by:
  #4 (permalink)
smallbirdking
FRANCE/NICE
 
Posts: 2 since Jul 2015
Thanks Given: 3
Thanks Received: 1

Thanks a lot, it works. But it seem necessary to set DrawOnPricePanel at the beginning and the end. If not, it doesn't change. For example,

DrawOnPricePanel = false;
DrawDiamond("tag1"', true, 0,1, Color.Green);
DrawOnPricePanel = true;
DrawDiamond("tag2", true, 0, 2, Color.Yellow);
DrawOnPricePanel = false;
DrawDiamond("tag3", true, 0, 2, Color.Red);
DrawOnPricePanel = true;

Thanks for your help again.


Reply With Quote
Thanked by:
  #5 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,550 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,430


smallbirdking View Post
Thanks a lot, it works. But it seem necessary to set DrawOnPricePanel at the beginning and the end. If not, it doesn't change.

Yes, just made some different tests here, it doesn't seem like a stable offering, the objects can flip back so can't be used on a per bar basis unless you are happy to be redrawing when needed.

In these sort of situations it's often easier just to have two copies of the same indicator - one set for each panel.

Cheers


Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 14, 2015


© 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