Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
Functions by Category Functions by Alphabetical list

AddDeltaDHMS([DateTime],[Day],[Hour],[Minute],[Second])

Usable in an seer event objectUsable in an seer indicator objectUsable in an seer chart object

This function adds (or subtracts) days, hours, minutes and seconds to a datetime
#Add one hour to the current bar's date time
my $datetime=AddDeltaDHMS(Now(DateTime),0,1,0,0);
#Add one day and six hours to the current bar's date time
my $datetime=AddDeltaDHMS(Now(DateTime),1,6,0,0);
#Subtract one hour to the current bar's date time
my $datetime=AddDeltaDHMS(Now(DateTime),0,-1,0,0);
#Subtract one day and six hours to the current bar's date time
my $datetime=AddDeltaDHMS(Now(DateTime),-1,-6,0,0);

Related functions:

DateTime , Time , Second , Minute , Hour , Month , Year , DayOfWeek , DayOfMonth , DayOfYear , WeekOfYear , NewHour , NewDay , NewWeek , NewMonth , NewYear , Monday , Tuesday , Wednesday , Thursday , Friday , FormatDateTime , ValidateDateTime , AddDeltaYM , DeltaDateTime

© 2008 seer trading systems ltd
feedback FAQ legal privacy