源码
W:=1;
AA:=MA(CLOSE,23);
STICKLINE(CLOSE>=AA,LOW,HIGH,0.1,0),colorFF;
STICKLINE(CLOSE>=AA,OPEN,CLOSE,8,0),colorFF;
STICKLINE(CLOSE<AA,LOW,HIGH,0.1,0),colorFF00;
STICKLINE(CLOSE<AA,OPEN,CLOSE,8,0),colorFF00;
S1:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
S2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
T1:=IF(S1<18.5 AND REF(S1,1)>18.5 AND REF(S1,2)<18.5,1,0);
T2:=IF(S1>18.5 AND S1<REF(S1,1) AND REF(S1,1)>REF(S1,2),1,0);
T5:=IF(S1<18.5 AND S1<REF(S1,1) AND REF(S1,1)>REF(S1,2) AND REF(S1,1)>18.5,1,0);
T3:=IF(S2<29.5 AND REF(S2,1)>29.5 AND REF(S2,2)<29.5,1,0);
T4:=IF(S2>29.5 AND S2<REF(S2,1) AND REF(S2,1)>REF(S2,2),1,0);
T6:=IF(S2<29.5 AND S2<REF(S2,1) AND REF(S2,1)>REF(S2,2) AND REF(S2,1)>29.5,1,0);
IF W=1 THEN
DRAWICON(T1=1 OR T2=1 OR T3=1 OR T4=1 OR T5=1 OR T6=1,HIGH*1.1,’ch’);
IF W=2 THEN
DRAWICON(T1=1 OR T2=1 OR T3=1 OR T4=1 OR T5=1 OR T6=1,HIGH*1.1,’cb’);
T7:=MA(CLOSE,23);
T8:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,2)>REF(CLOSE,3) AND REF(CLOSE,3)>REF(CLOSE,4);
IF W=1 THEN
DRAWICON(ALL(CLOSE<T7,3) AND T8,HIGH*1.08,’fh’);
IF W=2 THEN
DRAWICON(ALL(CLOSE<T7,3) AND T8,HIGH*1.08,’fb’);
T9:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3);
T10:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,3)<REF(CLOSE,4);
T11:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,3)<REF(CLOSE,4) AND REF(CLOSE,4)<REF(CLOSE,5);
DRAWTEXT(CLOSE>=T7 AND (T9 OR T10 OR T11),LOW,’↑’),colorFF00FF;
评论(0)