Commit Graph
28 Commits
Author SHA1 Message Date
Justin Oros c0ba4f25b6 Improve volume filter debug message with actual values and threshold 2026-02-05 09:55:09 -07:00
Justin Oros a35e6b6d8e Remove redundant loss.replace, add constants for magic numbers, document threading safety 2026-02-04 16:54:13 -07:00
Justin Oros 6c878c4e63 Fix duplicate return, add defensive null checks for bid/ask prices, and protect PnL calculation 2026-02-04 16:47:03 -07:00
Justin Oros e615473d22 Replace print statements with proper logging for consistent log file output 2026-02-04 16:36:16 -07:00
Justin Oros e210dc7a4a Use returned position_type from signal generator instead of recalculating 2026-02-04 16:33:57 -07:00
Justin Oros 55f3e59d0b Fix scale out for small positions and add exception handling to order placement 2026-02-04 16:31:50 -07:00
Justin Oros 122f719b8d Add error logging for failed order execution to diagnose rejections 2026-02-04 16:27:14 -07:00
Justin Oros 3bad01c2f3 Add MACD confirmation requirement to range regime signals for consistency 2026-02-04 16:21:40 -07:00
Justin Oros 3d435a1357 Set strict quality filters for 1 trade/day strategy - sniper mode 2026-02-04 16:19:46 -07:00
Justin Oros b64dc50ece Remove redundant short selling block and restore sell execution logic 2026-02-04 16:05:13 -07:00
Justin Oros 2d3ff2a58f Add smart account detection - auto-block short selling for live accounts under 25k 2026-02-04 16:02:50 -07:00
Justin Oros f3827914df Fix variable definition order - move cash account config vars before API validation 2026-02-04 15:50:48 -07:00
Justin Oros b29b74587a Add cash account support with T+1 settlement tracking and disable short selling by default 2026-02-04 15:47:43 -07:00
Justin Oros c720ff389d Fix SSL retry logic, add order timeouts, validate position sizes, fix array bounds in crossover detection 2026-02-04 14:25:27 -07:00
Justin Oros 8c90ff4328 Fixed division by zero vulnerabilities and improved API return value handling 2026-02-04 12:37:37 -07:00
Justin Oros 028cdf2933 Fixed ATR division by zero, replaced hard-coded sleep with dynamic market open calculation, removed unused dependencies 2026-02-04 10:56:06 -07:00
Justin Oros 8fe44df1c0 Replace function attributes with PositionState class and remove delattr calls 2026-02-04 10:43:19 -07:00
Justin Oros 0a943754a3 Fixed signal logic bugs: changed if to elif for mutually exclusive signals, added RSI_SELL_MIN condition, fixed crossover boundary checks 2026-02-04 10:22:07 -07:00
Justin Oros efdbcd0899 Fix critical bugs: RSI division by zero, API price validation, order timeout, and crossover race condition 2026-02-04 10:06:38 -07:00
Justin Oros 3b4c9f9819 Update DEFAULT_CONFIG to production-ready settings 2026-02-02 14:53:02 -07:00
Justin Oros 4dbd7b31ff Update DEFAULT_CONFIG to production-ready settings 2026-02-02 14:50:48 -07:00
Justin Oros bf4a0f3ca3 Reset crossover flags at start of each trading session 2026-02-02 14:40:31 -07:00
Justin Oros 4ccc101fbf Add crossover tracking, fix entry_time recovery, add RSI_SELL_MAX config, and improve scale-out persistence 2026-02-02 14:34:15 -07:00
Justin Oros ff87d818bb Fix RSI sell logic, add crossover detection, improve VIX fallback, and add position recovery on restart 2026-02-02 14:25:33 -07:00
Justin Oros 9522bd0488 Add configurable RSI thresholds for buy/sell signals 2026-02-02 14:10:23 -07:00
Justin Oros 91bafcc40d Fix check_multiframe_confluence function signature conflict 2026-02-02 08:21:12 -07:00
Justin Oros 0f71a0bec1 Remove .DS_Store 2026-01-30 16:38:38 -07:00
Justin Oros be9f5fb95b Alpaca Trader 2026-01-30 16:30:43 -07:00