NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-25-2012, 11:56 AM   #1
Eubie
Member
 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
Default DrawRay into an indicator

Hello,

is it possible to draw a ray into a different panel than the price one?

I have an indicator that draws a ray. If I put this indicator into Panel 5 (for example), the ray is still drawn into price action. Having the possibility to automatically draw horizontal rays into cumulative delta would be really awesome.

Many thanks,
Daniel
Eubie is offline  
Reply With Quote
Old 04-25-2012, 12:05 PM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Daniel,
Thanks for writing in and I am happy to assist you.

To set the draw object in a panel other than the price panel. Please append the below code in the initialize section of the code.

Code:
DrawOnPricePanel = false;
http://www.ninjatrader.com/support/h...pricepanel.htm

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 04-25-2012, 12:11 PM   #3
Eubie
Member
 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
Default

Many thanks!!
Eubie is offline  
Reply With Quote
Old 04-25-2012, 12:14 PM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Daniel,
Thanks for your note.

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 05-03-2012, 02:21 AM   #5
djkiwi
Senior Member
 
Join Date: Mar 2010
Posts: 320
Thanks: 87
Thanked 5 times in 5 posts
Default Draw on price panel

Hi Joydeep, I know about drawonpricepanel = false which works well if I have 2 panels. How would I draw on panels 3 and 4 for example?

Thanks in advance
DJ
djkiwi is offline  
Reply With Quote
Old 05-03-2012, 03:51 AM   #6
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello DJ,
A draw object drawn through a NinjaScript indicator can be drawn to the price pane and the indicator panel only.

I will forward your feature request to development for future enhancement.

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 05-03-2012, 03:56 AM   #7
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello DJ,
Development has assigned tracker id #457 for your feature request.

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple DrawRay Issue Kentoes Indicator Development 4 06-13-2010 08:10 AM
DrawRay problem gartonrd General Programming 1 11-15-2009 12:07 PM
DrawRay nigeleyre Strategy Development 3 09-21-2009 07:17 AM
help with the drawRay junkone General Programming 1 09-25-2008 08:12 AM
DrawRay() and the *next* bar cassb Indicator Development 4 08-28-2008 06:49 PM


All times are GMT -6. The time now is 02:56 AM.