通达信机械量化MACD拐点指标公式

2024-05-27 17:58发布

SHORT:=12;LONG:=26;M:=9;C,COLORBLACK;DIFF :=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA :=EMA(DIFF,M); :=2*(DIFF-DEA);JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{计算出时的DIFF值}DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{计算出明日MACD=MACD时的DIFF值}DIF:(DIFF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)));{计算今日DIFF=DIFF的对应}金叉死叉:(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)));{计算金叉死叉的对应股价}柱体变向:(
 解锁全文需 1  财富值,免费注册即送20财富值!