AF1:=1;

TT:=BARSLAST(HOUR=9 AND MINUTE=(30+AF1))+1;

均价:=SUM(AMOUNT,0)/SUM(VOL,0)/100;

IF HOUR>9 AND RANGE(HHV(C,60)/LLV(C,60),1,1.02) THEN 盘整:=C;

V1:=V;

HH:=C>REF(C,1) AND C/均价>(1+0.03);

LL:=C<REF(C,1) AND C/均价<(1-0.03);

HH1:=CROSS(SUM(HH,0),0.5);

LL1:=CROSS(SUM(LL,0),0.5);

SS1:=SUM(HH1,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH1)),0.5);

BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);

X1:BARSLAST(SS1),LINETHICK0,HIDEVAL;

顶1:REF(C,X1+1),LINETHICK0,COLORGREEN;

Y1:BARSLAST(BB1),LINETHICK0,HIDEVAL;

底1:REF(C,Y1+1),LINETHICK0,COLORRED;

DRAWLINE(SS1,顶1,X1=1,顶1,11),COLORGREEN,LINETHICK2;

DRAWLINE(BB1,底1,Y1=1,底1,11),COLORRED,LINETHICK2;

 

HH2:=CROSS(SUM(HH AND C>顶1*1.03,0),0.5);

LL2:=CROSS(SUM(LL AND C<底1*0.97,0),0.5);

SS2:=SUM(HH2,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH2)),0.5);

BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);

X3:BARSLAST(SS2),LINETHICK0,HIDEVAL;

顶2:REF(C,X3+1),LINETHICK0,COLORGREEN;

Y3:BARSLAST(BB2),LINETHICK0,HIDEVAL;

底2:REF(C,Y3+1),LINETHICK0,COLORRED;

DRAWLINE(SS2,顶2,X3=1,顶2,11),COLORGREEN,LINETHICK1;

DRAWLINE(BB2,底2,Y3=1,底2,11),COLORRED,LINETHICK1;

 

DRAWICON(HH1 OR HH2,C*1.01,13);

DRAWICON(LL1 OR LL2,C*0.99,12);

DRAWICON(BB1 OR BB2,REF(C,1)*0.99,7);

DRAWICON(SS1 OR SS2,REF(C,1)*1.01,8);
 


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。