Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Python ATR/APS/BB/... indicator selector support

Open Martin-Molinero opened this issue 9 months ago • 0 comments

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 master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

Martin-Molinero avatar Apr 17 '25 22:04 Martin-Molinero