For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Using data feed name and line name in Indicator
-
Hi,
I wonder whether I can use the data feed name and the line name passed as parameters within the Indicator class to retrieve the corresponding line.
In a Strategy class I can do for example
self.getdatabyname(self.params.data_name)._getline(self.params.line_name)
I understand that I could pass either the actual data/line or data and line indices but I wonder whether there is something similar to the above for the indicator class.
Thanks
-
Indicators can take anything as a data feed, including other indicators and temporary line buffers created out of (for example) arithmetic operations, which of course immediately forbids something like
getdatabyname