From 1d2e75b7fe07bbb62a760309fe8bd0e37ef7cc49 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Tue, 7 Jan 2025 11:22:56 -0800 Subject: [PATCH] Add test for Triple RSI Drop strategy --- test/triple_rsi_drop_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/triple_rsi_drop_test.py diff --git a/test/triple_rsi_drop_test.py b/test/triple_rsi_drop_test.py new file mode 100644 index 0000000..ad567b5 --- /dev/null +++ b/test/triple_rsi_drop_test.py @@ -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)) \ No newline at end of file