Supports MT5 and forex trading.

Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
This commit is contained in:
TIANHE
2026-01-13 04:01:42 +08:00
parent 7527d73f25
commit e095f9be7e
21 changed files with 2717 additions and 51 deletions
+21
View File
@@ -1334,6 +1334,8 @@ const locale = {
'trading-assistant.placeholders.selectBroker': 'Select broker',
'trading-assistant.brokerNames': {
'ibkr': 'Interactive Brokers (IBKR)',
'mt5': 'MetaTrader 5 (MT5)',
'mt4': 'MetaTrader 4 (MT4)',
'futu': 'Futu Securities',
'tiger': 'Tiger Brokers',
'td': 'TD Ameritrade',
@@ -1348,6 +1350,25 @@ const locale = {
'trading-assistant.placeholders.ibkrAccount': 'Optional, e.g. U1234567',
'trading-assistant.exchange.ibkrConnectionSuccess': 'IBKR connected successfully',
'trading-assistant.exchange.ibkrConnectionFailed': 'IBKR connection failed. Please check if TWS/Gateway is running.',
// MT5/Forex configuration
'trading-assistant.form.forexBroker': 'Forex Broker',
'trading-assistant.form.mt5ConnectionTitle': 'MetaTrader 5 Connection',
'trading-assistant.form.mt5ConnectionHint': 'Make sure MT5 terminal is running and logged in (Windows only)',
'trading-assistant.form.mt5Server': 'Server',
'trading-assistant.form.mt5ServerHint': 'Broker server name (e.g., ICMarkets-Demo)',
'trading-assistant.form.mt5Login': 'Account Number',
'trading-assistant.form.mt5Password': 'Password',
'trading-assistant.form.mt5TerminalPath': 'MT5 Terminal Path (Optional)',
'trading-assistant.form.mt5TerminalPathHint': 'If MT5 terminal is not installed in the default location, specify the full path to terminal64.exe (e.g., C:\\Program Files\\MetaTrader 5\\terminal64.exe)',
'trading-assistant.placeholders.mt5Server': 'e.g., ICMarkets-Demo',
'trading-assistant.placeholders.mt5Login': 'e.g., 12345678',
'trading-assistant.placeholders.mt5Password': 'Your MT5 password',
'trading-assistant.placeholders.mt5TerminalPath': 'e.g., C:\\Program Files\\MetaTrader 5\\terminal64.exe',
'trading-assistant.validation.mt5ServerRequired': 'Please enter MT5 server',
'trading-assistant.validation.mt5LoginRequired': 'Please enter MT5 account number',
'trading-assistant.validation.mt5PasswordRequired': 'Please enter MT5 password',
'trading-assistant.exchange.mt5ConnectionSuccess': 'MT5 connected successfully',
'trading-assistant.exchange.mt5ConnectionFailed': 'MT5 connection failed. Please check if terminal is running.',
'trading-assistant.form.notifyChannels': 'Notification Channels',
'trading-assistant.form.notifyChannelsHint': 'Choose how you want to receive buy/sell and risk-management signals.',
'trading-assistant.notify.browser': 'Browser',
+21
View File
@@ -1212,6 +1212,8 @@ const locale = {
'trading-assistant.placeholders.selectBroker': '选择券商',
'trading-assistant.brokerNames': {
'ibkr': '盈透证券 (Interactive Brokers)',
'mt5': 'MetaTrader 5 (MT5)',
'mt4': 'MetaTrader 4 (MT4)',
'futu': '富途证券 (Futu)',
'tiger': '老虎证券 (Tiger Brokers)',
'td': 'TD Ameritrade',
@@ -1226,6 +1228,25 @@ const locale = {
'trading-assistant.placeholders.ibkrAccount': '可选,如 U1234567',
'trading-assistant.exchange.ibkrConnectionSuccess': '盈透证券连接成功',
'trading-assistant.exchange.ibkrConnectionFailed': '盈透证券连接失败,请检查 TWS/Gateway 是否运行',
// MT5/Forex 配置
'trading-assistant.form.forexBroker': '外汇券商',
'trading-assistant.form.mt5ConnectionTitle': 'MetaTrader 5 连接配置',
'trading-assistant.form.mt5ConnectionHint': '请确保 MT5 终端已启动并登录(仅支持 Windows)',
'trading-assistant.form.mt5Server': '服务器',
'trading-assistant.form.mt5ServerHint': '券商服务器名称(如:ICMarkets-Demo',
'trading-assistant.form.mt5Login': '账户号',
'trading-assistant.form.mt5Password': '密码',
'trading-assistant.form.mt5TerminalPath': 'MT5 终端路径(可选)',
'trading-assistant.form.mt5TerminalPathHint': '如果 MT5 终端未安装在默认位置,请指定 terminal64.exe 的完整路径(例如:C:\\Program Files\\MetaTrader 5\\terminal64.exe',
'trading-assistant.placeholders.mt5Server': '例如:ICMarkets-Demo',
'trading-assistant.placeholders.mt5Login': '例如:12345678',
'trading-assistant.placeholders.mt5Password': '您的 MT5 密码',
'trading-assistant.placeholders.mt5TerminalPath': '例如:C:\\Program Files\\MetaTrader 5\\terminal64.exe',
'trading-assistant.validation.mt5ServerRequired': '请输入 MT5 服务器',
'trading-assistant.validation.mt5LoginRequired': '请输入 MT5 账户号',
'trading-assistant.validation.mt5PasswordRequired': '请输入 MT5 密码',
'trading-assistant.exchange.mt5ConnectionSuccess': 'MT5 连接成功',
'trading-assistant.exchange.mt5ConnectionFailed': 'MT5 连接失败,请检查终端是否运行',
'trading-assistant.form.notifyChannels': '通知渠道',
'trading-assistant.form.notifyChannelsHint': '选择信号触发时的通知方式',
'trading-assistant.form.notifyEmail': '邮箱地址',