 (1).png)









COT Institutional Trader Pro (Weekly AI + Backtest) ๐
Brief Description This is not a scalping bot. ๐ซ It is a cBot for position/swing trading designed to capture large, weekly market movements. ๐
It uses an external analysis engine (AI-based ๐ง ) to read the chaotic COT (Commitment of Traders) report and transform institutional positioning ("Smart Money") into clear trading signals. ๐
The bot operates in a "universal" mode:
- Live Trading: Connects to our cloud API (Apify) for fresh data every week. โ๏ธ
- Backtesting: Uses a local historical file (included) to allow for accurate and fast optimization. โก๏ธ
Includes professional-grade risk management (Trailing Stop, Break Even, Prop Firm Limits) for complete control. ๐ก๏ธ
The Strategy: Weekly AI-Powered Trading The market isn't moved by retail traders; it's moved by institutions. ๐ฆ This bot follows them.
- AI Analysis (On Server): Every week, our scraper on Apify (acting as the analysis engine ๐ค) downloads the raw CFTC reports. It analyzes thousands of lines of text data ๐ to extract the net positioning of "Speculators" (Asset Managers + Leveraged Money) for 14 assets.
- Momentum Signal: The bot isn't interested in static positioning, but in the flow. ๐จ It compares the current report with the previous week's report.
- Execution:
- If "smart money" has massively increased its BUY positions, the bot sees strong bullish momentum and opens a BUY. ๐
- If it has massively increased its SELL positions, the bot sees bearish momentum and opens a SELL. ๐
This is a "slow" and patient strategy. โณ The bot will only open positions when it detects a significant shift in institutional consensus, holding them for days or weeks to capture the main trend.
Main Features
- 100% COT Report-based Strategy (Institutional Momentum). ๐ฏ
- Multi-Asset Analysis (14 Symbols): ๐
- Forex: EUR, GBP, JPY, CAD, CHF, AUD ๐ฑ
- Commodities: Gold (XAU), Silver (XAG), Oil (XTI) ๐ฅ๐ข๏ธ
- Indices: S&P 500 (SPX), Dow Jones (DJIA), Nasdaq (NAS), Russell 2000 (RUS), DAX (DAX) ๐
- Prop Firm Risk Management: Set max daily (%) and total (%) loss limits. ๐
- Advanced Position Management: Fully configurable Trailing Stop and Break Even. โ๏ธ
- Highly Configurable: Set Volume (Fixed or % Risk), SL, and TP independently for each of the 14 assets. ๐ง
Universal Mode: Offline Optimization, Online Trading This bot uses advanced logic to automatically detect if it is running in a backtest or in live trading, offering the perfect solution for both scenarios. โจ
1. Live Trading Mode (Store-Ready) โ The bot is 100% autonomous for the end-user.
- How it works: On startup, the bot automatically connects (via
AccessRights.None
) to our Apify API URL (embedded in the code, requires no token from the user). ๐โ๏ธ - Updates: Our API server is scheduled to download and analyze new COT reports as soon as they are published by the CFTC (usually every Friday afternoon). ๐
- Reliability: The bot receives new signals automatically each week. ๐ (Note: Data depends on CFTC publication, which can be delayed by events like US government shutdowns. ๐บ๐ธ)
2. Backtest Mode (For Optimization) ๐ฌ To test the strategy, the bot needs historical data.
- How it works: When you start a "Backtest," the bot detects it automatically.
- It ignores the API and activates its
OnBar()
logic. โญ๏ธ - Reads the History: It loads the entire COT history from the
cot_history_for_ctrader.json
file (included with the bot and saved in its data folder). ๐ - Simulation: The bot "time travels" โณ over the historical bars and triggers the COT signals as soon as the bar's date surpasses the date of a report in the file, allowing you to test and optimize years of strategy in minutes. โฑ๏ธ
Initial Setup and Important Notes
- Symbol Mapping (Crucial): ๐บ๏ธ Symbol names change between brokers (e.g., "US100" vs "NAS100"). Go into the parameters and ensure that each
Map...
(e.g.,Map NAS to Symbol
) matches your broker's symbol name exactly. โ๏ธ - IT IS NOT A SCALPER: ๐ซ This is a weekly bot. It is normal for it to be inactive for days. ๐งโโ๏ธ Trades are only opened when a new report arrives (usually over the weekend or Monday's open ๐ฌ) and only if there is a valid momentum signal.
- Backtesting: Run backtests on the H1 or D1 timeframe to test the weekly strategy. ๐
- Disclaimer: Trading involves significant risk. โ ๏ธ Past performance (both in backtests and live) is not a guarantee of future results. Manage your risk carefully. ๐