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.

Reply
 
Thread Tools Display Modes
Old 07-28-2009, 06:44 PM   #1
Czarek
Senior Member
 
Join Date: Jun 2008
Posts: 159
Thanks: 0
Thanked 0 times in 0 posts
Default How to add time period to time set.

Hallo.
How to add or deduct few minutes or other time period to the time which is set in variable int??
Rgds Czarek.
Czarek is offline  
Reply With Quote
Old 07-29-2009, 03:35 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Czarek, not sure I follow, if you have this already as an Int then you can directly add / substract the amount needed. For more convenience please use the Add method supplied with the DateTime class in C#.
NinjaTrader_Bertrand 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
HiLo of a specific time period pipal Strategy Analyzer 8 07-27-2010 08:44 AM
time calc SMA plotted on a diff time period sub5mango Indicator Development 1 03-17-2009 12:47 PM
chart axis time period tradr Charting 6 06-15-2008 05:26 PM
calculate value during a time period? Burga1 General Programming 4 12-28-2007 12:03 PM
Ability to set the Time Interval Pre-set by Exchange vlc Suggestions And Feedback 1 10-14-2007 09:10 AM


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