注意!!!
找到了获取Demark 价格时间序列的创新版本!!!!
找到了获取Demark 价格时间序列的创新版本!!!!
//--------------------------这个 case 12: { double res=High[bar]+Low[bar]+Close[bar]; if(Close[bar]<Open[bar]) res=(res+Low[bar])/2; if(Close[bar]>Open[bar]) res=(res+High[bar])/2; if(Close[bar]==Open[bar]) res=(res+Close[bar])/2; return(((res-Low[bar])+(res-High[bar]))/2); } //--- 替换为 case 12: { if(Close[bar]<Open[bar]) return (Close[bar]+Low[bar])/2; if(Close[bar]>Open[bar]) return (Close[bar]+High[bar])/2; return Close[bar]; }
此外,代码中几乎所有地方都缺少 break;,代码执行时间增加。
伙计们,你们正在被一个小学生纠正。
GFilter:
一款利用高斯滤波器处理的价格序列均线。
作者: Nikolay Kositsin