多空線1
JH:=BARSLAST(MOD(BARPOS,21)=1);
江:=IF(JH>REF(JH,1),1,0);
QH:=IF(BACKSET(JH=0,JH+2) AND JH>0,CLOSE,IF(BARSTATUS=2,CLOSE,0));
海:=REF(JH,1);
期:=0*CLOSE;
FOR I=DATACOUNT DOWNTO 2 DO BEGIN
IF JH[I]>海[I] THEN
期[I-1]:=期[I]+江[I];
I:=I-1;
END;
HH:=REFX(HHV(HIGH,JH+1),期);
LL:=REFX(LLV(LOW,JH+1),期);
貨:=REFX(QH,期);
交:=MA(HH,3);
易:=MA(LL,3);
FOR I=21+1 TO DATACOUNT DO BEGIN
IF 貨[I]>交[I-1] THEN
HL[I]:=1;ELSE
IF 貨[I]<易[I-1] THEN
HL[I]:=-1;ELSE
HL[I]:=HL[I-1];
I:=I+1;
END;
PARTLINE(HL=1 AND REF(HL,1)=1,MA(LL,3)),LINETHICK2,colorFFFF;
PARTLINE(HL=-1 AND REF(HL,1)=-1,MA(HH,3)),LINETHICK2,colorFFFFFF;
STICKLINE(HL=1,OPEN,CLOSE,8,0),colorFF;
STICKLINE(HL=1,HIGH,LOW,1,0),colorFF;
STICKLINE(HL=-1,OPEN,CLOSE,8,0),colorFF0000;
STICKLINE(HL=-1,LOW,HIGH,1,0),colorFF0000;
DRAWICON(CROSS(HL=-1 AND REF(HL,1)=-1,0.5),HH,11);
DRAWICON(CROSS(HL=1 AND REF(HL,1)=1,0.5),LL,12);
DRAWTEXT(CROSS(HL=1 AND REF(HL,1)=1,0.5),MA(LL,3),開(kāi)多平空),colorFF00;
DRAWTEXT(CROSS(HL=-1 AND REF(HL,1)=-1,0.5),MA(HH,3),開(kāi)空平多),colorFF00FF;
DRAWTEXT(HL=-1 AND REF(HL,1)=-1 AND HIGH>=MA(HH,3),HIGH,♀加空),colorFF00FF;
DRAWTEXT(HL=1 AND REF(HL,1)=1 AND LOW<=MA(LL,3),LOW,♂加多),colorFF00;
多空線2(日線以下周期)
聯(lián)系客服