求助 通达信 高手,编写一个选股公式;要求:只要当前这根K线 ,对应的副图为红柱,就选入。
副图为一个设置为长期的MACD指标公式;源码如下:DIFF:(EMA(CLOSE,26)-EMA(CLOSE,52)),COLORRED;DEA:EMA(DIFF,52)...
副图为 一个设置为 长期的MACD指标公式;源码如下:
DIFF:(EMA(CLOSE,26) - EMA(CLOSE,52)),COLORRED;
DEA:EMA(DIFF,52),COLORFF00FF;
MACD:2*(DIFF-DEA), COLORSTICK;
IF(DIFF<0,DIFF,0),COLORYELLOW,LINETHICK2;
IF(DIFF<0,0,DIFF),COLORRED,LINETHICK2;
IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK2;
IF(DIFF>DEA,DEA,DEA),COLORFF00FF,LINETHICK2;
AA:=CROSS(DIFF,DEA);
DRAWICON(AA,-0.02,1); 展开
DIFF:(EMA(CLOSE,26) - EMA(CLOSE,52)),COLORRED;
DEA:EMA(DIFF,52),COLORFF00FF;
MACD:2*(DIFF-DEA), COLORSTICK;
IF(DIFF<0,DIFF,0),COLORYELLOW,LINETHICK2;
IF(DIFF<0,0,DIFF),COLORRED,LINETHICK2;
IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK2;
IF(DIFF>DEA,DEA,DEA),COLORFF00FF,LINETHICK2;
AA:=CROSS(DIFF,DEA);
DRAWICON(AA,-0.02,1); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询