Simple Long Only Bot — Strategy by mikebarone1104
By mikebarone1104
Performance Metrics
- Author: mikebarone1104
- Symbol: AMEX:SPY
- Timeframe: 5 minutes
- Net P&L: +23,801.28 USD (+2.38%)
- Win Rate: 23.8%
- Profit Factor: 1.221
- Max Drawdown: 53,863.83 USD (5.36%)
- Total Trades: 164
Description
Long-Only Automated Trading Bot (TradingView + Interactive Brokers)This is a fully automated, long-only stock trading bot designed to execute systematic trend-following strategies without emotional decision-making.Built using TradingView alerts and connected to Interactive Brokers via a Python webhook server, the bot automatically places trades based on predefined technical conditions.📊 How It WorksThe bot follows a simple, proven market strategy:Trades only in uptrendsEnters positions when price confirms momentum above key moving averagesExits when trend strength weakensAvoids shorting entirely (long-only exposure)⚙️ Core Strategy LogicUses 50 EMA for entry timingUses 200 EMA for trend confirmationBuys only when the market is in a confirmed uptrendExits when price loses short-term trend support🔔 Automation FlowTradingView generates a signalSignal is sent via webhookPython server receives the signalInteractive Brokers executes the trade automatically💡 Key FeaturesFully automated executionNo manual trading requiredTrend-following logic designed for stabilityWorks on major ETFs like SPY and QQQCan be run in paper trading or live mode⚠️ Risk NoteThis system does not guarantee profits. It is a rule-based trading strategy designed to reduce emotional decision-making and follow long-term market trends.