Add test for Triple RSI Drop strategy
This commit is contained in:
parent
547d9ce2a9
commit
1d2e75b7fe
13
test/triple_rsi_drop_test.py
Normal file
13
test/triple_rsi_drop_test.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
|
from ohlc import ohlc
|
||||||
|
from strategies import triple_rsi_drop
|
||||||
|
|
||||||
|
today = datetime.today()
|
||||||
|
data = ohlc('SPY', start_date = today - timedelta(days = 365), end_date = today)
|
||||||
|
|
||||||
|
signals = triple_rsi_drop(data)
|
||||||
|
|
||||||
|
result = data[['Date']].copy()
|
||||||
|
result['Signal'] = signals
|
||||||
|
print(result.tail(50))
|
Loading…
Reference in New Issue
Block a user