JSParticipant
Senior
GetTimeFrame returns always -1 when applied to TimeFrame(Default)
yes that’s still the case for IG, it has been fixed already in software version. I think that version will come very soon for IG users.
Besides the default TF, I think GETTIMEFRAME has yet another bug in the monthly TF ! For example if we run this code:
timeframe(1 month)
c = gettimeframe/(60*60*24) // days per month
return c
it should return the number of days of the actual month but it will return 30 days for every month no matter what. I guess this bug will propagate to the quarterly and yearly TFs, but I didnt test those.
1 month is always 1 month, no matter if 28, 29, 30 or 31 days are in it.
The GetTimeframe keyword is only used to let you know what TF you are using, not how many days are in it.