将macd夹心公式中diff上穿dn的选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

macd夹心公式源码如下:谢谢!!!{参数自行设置:(12,26,9)}DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA : EMA(DIFF,M);MACD : 2*(DIFF-DEA), COLORSTICK;VAR1:=HHV(DEA,53);VAR2:=LLV(DEA,55);VAR3:=DEA-(DIFF-DEA);UP:IF(DIFF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),COLORbb0000,LINETHICK2;DN:IF(DIFF

解答:

 DIFF:=EMA(C,12)-EMA(C,26);

DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIFF-DEA);
UP:=IF(DIFF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
DN:=IF(DIFF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
选股:CROSS(DIFF,DN);
 

选股票看什么指标最好 >股票指标网