HH:=HHV(HIGH,N); LL:=LLV(LOW,N); HH1:=BARSLAST((HH>REF(HH,1))); LL1:=BARSLAST((LL<REF(LL,1))); A:=IF((HH1 < LL1),1,IF((HH1 > LL1),-1,0)); AA:IF(A>=0,LL,HH),COLORYELLOW; STICKLINE(HH1<=LL1,O,C,4,0),COLORRED; STICKLINE(HH1<=LL1,C,H,0.1,0),COLORRED; STICKLINE(HH1<=LL1,L,O,0.1,0),COLORRED; STICKLINE(HH1>LL1,O,C,4,0),COLORCYAN; STICKLINE(HH1>LL1,C,H,0.1,0),COLORCYAN; STICKLINE(HH1>LL1,L,O,0.1,0),COLORCYAN; 以上為通達(dá)信 HH:=HHV(HIGH,N); LL:=LLV(LOW,N); HH1:=BARSLAST((HH>REF(HH,1))); LL1:=BARSLAST((LL<REF(LL,1))); {PARTLINE((HH1 < LL1),LL),LINETHICK2,COLORYELLOW; PARTLINE((HH1 > LL1),HH),LINETHICK2,COLORWHITE; } A:=IF((HH1 < LL1),1,IFELSE((HH1 > LL1),-1,0)); AA:IF(A>=0,LL,HH),COLORYELLOW; {STICKLINE(HH1<=LL1,O,C,4,0),COLORRED; STICKLINE(HH1<=LL1,C,H,0.1,0),COLORRED; STICKLINE(HH1<=LL1,L,O,0.1,0),COLORRED; STICKLINE(HH1>LL1,O,C,4,0),COLORCYAN; STICKLINE(HH1>LL1,C,H,0.1,0),COLORCYAN; STICKLINE(HH1>LL1,L,O,0.1,0),COLORCYAN;} {DRAWTEXT(CROSS(HH1,LL1),HH,'開空'); DRAWTEXT(CROSS(LL1,HH1),LL,'開多');} 以上為博弈大師 |
|