通达信魔鬼中长线指标公式
LL:=26;
S:=12;
M:=9;
DIFF :=( EMA(CLOSE,S) - EMA(CLOSE,LL))*100;
DEA :=EMA(DIFF,M);
MACD :=2*(DIFF-DEA);
绿柱消失阳根起:IF(DIFF<0,DIFF,0),STICK,LINETHICK7,COLOR00FF00;
0,STICK,LINETHICK1,COLOR000000;
红柱上涨:IF(DIFF>=0,DIFF,0),STICK,LINETHICK7,COLORRED;
IF(DEA>=0,DEA,0),STICK,LINETHICK7,COLORMAGENTA;
IF(DEA<0,DEA,0),STICK,LINETHICK7,COLORYELLOW;
绿柱跌:IF(DIFF<0,DIFF,0),STICK,LINETHICK7,COLORGREEN;
卖出:=IF(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),-20,0),COLORWHITE;
IF(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),-20,0),STICK,LINETHICK5,COLORGREEN;0,STICK,LINETHICK2,COLORWHITE;
买入:=IF(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)
本文采摘于网络,不代表本站立场,转载联系作者并注明出处