I have an indicator that plots figures on a daily chart based on intraday bars (most of the time 5 and 10 minutes charts) .
I would like to try to compute the figures from seconds bars (say 30 seconds) .... is there anyway I could change the PeriodType in the add part ?
What I have in mind is something like
Add((PeriodType)("PeriodType." + typeOfBar), period);
= > typeOfBar would be a string being Second or Minute
This does not work as NT refuses the conversion from string to PeriodType
Is there any way to do that ?
Many Thanks
Comment