DanielManahan
Member
I want to get the integer, the number of candles in an aggregation period such as year.
for example if we are in the beginning of the year that number will be small and in the end of the year that number will approach 250 or the total number of stock trading days of the year.
my code would read like this
Def Period = AggregationPeriod.Year; # use the total number of days in the year for this variable. and later the defined variable Period would be used for some other parameters that require a data collection for an average such as VWAP or Simple Moving Average or Relative Strength Index.
but this won't work. I need the correct syntax to do this if this is possible.
for example if we are in the beginning of the year that number will be small and in the end of the year that number will approach 250 or the total number of stock trading days of the year.
my code would read like this
Def Period = AggregationPeriod.Year; # use the total number of days in the year for this variable. and later the defined variable Period would be used for some other parameters that require a data collection for an average such as VWAP or Simple Moving Average or Relative Strength Index.
but this won't work. I need the correct syntax to do this if this is possible.