一个30分钟的副图公式给你:
{MACD 30分}
分2DIFF:="MACD.DIF#MIN30"(10,22,7.5);
分2DEAF:="MACD.DEA#MIN30"(10,22,7.5);
MACD2分:2*(分2DIFF-分2DEAF),NODRAW;
DRAWBAND(分2DIFF,RGB(255,157,255),分2DEAF,RGB(21,138,255));
STICKLINE(MACD2分>0,0,MACD2分,0.01,0) ,COLOR0000FF;
STICKLINE(MACD2分<0,0,MACD2分,0.01,0) ,COLORFFF000;
GMB2:IF(CROSS(分2DIFF,分2DEAF) AND 分2DIFF>0,-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLOR0000FF;
GMC2:IF(CROSS(分2DIFF,分2DEAF) AND 分2DIFF<0,-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLOR208FFF;
0,COLORFFFF00,LINETHICK1;
选股公式为:
{MACD 30分}
分2DIFF:="MACD.DIF#MIN30"(10,22,7.5);
分2DEAF:="MACD.DEA#MIN30"(10,22,7.5);
MACD2分:=2*(分2DIFF-分2DEAF);
GMC2:CROSS(分2DIFF,分2DEAF) AND 分2DIFF<0;
有话要说...