以下是某财经节目特送的“一剑封喉”指标(无源码的请下载附件导入)
某财经节目特送的“一剑封喉”指标
幅图公式源码
N:=10;
M:=21;
BU:=CROSS(HIGH,SAR(2,1,21));
SEL:=CROSS(SAR(2,1,21),LOW);
DRAWTEXT(BU,LOW,'买入'),COLORYELLOW,LINETHICK2;
DRAWTEXT(SEL,1.01*HIGH,'抛出'),COLORGREEN,LINETHICK2;
DIFF1:=EMA(CLOSE,10)-EMA(CLOSE,21);
DEA1:=EMA(DIFF1,8);
DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIFF,8);
STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED;
STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED;
STICKLINE(DIFF1<=DEA1,C,O,3,0),COLORGREEN;
STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORGREEN;
“买入”点选股公式
BU:=CROSS(HIGH,SAR(2,1,21));
DRAWTEXT(BU,LOW,'买入'),COLORYELLOW,LINETHICK2; |