Descrizione
🤖 AILevelTrader – Multi-AI trading on price levels
The cBot queries up to 12 AI models in parallel (Claude, GPT, Gemini, Grok, Copilot, Groq, OpenRouter, Mistral, Cerebras, NVIDIA, DeepSeek, Perplexity). Each one proposes complete orders with entry, stop loss, take profit and confidence score.
⚙️ How it works
🔹 Builds the market briefing: recent candles, support and resistance (swing, pivots, daily and weekly extremes), ATR, spread and open positions
🔹 Queries all configured AIs in parallel
🔹 A consensus engine (Unanimous, Majority or Average Confidence) decides which orders go through
🔹 Every order passes the safety filters before execution
✨ Key features
🤖 Multi-AI consensus with automatic model fallback
🛡️ Max and min SL, min TP, risk % per trade, order caps
🎯 Break Even, Trailing Stop, Partial Close
📊 Filters: sessions, ATR, spread
🏢 Prop Firm mode: daily and total drawdown, target, weekend block
🧠 Self-correction: blocks BUY or SELL after consecutive losses
📋 On-chart panel with status and AI votes
🆓 Works with free providers (Groq, OpenRouter, Mistral, Cerebras, NVIDIA)📌 Requirements
At least one AI provider API key (free ones work) and an internet connection. Metals, crypto and indices need wider pip values: adjust SL and TP.
⚠️ Disclaimer
Trading involves substantial risk. AI models can be wrong and past performance does not guarantee future results. Always test on a demo account first. AI API costs are paid by the user.
━━━━━━━━━━━━━━━━
📘 PARAMETER GUIDE
━━━━━━━━━━━━━━━━
🛡️ RISK MANAGEMENT
🔹 Volume (Lots): fixed lot size per order. If the risk exceeds "Max risk per trade" the order is skipped.
🔹 Entry Mode: allowed order types. Any, StopOnly (breakout), LimitOnly (bounce), MarketOnly (immediate), StopOrMarket.
🔹 Max Stop Loss (pips): maximum SL. A wider stop is cut to this value. Use 500+ for XAUUSD/BTC.
🔹 Min Take Profit (pips): minimum accepted TP. Use 50+ for XAUUSD/BTC.
🔹 Min Stop Loss (pips): stops that are too tight get widened. 0 = off.
🔹 When take profit is below minimum: RejectOrder discards the order (recommended). RaiseTp lifts the TP to the minimum and leaves the SL unchanged.
🔹 Max concurrent positions/orders: maximum positions plus pending orders on the symbol.
🔹 Max orders per direction: maximum BUY and SELL separately. 0 = off.
🔹 Max risk per trade (%): maximum risk as % of balance.
🔹 Max trades per day: daily limit of new trades. 0 = off.
🔹 Cooldown after loss (min): pause after a losing trade. 0 = off.
🔹 Cancel pending orders older than (min): cancels unfilled pending orders after N minutes. 0 = off.🕐 TRADING SESSIONS
🔹 Enable session filter: trades only inside the given time windows (UTC).
🔹 Session 1 start / end: first session (HH:MM UTC).
🔹 Session 2 start / end: optional second session. Empty = off.
📉 ATR FILTER
🔹 Enable ATR filter: skips the AI call when volatility is out of range.
🔹 ATR period: period in candles.
🔹 Min ATR (pips): below this the market is too flat. 0 = off.
🔹 Max ATR (pips): above this the market is too volatile. 0 = off.
✂️ PARTIAL CLOSE
🔹 Enable partial close: closes part of the position at the first target and moves the SL to break even on the rest.
🔹 % of position to close: percentage closed at TP1 (10-90).
🔹 TP1 = SL distance x ratio: TP1 equals the SL distance times the ratio (1.0 = 1:1).
📡 SPREAD CONTROL
🔹 Max allowed spread (pips): maximum tolerated spread (30 for XAUUSD, 3 for forex).
🔹 Block new orders if spread > max: blocks new orders on high spread.
🔹 Close open positions if spread > max: also closes open positions (default off).
🔹 Spread alert multiplier: logs an alert when the spread exceeds N times the baseline measured by the bot.🏢 PROP FIRM
🔹 Enable Prop Firm rules: enables all prop rules.
🔹 Initial account balance: starting balance, base for drawdown.
🔹 Max Daily Drawdown %: when hit, closes everything and blocks trading until the next day.
🔹 Max Total Drawdown %: when hit, closes everything and stops the bot.
🔹 Daily Profit Target %: once reached, no new orders today. 0 = off.
🔹 Stop trading on Friday after hour: UTC hour after which no new trades open on Friday.
🔹 Block trading over weekend: blocks trading from Friday (after the set hour) to Sunday.
🔹 Close all positions before weekend: closes positions and pending orders before the weekend.
🔹 Max open positions (Prop): maximum open positions in Prop mode.
🔹 Daily drawdown warning %: warning threshold below the limit.
🏃 TRAILING STOP
🔹 Enable Trailing Stop: enables the dynamic stop.
🔹 Trailing distance (pips): SL distance from price.
🔹 Activate trailing after profit (pips): trailing starts after this profit.
🔹 Trailing update step (pips): minimum update step (the bot uses at least 2 pips).
⚖️ BREAK EVEN
🔹 Enable Break Even: moves the SL to entry at the set profit.
🔹 Activate BE after profit (pips): profit required.
🔹 BE offset above entry (pips): pips beyond entry to cover costs.📍 PRICE LEVELS
🔹 Swing H/L lookback candles: candles used for swing high and low.
🔹 Pivot timeframe: Daily, Weekly or Monthly.
🔹 Level zone +/- (pips): if an order or position already exists within this zone, the bot won't open another nearby.
🔹 Level window +/-% from bid: levels farther than this % from price are discarded. Use 20+ for BTC/XAUUSD.
🔑 AI – API KEYS
🔹 API Key (Claude, GPT, Gemini, Grok, Copilot, Groq, OpenRouter, Mistral, Cerebras, NVIDIA, DeepSeek, Perplexity): leave empty to exclude the provider. Groq, OpenRouter, Mistral, Cerebras and NVIDIA offer free tiers.
🔹 Model Name: model to use. If unavailable the bot tries fallback models. OpenRouter empty = automatic discovery of free models. Gemini picks automatically.
🔹 Copilot Azure Endpoint: full URL of your Azure OpenAI deployment.
🗳️ AI – CONSENSUS
🔹 AI analysis interval (min): how often the bot queries the AIs (30 for active trading, 60 for free APIs).
🔹 Consensus mode: Unanimous (all agree), Majority (more than half), AvgConfidence (average confidence at least 60%). With few AIs, Majority may block everything.
🔹 Min AIs that must back an order: minimum AIs that must propose the same order.
🔹 On disagreement: Avoid discards the order, UseMajority accepts it with at least one vote.
🔹 Retry unavailable AI models after (min): when to retry a failed model. Doubles on each consecutive failure.🎛️ AI – TRADE FILTERS
🔹 Forced direction: Free, BuyOnly or SellOnly.
🔹 BUY min / max price: price range in which BUYs are allowed. 0 = off.
🔹 SELL min / max price: price range in which SELLs are allowed. 0 = off.
🔹 Custom AI instruction: free-text instruction added to the prompt (e.g. "avoid news").
🔹 Max entry distance from price %: rejects orders whose entry is too far from price. 0 = off.
🧠 SELF CORRECTION
🔹 Enable self correction: the bot stores results per direction and feeds them back to the AIs.
🔹 Trades to remember: how many recent trades to consider.
🔹 Block a direction after consecutive losses: after N losses in a row, blocks BUY or SELL and cancels pending orders in that direction. 0 = off.
🔹 Direction block duration (min): block duration.
💡 STARTING SETUPS
🔸 Forex (EURUSD): Max SL 30-50, Min TP 10-15, max spread 3, trailing 15 with trigger 10
🔸 XAUUSD / BTC / indices: Max SL 500+, Min TP 50+, max spread 30, Level window 20%
🔸 Prop firm (e.g. FTMO): Prop rules ON, real starting balance, daily DD 5%, total 10%, Block weekend ON, low volume (risk per trade 0.5-1%)
Riepilogo
The bot builds a comprehensive market briefing using recent candles, support and resistance levels (swing, pivots, daily and weekly extremes), ATR, spread, and open positions. It supports risk management features such as max/min stop loss, minimum take profit, risk percentage per trade, order caps, break-even, trailing stops, partial closes, and filters for trading sessions, ATR volatility, and spread limits.
Prop firm compatibility includes daily and total drawdown limits, profit targets, weekend trading blocks, and position limits. The bot also incorporates self-correction by blocking buy or sell directions after consecutive losses. It works with free and paid AI API providers, requiring at least one API key and an internet connection. Suitable markets include forex, metals, crypto, and indices, with adjustable parameters for wider pip values.
Key parameters and filters allow customization of entry modes, trade frequency, and AI consensus settings. The bot provides an on-chart panel displaying status and AI votes for transparency.
