欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

交易信号功能。基于 CCI 指标的值。 - MetaTrader 4 库

author emer | 138 人阅读 | 0 人评论 |

Trading signals function. Based on the values of the CCI indicator. - library for MetaTrader 4

Trading signals function. Based on the values of the CCI indicator. - library for MetaTrader 4

Add the function to the EA: #include <Signal.mqh>
条件 if(GetSignal()==1) 用于购买。
条件 if(GetSignal()==-1) 用于卖出。

函数的外部变量:

periodCCI - 计算指标的平均周期。

Applied_price - 使用过的价格。它可以是任何价格常数,范围从 0 到 6。

shift - 从指标缓冲区获取的值的索引(相对于当前柱向后移动指定的周期)。

CCI_High - 指标的上限。

CCI_Low - 指标的较低水平。

Trading signals function. Based on the values of the CCI indicator. - library for MetaTrader 4


附件下载

📎 Signal.mq4 (1.6 KB)

Source: MQL5 #8695

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录