Commit Graph

58 Commits

Author SHA1 Message Date
4984d4944a fix: Properly use context manager for database connections in scanners 2025-02-08 20:54:31 -08:00
c610bc7d4a refactor: Update Sunny Bands scanner to match ATR EMA pattern and focus on bullish signals 2025-02-08 20:06:53 -08:00
fd3ded3f72 refactor: Centralize signal output and CSV saving in data_utils.py 2025-02-08 19:01:18 -08:00
b64e3b5a27 fix: Add signal_date definition from DataFrame in t_sunnyband.py 2025-02-08 18:59:35 -08:00
8c1b98860f refactor: Standardize CSV output structure across all scanners 2025-02-08 18:59:19 -08:00
9d8a4167d0 feat: Add potential profit display to screener outputs 2025-02-08 17:59:59 -08:00
1d51e491f2 fix: Prevent future dates in queries and add date validation 2025-02-08 17:55:37 -08:00
5afd77b9a0 feat: Add signal dates to sunnyband scanner output 2025-02-08 17:11:27 -08:00
516533800f refactor: Use consistent date range input in sunny band scanner 2025-02-08 13:20:17 -08:00
c2ac523d83 fix: Import get_stock_data in t_sunnyband.py 2025-02-08 12:14:13 -08:00
012fa0e071 refactor: Move get_stock_data to utils module for shared usage 2025-02-08 12:13:59 -08:00
41380c3638 fix: correct timestamp handling and add date validation in stock data queries 2025-02-08 11:50:25 -08:00
02a26636e3 fix: Enhance data validation and type handling in screener scripts 2025-02-08 11:39:01 -08:00
b4312e92d4 fix: Add validation checks for missing 'close' column in stock data 2025-02-08 11:35:37 -08:00
316ce608b6 refactor: Update SQL query to use window_start and timestamp conversion 2025-02-08 11:16:00 -08:00
b820c5a5b2 fix: Enhance data fetching with fallback logic and expanded time ranges 2025-02-08 11:09:19 -08:00
7a72cdf83b fix: Update resample rule format from 'T' to 'min' in t_sunnyband.py 2025-02-08 08:33:01 -08:00
cbc08d7772 fix: Import get_interval_choice and remove duplicate os import 2025-02-08 08:30:44 -08:00
c1fbac6103 feat: Add 7% stop loss and portfolio-based position sizing 2025-02-08 08:28:20 -08:00
c39bc7984d feat: Move get_interval_choice function to user_input.py from t_sunnyband.py 2025-02-08 07:47:28 -08:00
6ee4e3a34b
chore: Remove SQL query print statements and add trading info prints 2025-02-07 09:18:12 -08:00
4f545d5041
fix: Align except block with try block in get_stock_data function 2025-02-07 09:18:11 -08:00
b5125a409f
fix: Correct syntax error by adjusting exception handling indentation 2025-02-07 09:18:11 -08:00
76075cd104
fix: Correct indentation error in get_stock_data function 2025-02-07 09:18:11 -08:00
b67586116c
fix: Correct indentation error in get_stock_data function 2025-02-07 09:18:11 -08:00
8573399f9d
chore: Add debug prints for SQL query execution in stock data retrieval 2025-02-07 09:18:11 -08:00
d0583ddcc3
refactor: Update sunny scanner to use intraday stock_prices table 2025-02-07 09:18:11 -08:00
7faf56a712
refactor: Optimize sunny scanner with direct database query and simplified processing 2025-02-07 09:18:10 -08:00
8d5a194ec6
refactor: Simplify run_sunny_scanner with focused output and concise processing 2025-02-06 23:23:45 -08:00
b58df4f952
feat: Add debug output for SunnyBands signal verification in scanner 2025-02-06 23:15:59 -08:00
3f10207481
refactor: Improve SunnyBands target price calculation using band range 2025-02-06 23:10:41 -08:00
fe2b13dff5
refactor: Improve target price calculation for more aggressive trading signals 2025-02-06 23:09:51 -08:00
53ebc1767c
refactor: Add debug output for entry price and upper band in sunny scanner 2025-02-06 23:03:37 -08:00
4a3464b2d9
refactor: Improve numeric output readability with rounding and formatting 2025-02-06 22:57:52 -08:00
d1a48dfb25
refactor: Remove duplicate position details section and use upper band as target price 2025-02-06 22:52:49 -08:00
48745fbd34
feat: Enhance signal output with detailed position sizing and profit metrics 2025-02-06 22:50:55 -08:00
c248fd05df
refactor: Improve position details display with float conversion and percentage calculations 2025-02-06 22:49:14 -08:00
0648265c62
feat: Add debug prints to track bullish signal and position calculation process 2025-02-06 22:47:44 -08:00
7c8dd5e58d
feat: Add debug print for portfolio size in SunnyBands scanner 2025-02-06 22:45:32 -08:00
f154840666
refactor: Update bullish signal display with more trading-focused details 2025-02-06 22:43:40 -08:00
7a04e8d05f
refactor: Update sunny scanner to use root 'reports' directory 2025-02-06 22:39:16 -08:00
88b944851a
feat: Add position sizing to Sunny Scanner with portfolio input 2025-02-06 22:37:03 -08:00
843f78851f
refactor: Update date range and intraday data query for accurate stock scanning 2025-02-06 22:31:05 -08:00
62b63388a8
fix: Correct date formatting in stock data query for ClickHouse 2025-02-06 22:29:11 -08:00
319f18d882
refactor: Update timestamp handling for nanosecond precision in stock data queries 2025-02-06 22:27:40 -08:00
207991b9f0
fix: Replace undefined 'today' with 'end_date' in stock data queries 2025-02-06 22:23:28 -08:00
507687dc90
fix: Improve date handling for stock data retrieval and ticker selection 2025-02-06 22:23:16 -08:00
99ea46f6b1
refactor: Modify view_stock_details to show detailed query and raw results 2025-02-06 22:21:46 -08:00
bb3c5fe933
feat: Add detailed stock view function and interactive signal exploration 2025-02-06 22:19:55 -08:00
bf4c5a1b94
refactor: Update stock data retrieval to use consistent 60-day lookback 2025-02-06 22:17:48 -08:00