Add TradeLocker automated trading bot with EMA/RSI/ATR strategy#26
Open
TheBrimberry wants to merge 1 commit intocodewithdark-git:mainfrom
Open
Add TradeLocker automated trading bot with EMA/RSI/ATR strategy#26TheBrimberry wants to merge 1 commit intocodewithdark-git:mainfrom
TheBrimberry wants to merge 1 commit intocodewithdark-git:mainfrom
Conversation
EMA(9/21) crossover strategy with RSI(14) confirmation and ATR-based dynamic SL/TP. Built-in Atlas risk rules: 0.5% per-trade risk, 2% daily loss cap, 4% total drawdown ceiling, max 2 concurrent positions. Trades only during London/NY sessions for maximum liquidity. https://claude.ai/code/session_01AVzJhsgKbFEDqP5nboYkA1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a complete automated trading bot for TradeLocker (Atlas Funded Accounts) that implements an EMA crossover strategy with RSI confirmation and ATR-based risk management.
Key Changes
tradelocker_api.py): Handles JWT authentication with automatic token refresh, candle/quote fetching, order placement, and position management via REST APIbot.py): Polling-based trading engine that evaluates signals, sizes positions, and executes trades with proper error handling and loggingindicators.py): Pure-Python implementations of EMA, RSI, and ATR with signal generation logic (EMA crossover + RSI momentum filter)risk_manager.py): Enforces Atlas compliance rules including per-trade risk limits (0.5%), daily loss ceiling (2%), total drawdown cap (4%), and max concurrent positions (2)session_filter.py): Restricts trading to high-liquidity windows (London 07-12 UTC, New York 13-17 UTC)config.py): Centralized settings for API credentials, strategy parameters, risk limits, and trading symbolsREADME.md): Setup instructions, strategy overview, and usage guideNotable Implementation Details
bot.logfile for monitoring and debugginghttps://claude.ai/code/session_01AVzJhsgKbFEDqP5nboYkA1