nardew / talipp

talipp - incremental technical analysis library for python
https://nardew.github.io/talipp
MIT License
367 stars 59 forks source link

Implement Average Day Range (ADR) and Average Relative Day Range (ARDR) #157

Open femtotrader opened 2 months ago

femtotrader commented 2 months ago

Hello,

Following #155 there is also ADR - Average Day Range (ADR)

This kind of indicator could be created quite simply using a Smoother (as suggested in #146 ) and IR (or RIR) as implemented in #156 to create AverageDayRange and AverageRelativeDayRange

We could do

AverageDayRange = IndicatorFactory.get_smoother(IR, MAType.SMA)
AverageRelativeDayRange = IndicatorFactory.get_smoother(RIR, MAType.SMA)

and instantiate like so

ind1 = AverageDayRange(period)
ind2 = AverageRelativeDayRange(period)

Kind regards