NinjaTrader Support Forum  

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 11-19-2007, 12:21 AM   #1
deanldavis475
Senior Member
 
Join Date: Feb 2006
Location: Bellevue, Washington, USA
Posts: 190
Thanks: 2
Thanked 2 times in 2 posts
Default Indicator for 2 times of Day

I am attempting (my first) to create an indicator that will show a stub line on the right of the screen like the indicator PriorDayOHLC but I want it to be only a high and a low line for two distinct user selected times today. I could modify the indicator CurrentDayOHL by removing the line for the Open but I don't want it to track the whole day only the times that the user indicates for example 9:00 to 11:00 AM. Can anyone help me change the code in CurrentDayOHL or aim me in the correct direction. Oh, and I want the lines to remain visable all day today.
Thanks
deanldavis475 is offline  
Reply With Quote
Old 11-19-2007, 12:25 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

What you want to do is go ahead and modify the CurrentDayOHL in the way you mentioned then add a time filter onto it. For an example of how to use a time filter please see this reference sample.

http://www.ninjatrader-support.com/v...ead.php?t=3226
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-22-2007, 09:13 AM   #3
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Dean,

I just created an indicator to show the high and low of a specific time range for each day. Maybe it's what you're looking for?

It's at: http://www.ninjatrader-support.com/v...ead.php?t=4156
sbgtrading 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
Volume Bar Times Richard Von Indicator Development 5 09-04-2007 11:24 AM
Times & Sales NinjaTrader_Josh Suggestions And Feedback 1 07-19-2007 06:11 AM
plotting pit times knightrider123 Charting 1 06-26-2007 07:04 AM
Trading Times latkinso Automated Trading 1 06-15-2007 12:23 PM
two symbols have different bar times Folls Strategy Development 4 05-17-2007 06:42 AM


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