NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-30-2008, 01:35 PM   #1
tb2000
Member
 
Join Date: May 2008
Posts: 50
Thanks: 0
Thanked 0 times in 0 posts
Default chart controled by indicator

I have a custom indicator I am working on which makes only sense if run on a bar chart. Besides I'd like to help my user by defaulting a few chart settings like trading hrs, exclude SatSun and the like. Is there a way to do that from code in the indicator?

Thanks ahead!
tb
tb2000 is offline  
Reply With Quote
Old 06-30-2008, 01:47 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

You can check Time[0] property which has properties/methods for checking calendar days I am sure. Check the DateTime class/structure in C# DOC.

For checking chart type, this currently not supported.
NinjaTrader_Ray is offline  
Reply With Quote
Old 06-30-2008, 01:48 PM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Oops...I misread...

You can not control the chart properties.
NinjaTrader_Ray is offline  
Reply With Quote
Old 06-30-2008, 02:15 PM   #4
tb2000
Member
 
Join Date: May 2008
Posts: 50
Thanks: 0
Thanked 0 times in 0 posts
Default

OK -> wishlist I see. Would really be great if you could expose more of the NT object model....
Cheers
Theo
tb2000 is offline  
Reply With Quote
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
Indicator not updating on chart Mike_32 Charting 5 05-06-2008 12:18 PM
Overlaying an Indicator on a bar or tic chart MichaelB Charting 1 04-07-2008 01:25 AM
chart research value chart indicator sgraham NinjaScript File Sharing Discussion 13 02-07-2008 08:30 PM
Indicator: Removing and Custom Formatting an Indicator’s Chart Label NinjaTrader_Josh Reference Samples 0 12-30-2007 06:49 PM
Why doesn't the indicator chart update in RT? henry.omd Charting 1 12-16-2007 07:55 PM


All times are GMT -6. The time now is 04:08 PM.