📢 Mga AnunsyoGabay sa baguhan: pag-post, puntos, at patakaran ng komunidadMT4/MT5 免安装包(Windows+安卓 APK)libreng pag-download(0 Points)Mga batayan: paano kumita ng puntos at aktibidad
Komunidad › Function › iCustom():调用自定义Indicator的万能interface

🏷 Function iCustom():调用自定义Indicator的万能interface

admin Beterano AA · 2026-12-01 16:04 · Mga View 59 · mga reply 0
想让 EA 用上别人的Indicator?iCustom 是钥匙。
【MT4】double v = iCustom(Symbol(), 0, "MyIndicator", 参数1, 参数2, 缓冲区索引, shift);
参数按Indicator的外部输入顺序依次传入,最后两个是缓冲区号和位移。
【怎么知道缓冲区号】打开Indicator源码看 SetIndexBuffer(0,...) 的顺序;没有源码就逐个试(0/1/2)画出来对比。
【MT5 对应】iCustom bumalik句柄,CopyBuffer 取各缓冲区,与内置Indicator同款流程。
【常见坑】
1. 参数个数与顺序错 → bumalik错误值不报错,务必核对;
2. 调用重Indicator(如 ZigZag)会拖慢回测,能内置计算就内置;
3. 路径:自定义Indicator在 Indicators 子目录,子dokumento夹用双反斜杠路径写法。
【实战建议】iCustom 适合快速原型Verify,定稿Diskarte建议把核心逻辑直接写进 EA——速度和可控性都更好。
← HistorySelect()/Hist MathMax()/MathMin(): →

Mga Reply(0)

Wala pang reply — unahan mo!