Skip to content

Commit

Permalink
MAINT minor refactors and removal of watchlist.py
Browse files Browse the repository at this point in the history
  • Loading branch information
twopirllc committed Jun 16, 2024
1 parent c1a161b commit 23bca1a
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 351 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ $ pip install pandas-ta[full]

## Development Version

The _development_ version, _0.4.15b_, includes _numerous_ bug fixes, speed improvements and better documentation since release, _0.3.14b_.
The _development_ version, _0.4.16b_, includes _numerous_ bug fixes, speed improvements and better documentation since release, _0.3.14b_.

```sh
$ pip install -U git+https://github.com/twopirllc/pandas-ta.git@development
Expand Down
328 changes: 0 additions & 328 deletions examples/watchlist.py

This file was deleted.

2 changes: 1 addition & 1 deletion pandas_ta/candles/cdl_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def cdl_pattern(

else:
if not Imports["talib"]:
print(f"[X] Please install TA-Lib to use {n}. (pip install TA-Lib)")
print(f"[X] Install TA-Lib to use {n}. (pip install TA-Lib)")
continue

pf = tala.Function(f"CDL{n.upper()}")
Expand Down
4 changes: 2 additions & 2 deletions pandas_ta/momentum/stc.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def schaff_tc(close, xmacd, tclength, factor):

for i in range(1, m):
# %Fast K of MACD
if lowest_xmacd[i] > 0:
stoch1[i] = 100 * ((xmacd[i] - lowest_xmacd[i]) / xmacd_range[i])
if lowest_xmacd.iloc[i] > 0:
stoch1[i] = 100 * ((xmacd.iloc[i] - lowest_xmacd.iloc[i]) / xmacd_range.iloc[i])
else:
stoch1[i] = stoch1[i - 1]
# Smoothed Calculation for % Fast D of MACD
Expand Down
2 changes: 1 addition & 1 deletion pandas_ta/overlap/pivots.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def pivots(
return # Emergency Break

if not v_datetime_ordered(close):
print("[!] Pivots requires a datetime ordered index.")
print("[!] Pivots requires an ordered DatetimeIndex.")
return

dt_index = close.index
Expand Down
Loading

0 comments on commit 23bca1a

Please sign in to comment.