源码
BASE
HHV(HIGH,30)+LLV(LOW,30))/2,linethick02,COLORFF0080;
HH:=HHV(HIGH,3);
LL:=LLV(LOW,3);
HH1:=BARSLAST((HH > REF(HH,1)));
LL1:=BARSLAST((LL LL1),CLOSE,OPEN,3,0),COLORcyan;
STICKLINE((HH1 > LL1),HIGH,LOW,0,0),COLORcyan;
DRAWTEXT(CROSS(HH1,LL1),HH,'开空'),COLORYELLOW;
DRAWTEXT(CROSS(LL1,HH1),LL,'开多'),COLORFF00FF;
EMA3:=EMA(C,3);
MA8:=EMA(EMA3,8),COLORyellow,LINETHICK1;
AA10:=EMA(EMA3,8),COLORYELLOW,LINETHICK1;
BB10:=atan((aa10-ref(aa10,1)))*180/3.1416;
STICKLINE(BB10>1 and AA10>ref(AA10,1), AA10,REF(AA10,1),8,0),COLORyellow,LINETHICK3;
STICKLINE(BB10 REF(HH,1)));
LL1:=BARSLAST((LL LL1),CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE((HH1 > LL1),HIGH,LOW,0,0),COLORCYAN;
DRAWTEXT(CROSS(HH1,LL1),HH,'S'),COLORYELLOW;
DRAWTEXT(CROSS(LL1,HH1),LL,'B'),COLORFF00FF;
EMA3:=EMA(C,3);
MA8:=EMA(EMA3,8),COLORYELLOW,LINETHICK1;
AA10:=EMA(EMA3,8),COLORYELLOW,LINETHICK1;
BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;
STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORYELLOW,LINETHICK3;
STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),10,0),COLOR007800,LINETHICK3;
|