單陽:=FILTER(C>REF(C,1)*1.089 AND (H-L)/REF(C,1)*100>9.5 AND
NOT(C=O AND L=H),10);
LS0:=BARSLAST(單陽);
不破價(jià):=REF(L,LS0);
高點(diǎn):=REF(H,LS0);
DRAWTEXT(單陽,L-L*0.02,'陽'),COLOR00FFFF;
位置1:=不破價(jià) *0.998;
位置2:=不破價(jià) *0.98;
LS11:=IF(1,LS0=1,單陽);
LS21:=IF(1,LLV(L,1)>REF(L,1),1);
單陽不破:=LS11 AND LS21 AND L<=高點(diǎn);
STICKLINE(單陽不破,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破,位置2,'1'),COLORGREEN;
LS12:=IF(2,LS0=2,單陽);
LS22:=IF(2,LLV(L,2)>REF(L,2),1);
單陽不破2:=LS12 AND LS22 AND L<=高點(diǎn) AND REF(單陽不破=1,1);
STICKLINE(單陽不破2,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破2,位置2,'2'),COLORGREEN;
LS13:=IF(3,LS0=3,單陽);
LS23:=IF(3,LLV(L,3)>REF(L,3),1);
單陽不破3:=LS13 AND LS23 AND L<=高點(diǎn) AND REF(單陽不破2=1,1);
STICKLINE(單陽不破3,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破3,位置2,'3'),COLORGREEN;
LS14:=IF(4,LS0=4,單陽);
LS24:=IF(4,LLV(L,4)>REF(L,4),1);
單陽不破4:=LS14 AND LS24 AND L<=高點(diǎn) AND REF(單陽不破3=1,1);
STICKLINE(單陽不破4,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破4,位置2,'4'),COLORGREEN;
LS15:=IF(5,LS0=5,單陽);
LS25:=IF(5,LLV(L,5)>REF(L,5),1);
單陽不破5:=LS15 AND LS25 AND L<=高點(diǎn) AND REF(單陽不破4=1,1);
STICKLINE(單陽不破5,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破5,位置2,'5'),COLORGREEN;
LS16:=IF(6,LS0=6,單陽);
LS26:=IF(6,LLV(L,6)>REF(L,6),1);
單陽不破6:=LS16 AND LS26 AND L<=高點(diǎn) AND REF(單陽不破5=1,1);
STICKLINE(單陽不破6,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破6,位置2,'6'),COLORGREEN;
LS17:=IF(7,LS0=7,單陽);
LS27:=IF(7,LLV(L,7)>REF(L,7),1);
單陽不破7:=LS17 AND LS27 AND L<=高點(diǎn) AND REF(單陽不破6=1,1);
STICKLINE(單陽不破7,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破7,位置2,'7'),COLORGREEN;
LS18:=IF(8,LS0=8,單陽);
LS28:=IF(8,LLV(L,8)>REF(L,8),1);
單陽不破8:=LS18 AND LS28 AND L<=高點(diǎn) AND REF(單陽不破7=1,1);
STICKLINE(單陽不破8,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破8,位置2,'8'),COLORGREEN;
LS19:=IF(9,LS0=9,單陽);
LS29:=IF(9,LLV(L,9)>REF(L,9),1);
單陽不破9:=LS19 AND LS29 AND L<=高點(diǎn) AND REF(單陽不破8=1,1);
STICKLINE(單陽不破9,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破9,位置2,'9'),COLORGREEN;
LS110:=IF(10,LS0=10,單陽);
LS210:=IF(10,LLV(L,10)>REF(L,10),1);
單陽不破10:=LS110 AND LS210 AND L<=高點(diǎn) AND REF(單陽不破9=1,1);
STICKLINE(單陽不破10,位置1,不破價(jià),4,0),COLORRED;
DRAWTEXT(單陽不破10,位置2,'10'),COLORGREEN;
|
|