Skip to content

Commit 1ff2175

Browse files
committed
Add util functions
1 parent 9ee43a2 commit 1ff2175

File tree

4 files changed

+676
-5
lines changed

4 files changed

+676
-5
lines changed

pyindicators/__init__.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from .indicators import sma, rsi, ema, wilders_rsi, adx, \
2-
crossover, is_crossover, wma, macd, willr, is_crossunder, crossunder
2+
crossover, is_crossover, wma, macd, willr, is_crossunder, crossunder, \
3+
get_peaks, is_divergence, is_lower_low_detected, \
4+
is_below, is_above, get_slope, has_any_higher_then_threshold, \
5+
has_slope_above_threshold, has_any_lower_then_threshold, \
6+
has_values_above_threshold, has_values_below_threshold
37

48
__all__ = [
59
'sma',
@@ -15,4 +19,15 @@
1519
'macd',
1620
'willr',
1721
'adx',
22+
'get_peaks',
23+
'is_divergence',
24+
'is_lower_low_detected',
25+
'is_below',
26+
'is_above',
27+
'get_slope',
28+
'has_any_higher_then_threshold',
29+
'has_slope_above_threshold',
30+
'has_any_lower_then_threshold',
31+
'has_values_above_threshold',
32+
'has_values_below_threshold',
1833
]

pyindicators/indicators/__init__.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
from .macd import macd
88
from .williams_percent_range import willr
99
from .adx import adx
10-
from .utils import get_peaks, is_divergence, is_lower_low_detected
11-
10+
from .utils import get_peaks, is_divergence, is_lower_low_detected, \
11+
is_below, is_above, get_slope, has_any_higher_then_threshold, \
12+
has_slope_above_threshold, has_any_lower_then_threshold, \
13+
has_slope_below_threshold, has_values_above_threshold, \
14+
has_values_below_threshold
1215

1316
__all__ = [
1417
'sma',
@@ -25,5 +28,14 @@
2528
'adx',
2629
'get_peaks',
2730
'is_divergence',
28-
'is_lower_low_detected'
31+
'is_lower_low_detected',
32+
'is_below',
33+
'is_above',
34+
'get_slope',
35+
'has_any_higher_then_threshold',
36+
'has_slope_above_threshold',
37+
'has_any_lower_then_threshold',
38+
'has_slope_below_threshold',
39+
'has_values_above_threshold',
40+
'has_values_below_threshold',
2941
]

0 commit comments

Comments
 (0)