karlwancl / Trady

Trady is a handy library for computing technical indicators, and it targets to be an automated trading system that provides stock data feeding, indicator computing, strategy building and automatic trading. It is built based on .NET Standard 2.0.
https://lppkarl.github.io/Trady
Apache License 2.0
545 stars 185 forks source link

Directional Movement Index (DMI) should return a tuple #77

Closed codebeaulieu closed 5 years ago

codebeaulieu commented 5 years ago

Directional Movement Index consists of DIPlus, DIMinus and ADX values and all three of these values are independantly useful in technical analysis.

screen shot 2018-12-20 at 7 29 32 pm

Please expose the calculated result from the DMI indicator as a tuple rather than a single decimal.

codebeaulieu commented 5 years ago

I noticed the Average Directional Index (ADX) indicator and thought it returned the tuple I was after, which is why I closed and reopened.

codebeaulieu commented 5 years ago

I think I understand your reasoning here. Each piece can be used and analyzed independantly via

This seems like it will work fine if not ideal for my use cases.