大家分享一个日内做期货的指标很好的
-
相关简介:NA:=BARSLAST(DATEREF(DATE,1))+1; HHH:=HHV(HIGH,NA); LLL:=LLV(LOW,NA); CC1:=VALUEWHEN(DATEREF(DATE,1),REF(CLOSE,1)); AA1:=VALUEWHEN(DATEREF(DATE,1),REF(HHH,1)); BB1:=VALUEWHEN(DATEREF(DATE,1),REF(LLL,1)); PT:= AA1-BB1; CDP:(AA1 + BB1 +CC1)/3,COLORCYAN
-
文章来源:股海网作者:股海网发布时间:2013-09-27浏览次数:
NA:=BARSLAST(DATE<>REF(DATE,1))+1;
HHH:=HHV(HIGH,NA);
LLL:=LLV(LOW,NA);
CC1:=VALUEWHEN(DATE<>REF(DATE,1),REF(CLOSE,1));
AA1:=VALUEWHEN(DATE<>REF(DATE,1),REF(HHH,1));
BB1:=VALUEWHEN(DATE<>REF(DATE,1),REF(LLL,1));
PT:= AA1-BB1;
CDP:(AA1 + BB1 +CC1)/3,COLORCYAN;
AH:CDP + PT,COLORRED;//(高价突破点)
AL:CDP - PT,COLORGREEN;//(低价突破点)
NH:2*CDP-BB1,COLORRED;//(卖点)
NL:2*CDP-AA1,COLORGREEN;//(买点)
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,CDP),VALUEWHEN(ISLASTBAR,CDP),0,COLORCYAN);
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,AH),VALUEWHEN(ISLASTBAR,AH),0,COLORRED);
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,NH),VALUEWHEN(ISLASTBAR,NH),0,COLORRED);
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,AL),VALUEWHEN(ISLASTBAR,AL),0,COLORGREEN);
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,NL),VALUEWHEN(ISLASTBAR,NL),0,COLORGREEN);