九毛八公式指标
老师你好: 求:股价轨迹在0轴之下金叉DEA时,注明一个标志,并编写一个选股公式。 DIFF : EMA(CLOSE,12) - EMA(CLOSE,26); DEA : EMA(DIFF,9); MACD : 2*(DIFF-DEA), COLORSTICK; D1:=EMA(C,3)-EMA(C,8); D2:=EMA(O,3)-EMA(O,8); D3:=EMA(H,3)-EMA(H,8); D4:=EMA(L,3)-EMA(L,8); A:=(D1+D2)/2; 股价轨迹:A,COLORGREEN,LINETHICK2;
公式模块:
{选股}
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA :=EMA(DIFF,9); D1:=EMA(C,3)-EMA(C,8); D2:=EMA(O,3)-EMA(O,8); A:=(D1+D2)/2; crOSS(A, DEA); {注明一个标志} DIFF : EMA(CLOSE,12) - EMA(CLOSE,26); DEA : EMA(DIFF,9); macd : 2*(DIFF-DEA), COLORSTICK; D1:=EMA(C,3)-EMA(C,8); D2:=EMA(O,3)-EMA(O,8); D3:=EMA(H,3)-EMA(H,8); D4:=EMA(L,3)-EMA(L,8); A:=(D1+D2)/2; 股价轨迹:A,COLORGREEN,LINETHICK2; DRAWICON(CROSS(股价轨迹, DEA ) AND DEA<0,DEA,1 );