📢 AnnoncesGuide débutant : messages, points et règles de la communautéMT4/MT5 免安装包(Windows+安卓 APK)téléchargement gratuit(0 Points)Bases débutant : gagner des points et de l'activité
Communauté › Fonctions › AccountInfo 系列Fonctions:Informations de compte读取全解

🏷 Fonctions AccountInfo 系列Fonctions:Informations de compte读取全解

admin Membre confirmé AA · 2026-11-03 23:41 · Vues 113 · réponses 0
风控逻辑的地基:读对Compte数据。
【MT5 双Fonctions】AccountInfoDouble(ENUM) 读小数(余额、净值、保证金),AccountInfoInteger(ENUM) 读整数(杠杆、持仓数、Compte模式)。
【最常用七个】
- ACCOUNT_BALANCE 余额;
- ACCOUNT_EQUITY 净值(=余额+浮盈,实时风控看它);
- ACCOUNT_MARGIN_FREE 可用保证金;
- ACCOUNT_MARGIN_LEVEL 保证金比例(<100% 不能开新仓);
- ACCOUNT_LEVERAGE 杠杆;
- ACCOUNT_TRADE_ALLOWED 是否允许交易(EA 初始化时检查);
- ACCOUNT_MARGIN_MODE Compte模式(对冲/净持,影响Stratégie写法)。
【MT4 对应】AccountBalance()、AccountEquity()、AccountFreeMargin() 等独立Fonctions。
【实战模板】每笔下单前检查:净值>余额×0.9 且保证金比例>300%,任一不满足Reject开仓并报警——这两行Code能挡住大部分灾难。
← iMACD():MACD 三线怎么取值 SymbolInfoTick():实时报 →

Réponses(0)

Aucune réponse pour l'instant — prenez la première place