跳转至

通过本地 MCP 服务器进行图表操作

本指南涵盖了通过 cTrader 本地 MCP 服务器使用交易图表、管理图表对象和绘图以及应用图表模板的基本工具和提示示例。

提示

在与您的 AI 代理开始新会话时,请以 Using the cTrader local MCP server... 开始您的提示。 这有助于确保代理调用 MCP 服务器,而不是将请求路由到网络搜索。

打开和关闭图表

打开图表

Open a chart for EURUSD on the H1 period.
Open a daily chart for XAUUSD.

关闭图表

Close the EURUSD chart.

聚焦图表

将特定图表置于前端。

Focus the GBPUSD chart.

列出所有图表

List all open charts with their symbols and periods.

更改交易品种和周期

在现有图表上切换交易品种或周期,而无需打开新图表。

Change the active chart to USDJPY.
Switch the active chart to the M15 period.
Change the active chart to GBPUSD on the H4 period.

滚动和缩放

滚动

Scroll the active chart back 50 bars.
Scroll the active chart forward to the latest bar.

缩放

Zoom in on the active chart.
Zoom out on the active chart.

获取图表信息

活跃图表

What symbol and period is the active chart showing?

图表视口

获取活跃图表的可见范围。

Show me the viewport of the active chart including the 
visible date range and price range.

图表对象

图表对象是您在图表上放置的绘图和注释,例如趋势线、水平线、矩形和其他形状。

添加图表对象

Draw a horizontal line on the active chart at price 1.1200.
Add a trend line on the active chart from the last swing 
low to the current price.
Add a rectangle on the active chart between 1.1150 and 
1.1250 over the last 20 bars.
Add a Fibonacci retracement on the active chart between the recent 
swing high and swing low.
Draw a risk-reward block on the active chart: entry at 1.1200, 
stop at 1.1150, target at 1.1300.
Add an up arrow marker at 1.1180 on the most recent bar.

列出图表对象

Show me all objects on the active chart.

更新图表对象

Change the colour of the trend line on the active chart to red.
Make the horizontal line at 1.1200 dashed.

删除图表对象

Delete the horizontal line at 1.1200 on the active chart.

清除所有图表对象

Remove all objects from the active chart.

警告

清除所有图表对象的操作不可逆。 请确保在确认之前不再需要这些绘图。

图表模板

应用模板

Apply the template 'My Trading Setup' to the active chart.

列出可用模板

What chart templates are available?

保存模板

Save the current chart setup as a template called 'Swing setup'.

删除模板

Delete the chart template called 'Old setup'.

组合提示

您可以在单个提示中组合多个图表操作。

Open a chart for EURUSD on H1, add RSI and a 200-period SMA, 
then apply my 'Swing Trading' template.
List all open charts, then close any that are on period 
below H1.

警告

MCP 服务器是一个 AI 辅助交易工具,不提供财务、投资、法律或税务建议。 AI 生成的操作可能会触发实际交易并导致亏损。 用户全权负责验证输出、监督策略、保护凭证安全以及自行承担使用 MCP 服务器的风险。