Skip to content

Commit

Permalink
add test for support resistance indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
morteza-koohgard committed Jun 29, 2024
1 parent c2721c7 commit c28829b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2358,3 +2358,15 @@ def test_ttm_squeeze():
result = ta.ttm_squeeze(candles)

assert result == True


def test_support_resistance_with_breack():
candles = np.array(test_candles_19)
result = ta.support_resistance_with_break(candles)

assert result.support == 116.26
assert result.resistance == 288.41
assert result.red_break == False
assert result.green_break == False
assert result.bear_wick == False
assert result.bull_wick == False

0 comments on commit c28829b

Please sign in to comment.