indicator drawing in two panels - futures io
futures io futures trading



indicator drawing in two panels


Discussion in NinjaTrader

Updated by ratfink
    1. trending_up 800 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 4 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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
 

indicator drawing in two panels

(login for full post details)
  #1 (permalink)
FRANCE/NICE
 
 
Posts: 2 since Jul 2015
Thanks: 3 given, 1 received

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 futures io?
Two Data Series in Ninjatrader 7 for Order confirmation
NinjaTrader
Volume Chart Trend Lines
TradeStation
FYI plot bug & workaround: changing color or width is delayed 1 bar
EasyLanguage Programming
Scan by comparing SMAs within 5 mins
ThinkOrSwim
Linear Regression Slope Indicator
TradeStation
 
 
(login for full post details)
  #2 (permalink)
Birmingham UK
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
 
ratfink's Avatar
 
Posts: 3,652 since Dec 2012
Thanks: 17,422 given, 8,386 received


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 futures io Trade Journal Reply With Quote
The following user says Thank You to ratfink for this post:
 
(login for full post details)
  #3 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 5,997 since Jun 2009
Thanks: 831 given, 7,830 received



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
The following 2 users say Thank You to cory for this post:
 
(login for full post details)
  #4 (permalink)
FRANCE/NICE
 
 
Posts: 2 since Jul 2015
Thanks: 3 given, 1 received

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
The following user says Thank You to smallbirdking for this post:
 
(login for full post details)
  #5 (permalink)
Birmingham UK
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
 
ratfink's Avatar
 
Posts: 3,652 since Dec 2012
Thanks: 17,422 given, 8,386 received


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 futures io Trade Journal Reply With Quote
The following user says Thank You to ratfink for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > indicator drawing in two panels


August 14, 2015


Upcoming Webinars and Events
 

Free BloodHound Licenses for everyone!

June
 

Every journal equals ten meals for the hungry

June
     



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