Can you instantiate a Line Coupler inside an Indicator
In my custom indicator I would like to do something like this:
(...datas is an hourly time scale, datas is the same data resampled daily)
self.l.daily_close = self.datas.close
self.l.daily_coupler = self.l.daily_close()
or take the SMA of datas perhaps...or is this totally impossible?
I am trying to make a MACD crossover on the daily, but if there is a sufficiently large hourly trade, I want to update the daily MACD crossover, then trade in the next hour. So I am iterating on the hourly scale
I've found a workaround. I define the coupler in strategy then pass it in as a parameter to MyInd().
I hope that's the way it is intended to be used