Is there anyway you can change the standard pivot indicator to work on Tick chart (Timeframe for pivot is not tick)? I'm trying to make this change and first change the following line to core.Tick from core.Bar
before:
indicator:requiredSource(core.Bar);
after:
indicator:requiredSource(core.Tick);
but I get an error on the following line
core.getcandle(source:barSize(), core.now(), 0);
I understand that here the source expected is a bar source so I need to change the source used for the indicator to use barsource. How do I get that source when the indicator is applied to tick chart?
Thanks