同花顺突破高点线主图指标公式
2021/2/14 18:38:33
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
BUY1:=CROSS(MACD,0);
BUY2:=COUNT(MACD>0,2)=2;
BUY3:=COUNT(BUY1,2)>0 AND BUY2;
{DRAWTEXT(BUY3,H*1.015,'支压线'),COLORFF00FF;}
STICKLINE(CLOSE,REF(LOW,BARSLAST(BUY3)),REF(LOW,BARSLAST(BUY3)),6,0),coloryellow;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(BUY3)),REF(HIGH,BARSLAST(BUY3)),6,0),colorgreen;
绿柱1:=REF(MACD,1)<=0 AND MACD<0 AND REF(MACD,4)>0;
绿柱:=BARSLASTCOUNT(MACD,MACD<0)=4;
STICKLINE(CLOSE,REF(LOW,BARSLAST(绿柱)),REF(LOW,BARSLAST(绿柱)),6,0),colorwhite;
投股票 网 ww w.tou18.cn
股市公式下载推荐