|
Date Functions
|
|
|
|
Day ([Offset])
Description:
Returns the number of the day of the period being elaborated. If for example the current period has date of 03 July 3, the function will return 2002.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Day(-1) returns the number of the day of the period before the current one. Day(1) returns the number of the day of the period after the current one.
|
DayOfWeek ([Offset])
Description:
Returns the number of the day of the week of the period being elaborated. The first day of the week is Sunday. If the period being elaborated is monday, the function will return 2, if Wednesday it will return 4 and so on.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, DayOfWeek(-1) returns the number of the day of the week of the period before the current one. DayOfWeek(1) returns the number of the day of the week of the period after the current one.
|
Hour ([Offset])
Description:
It returns the time of the period being elaborated. If, for example, the current period has the time of 10.30, the function will return 10. This makes sense only for intraday data.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Hour(-1) returns the hours value of previous period, Hour(1) returns the hours value of the next period.
|
Minute ([Offset])
Description:
It returns the number of minutes after the hour of the period being elaborated. If, for example, the current period has the time of 10.30, the function will return 30. This makes sense only for intraday data.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Minute(-1) returns the minutes value of previous period, Minute(1) returns the minutes value of the next period.
|
Month ([Offset])
Description:
Returns the number of the month of the period being elaborated. If for example the current period has date of 03 July 7, the function will return 2002.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Month(-1) returns the number of the month of the period before the current one. Month(1) returns the number of the month of the period after the current one.
|
Tick ([Offset])
Description:
It returns the tick of the period being elaborated. This makes sense only for intraday data.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Tick(-1) returns the tick value of previous period, Tick(1) returns the tick value of the next period.
|
Week ([Offset])
Description:
Returns the number of the day of the week of the period being elaborated. The first day of the week is Sunday.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Week(-1) returns the number of the week of the period before the current one. Week(1) returns the number of the week of the period after the current one.
|
Year ([Offset])
Description:
Returns the number of the year of the period being elaborated. If for example the current period has date of 03 July 2002, the function will return 2002.
Arguments:
|
[Offset]
|
|
Optional. It gives to the function the possibility to return a value of a certain number of periods before or after the elaborated period. For example, Year(-1) returns the number of the year of the period before the current one. Year(1) returns the number of the year of the period after the current one.
|
|
|
|
|