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 Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 09-06-2007, 12:57 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default Strategy: Using a time filter to limit trading hours

A common observation many traders have made is that certain hours of the day are more volatile than others. Depending on the trader’s style they may want to trade only during the volatile hours of the day or the less volatile days of the week.

The attached reference sample demonstrates the following key concepts:
  • Comparing days of the week
  • Comparing the time of day
Important methods and properties used include:Other methods and properties of interest include:Import instructions:
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file
Attached Files
File Type: zip SampleTimeFilter.zip (1.1 KB, 4068 views)
Last edited by NinjaTrader_Josh; 09-24-2007 at 08:59 PM.
NinjaTrader_Josh is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Josh 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
Directional Day Filter (Download) Version 6 only The Shadow Indicator Development 17 02-10-2010 05:43 AM
more than one autom. trading strategy at the same time possible? Torso Automated Trading 1 08-03-2007 06:54 AM
Primary Trading Hours vs Extended Hours Greg1 Suggestions And Feedback 1 02-18-2007 01:06 AM
remove after hours trading from emini charts bmaltz Charting 1 11-08-2006 03:00 PM
question on Buy Stop Limit and automated trading DoveforUsAll Automated Trading 8 02-10-2006 09:57 AM


All times are GMT -6. The time now is 10:09 PM.