You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Average Directional Index (ADX) is a trend strength indicator that helps traders identify the strength of a trend, regardless of its direction. It is derived from the Positive Directional Indicator (+DI) and Negative Directional Indicator (-DI) and moves between 0 and 100.
330
+
331
+
```python
332
+
defadx(
333
+
data: Union[PdDataFrame, PlDataFrame],
334
+
period=14,
335
+
adx_result_column="ADX",
336
+
di_plus_result_column="+DI",
337
+
di_minus_result_column="-DI",
338
+
) -> Union[PdDataFrame, PlDataFrame]:
339
+
```
340
+
341
+
Example
342
+
343
+
```python
344
+
from investing_algorithm_framework import CSVOHLCVMarketDataSource
345
+
346
+
from pyindicators import adx
347
+
348
+
# For this example the investing algorithm framework is used for dataframe creation,
0 commit comments