{潜伏副图}源码
B1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
B2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),2,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),2,1)*100;
B3:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;
潜伏:(B2<B1 AND C<O AND B2<5)*0.5 COLORGREEN,STICK,LINETHICK3;
DRAWTEXT(B2<B1 AND C<O AND B2<5,0.4,' 潜伏'),COLORGREEN;
A:=HHV(HIGH,9)-LLV(LOW,9);
A1:=HHV(HIGH,9)-CLOSE;
A2:=CLOSE-LLV(LOW,9);
A3:=A1/A*100-70;
买:(CROSS(B2,A3) AND REF(潜伏,1)),COLORRED,STICK,LINETHICK3;
DRAWTEXT(买,0.8,' 买'),COLORRED;
=================================================
选股指标
B1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
B2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),2,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),2,1)*100;
B3:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;
潜伏:=(B2<B1 AND C<O AND B2<5)*0.5 ;
A:=HHV(HIGH,9)-LLV(LOW,9);
A1:=HHV(HIGH,9)-CLOSE;
A2:=CLOSE-LLV(LOW,9);
A3:=A1/A*100-70;
买:(CROSS(B2,A3) AND REF(潜伏,1));
|