Python Stock Trading Automation
Budget: ₹1,500 – ₹12,500 INR
I need a clean, well-documented Python script that automatically places and manages stock trades on the NYSE using a trend-following strategy. The core logic should detect upward or downward trends, generate entry/exit signals, place the corresponding market or limit orders, and update positions in real time. If you prefer a specific broker API—Alpaca, Interactive Brokers, TD Ameritrade, or another—you’re welcome to pick the one that lets you demonstrate live or paper trading most easily, as long as it offers NYSE market access and a REST interface.
Key points I care about
• Pure Python 3 code that runs headless on a Linux VPS
• Clear separation between data ingestion, signal generation, order execution, and logging
• Simple config file (JSON or YAML) where I can adjust symbols, position sizing, risk parameters, and API keys
• Built-in safeguards: max daily loss, max position size, and a kill switch I can trigger manually
• CSV or SQLite trade log so I can review fills later
Deliverables
1. Full source code with inline comments and a brief README explaining setup, required libraries, and how to start/stop the bot
2. A short demo (recorded screen share or live session) proving the script connects to the chosen brokerage sandbox and executes at least one trend-following trade on an NYSE ticker
3. Quick-start guide outlining how to add more symbols or tweak the trend indicators
Acceptance criteria
The script must (a) pull real-time NYSE prices, (b) calculate a moving-average-based trend signal, (c) open a position when the signal triggers, (d) close it when the trend reverses or a stop is hit, and (e) log every step without crashing or hanging.
If any clarification is needed on indicators, broker selection, or risk parameters, let me know and we’ll pin it down before you start coding.
Key points I care about
• Pure Python 3 code that runs headless on a Linux VPS
• Clear separation between data ingestion, signal generation, order execution, and logging
• Simple config file (JSON or YAML) where I can adjust symbols, position sizing, risk parameters, and API keys
• Built-in safeguards: max daily loss, max position size, and a kill switch I can trigger manually
• CSV or SQLite trade log so I can review fills later
Deliverables
1. Full source code with inline comments and a brief README explaining setup, required libraries, and how to start/stop the bot
2. A short demo (recorded screen share or live session) proving the script connects to the chosen brokerage sandbox and executes at least one trend-following trade on an NYSE ticker
3. Quick-start guide outlining how to add more symbols or tweak the trend indicators
Acceptance criteria
The script must (a) pull real-time NYSE prices, (b) calculate a moving-average-based trend signal, (c) open a position when the signal triggers, (d) close it when the trend reverses or a stop is hit, and (e) log every step without crashing or hanging.
If any clarification is needed on indicators, broker selection, or risk parameters, let me know and we’ll pin it down before you start coding.