在线检测未来函数

同花顺突破高点线主图指标公式

来源:Internet,编辑:股旁网,2019-03-04

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;

同花顺突破高点线主图指标公式

相关文章