花了一天时间更新非 LagMA 的旧 MQL4 版本,然后将其翻译为 MQL5 - 在这里找到了更简洁的 MQL5 版本:"https://www.mql5.com/zh/code/7022"。
我有一个关于复制缓冲区的问题--在所附的 MQL5 版本中,有这么一行:
if(CopyBuffer(RawImahandle, 0、0, to_copy, indiStruct[RAW_IMA_IDX].indiBuff)<0)
//int CopyBuffer( int indicator_handle,int buffer_num,int start_pos,int count,double buffer[] );
buffer_num 参数指的是什么? 在我今天查看的所有代码示例中,它始终为 0,在其中输入目标缓冲区编号(双缓冲区[]参数的缓冲区索引) 是行不通的......
--- double buffer[] 被描述为 "复制的目标数组",但似乎总是被用作 "复制到的目标数组"--这是否正确(它不是被复制的数组)?
NonLagMA_v5
- www.mql5.com
Simple dollar index indicator Special aspects: "holidays problem" is solved (problems arising due to absence of ticks). Mass_Index The Mass Index is intended for detection of trend turns based on changes in the bandwidth between the highest and the lowest prices. NonLagMA_v5_HTF The NonLagMA_v5 indicator with the timeframe selection...
附加的文件:
nonLagMA.mq5
31 kb
NonLagMA.mq4
26 kb
Keith Watford:
请勿重复张贴。
您的另一个主题已被删除。
我按了删除键,但并没有删除,所以我编辑了那个帖子,并在这里进行了引用(编辑似乎很顺利)--我不知道还能做什么。
不过,我还是不知道 CopyBuffer.... 中的零是什么意思。
NonLagMA_v5:
这是一款移动均线,其中延迟效应,通过使用阻尼余弦限定线性加权平均值 (LWMA) 的方程逐渐减小系数值。
作者: Nikolay Kositsin