Lean
Lean copied to clipboard
Python ATR/APS/BB/... indicator selector support
Expected Behavior
- Can use indicator helper methods selector functions in python
Actual Behavior
Trying to dynamically access a method that does not exist throws a TypeError exception. self.atr(self._symbol, 14, MovingAverageType.SIMPLE, Resolution.DAILY, self.selector_double__trade_bar),
Potential Solution
- Ideally this would be handled by pythonnet the current approach seems to be adding a pyobject overload but it doesn't scale nicely with hundreds on indicators
Reproducing the Problem
See IndicatorSuiteAlgorithm.py
System Information
N/A
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
- [x] I have provided detailed steps to reproduce the issue