|
{抓住小牛副图,因为抓大牛条件太刻克}
MA3:=MA(CLOSE,5);
MA4:=MA(CLOSE,10);
RSV:= (CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
FASTK:=SMA(RSV,3,2);
K:=SMA(FASTK,9,2);
D:=SMA(K,3,2);
A:=SMA(VOL,3,2);
W11:=-100*(HHV(HHV(A,1),25)-A)/(HHV(HHV(A,1),25)-LLV(LLV(A,1),25));
W22:=-100*(HHV(HHV(A,1),35)-A)/(HHV(HHV(A,1),35)-LLV(LLV(A,1),35));
W33:=-100*(HHV(HHV(A,1),10)-A)/(HHV(HHV(A,1),10)-LLV(LLV(A,1),10));
量:=(W11+W22+W33)/20;
WR:=-100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
抓住小牛:((CROSS(量,-10)) OR (CROSS(量,-20))) AND ((CROSS(WR,-10)) OR (CROSS(WR,-20))) AND CROSS(CLOSE,MA3) AND CROSS(CLOSE,MA4),COLORMAGENTA;
DRAWTEXT(抓住小牛,(((CROSS(量,-10)) OR (CROSS(量,-20))) AND ((CROSS(WR,-10)) OR (CROSS(WR,-20))) AND CROSS(CLOSE,MA3) AND CROSS(CLOSE,MA4))*0.38,'抓住小牛'),COLORMAGENTA; |
|