
TradeCommand Bot - Trade Executor for TradeCommand Panel
========================================================
This is the companion trade executor for the TradeCommand panel plugin.
IMPORTANT: TradeCommand Bot has no standalone functionality. It is designed exclusively to work with the TradeCommand panel. Please install TradeCommand (the panel plugin) first.
WHAT DOES IT DO?
----------------
TradeCommand Bot acts as the execution engine that carries out trading commands sent from the TradeCommand panel:
• Receives order requests from the panel via cTrader LocalStorage
• Executes trades using the cTrader trading API
• Returns execution results back to the panel
• Manages the Plan Engine for multi-tier exit strategies
• Sends heartbeat signals so the panel knows the executor is online
WHY IS A SEPARATE BOT NEEDED?
-----------------------------
cTrader plugins (panels) cannot directly place or modify orders due to platform security restrictions. Only cBots (Robots) have trading permissions.
TradeCommand Bot bridges this gap:
• The panel handles UI, calculations, and user interaction
• The bot handles actual order execution with full trading API access
This architecture ensures:
• Secure separation of concerns
• Reliable order execution
• Full access to all order types including Stop-Limit
HOW TO USE
----------
1. Download and install TradeCommand (the panel plugin) from cTrader Store
2. Add TradeCommand Bot to any chart
3. Start the bot (click Play)
4. The TradeCommand panel will display "Exec: ON" when it detects the bot
5. You can now place and manage orders through the panel
The bot can run on any chart — it does not need to match the panel's chart. Only one instance is needed per account.
SUPPORTED OPERATIONS
--------------------
When connected to the TradeCommand panel, this bot executes:
Order Placement:
• Market orders
• Market range orders
• Limit orders
• Stop orders
• Stop-Limit orders (MT5-style)
Position Management:
• Close positions (full or partial)
• Modify stop loss and take profit
• Move to breakeven
• Enable trailing stop
Pending Order Management:
• Cancel pending orders
• Modify pending orders
Plan Engine:
• Execute multi-tier take-profit strategies
• Execute multi-tier stop-loss strategies
• Manage trailing stops with activation levels
• Persist plans across sessions
TECHNICAL DETAILS
-----------------
• Communication: Uses cTrader LocalStorage for secure, local-only message passing
• Polling Interval: 100ms for responsive execution
• Heartbeat: Written every cycle so the panel knows the bot is active
• Data Storage: Plans are persisted locally and survive restarts
• Multi-Scope Support: Compatible with both Device and Instance storage scopes
REQUIREMENTS
------------
• TradeCommand panel plugin (required)
• Trading permissions enabled on your account
• The bot must be running for order execution to work
WHAT IF I CANNOT RUN BOTS?
--------------------------
If your account does not allow running cBots, or you prefer not to run one:
The TradeCommand panel still provides:
• Position and order display
• P&L calculations and summaries
• Risk calculations and trade previews
• Chart overlay visualization
Only actual order execution requires this bot.
AUTHOR
------
efem2000
For questions or support, please contact the developer through the cTrader community or see the TradeCommand panel product page.














.jpg)


