NexusFi: Find Your Edge


Home Menu

 





indicator drawing in two panels


Discussion in NinjaTrader

Updated
    1. trending_up 1,853 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?
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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,427


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
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098



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,427


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