NinjaTrader_Josh
09-06-2007, 12:57 PM
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 dayImportant methods and properties used include:
DayOfWeek (http://www.ninjatrader-support.com/HelpGuideV6/DayOfWeek.html)
Time (http://www.ninjatrader-support.com/HelpGuideV6/Time.html)
ToTime() (http://www.ninjatrader-support.com/HelpGuideV6/ToTime.html)Other methods and properties of interest include:
ToDay() (http://www.ninjatrader-support.com/HelpGuideV6/ToDay.html)Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file
The attached reference sample demonstrates the following key concepts:
Comparing days of the week
Comparing the time of dayImportant methods and properties used include:
DayOfWeek (http://www.ninjatrader-support.com/HelpGuideV6/DayOfWeek.html)
Time (http://www.ninjatrader-support.com/HelpGuideV6/Time.html)
ToTime() (http://www.ninjatrader-support.com/HelpGuideV6/ToTime.html)Other methods and properties of interest include:
ToDay() (http://www.ninjatrader-support.com/HelpGuideV6/ToDay.html)Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file