Scale into and out of a position with an AI agent¶
This guide shows you how to scale into and manage positions with an AI agent through the cTrader local MCP server, including building a position in stages, taking partial profits as the market moves in your favour and managing the remaining exposure.
Tip
When starting a new session with your AI agent, begin your prompt with Using the cTrader local MCP server.... This helps ensure that the agent calls the MCP server instead of routing requests to web search.
1. Plan your entry levels¶
Before placing orders, ask the agent to help you identify levels using recent price data.
Get the last 48 hours of hourly candles for EURUSD and identify
the key support and resistance levels.
Use the agent's analysis to decide where you want to enter. For this example, assume you want to scale into a buy position at three levels: 1.1200, 1.1150 and 1.1100.
2. Place scaled entry orders¶
Place limit buy orders at each of your planned entry levels.
Place the following limit buy orders on EURUSD, each for 0.3 lots:
1. Limit buy at 1.1200 with stop loss at 1.1050 and take profit at 1.1400.
2. Limit buy at 1.1150 with stop loss at 1.1050 and take profit at 1.1400.
3. Limit buy at 1.1100 with stop loss at 1.1050 and take profit at 1.1400.
The agent places three separate limit orders. Each shares the same stop loss and take profit, but enters at a different price.
3. Monitor your pending orders¶
Check which orders have been filled and which are still pending.
Show me all my pending orders on EURUSD and all open EURUSD positions.
As the market moves, some orders will fill and appear as positions while others remain pending.
4. Take partial profits¶
Once the position moves in your favour, close a portion to lock in profits.
Close 0.3 lots of my EURUSD position.
This performs a partial close, reducing your exposure while keeping the remaining volume open.
5. Move stop loss to breakeven¶
After taking partial profits, protect the remaining position by moving the stop loss to your average entry price.
What is the average entry price of my open EURUSD position?
Move the stop loss on my EURUSD position to that entry price.
This ensures that even if the market reverses, you exit the remaining position without a loss.
6. Close the remaining position or let it run¶
Decide whether to close the rest or let it run to your take profit.
Close manually:
Close my remaining EURUSD position.
Adjust take profit and let it run:
Move the take profit on my EURUSD position to 1.1500.
7. Cancel unfilled orders¶
If some of your limit orders never filled, clean them up.
Cancel all my pending orders.
Warning
The MCP server is a tool for AI-assisted trading and does not provide financial, investment, legal or tax advice. AI-generated actions may trigger real trades and result in losses. Users are solely responsible for verifying outputs, supervising strategies, securing credentials and using the MCP server at their own risk.