《潜伏副图》的买改成选股指标

[复制链接]
查看62 | 回复0 | 2022-7-24 07:28:18 | 显示全部楼层 |阅读模式


{潜伏副图}源码


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));

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则