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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-13-2008, 09:51 PM   #1
paco99
Member
 
Join Date: Jul 2008
Posts: 34
Thanks: 0
Thanked 0 times in 0 posts
Default Checking dates

I'm backtesting a strategy and I need to be able to check for specific dates in my code. For example, if the date is between Jan 3 2003 and Jan 5 2003, set safe_to_by==false.

I searched the docs and searched the forums, but didn't find anything.

What would this code look like?

Thanks!
paco99 is offline  
Reply With Quote
 

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
new contract dates in Sim101 ratherBgolfing Automated Trading 3 03-20-2010 11:03 AM
Wrong dates of the entries chobotnice Strategy Development 2 04-25-2008 01:25 AM
Dates disappear when zoomed out Elliott Wave Charting 5 04-25-2008 01:16 AM
Possible bug on NT strategy Analyser chart dates Sidhartha Strategy Analyzer 7 04-13-2008 05:11 AM
Bar Dates from custom Optimize metric Matt_H Miscellaneous Support 5 08-08-2007 11:15 AM


All times are GMT -6. The time now is 10:13 AM.