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

AddDeltaYM([DateTime],[Year],[Month])

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

This function adds (or subtracts) years and months to a datetime.
#Add one month to the current bar's date time
my $datetime=AddDeltaYM(Now(DateTime),0,1);
#Add one year and six months to the current bar's date time
my $datetime=AddDeltaYM(Now(DateTime),1,6);
#Subtract one month to the current bar's date time
my $datetime=AddDeltaYM(Now(DateTime),0,-1);
#Subtract one year and six months to the current bar's date time
my $datetime=AddDeltaYM(Now(DateTime),-1,-6);

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 , AddDeltaDHMS , DeltaDateTime

© 2008 seer trading systems ltd
feedback FAQ legal privacy