辛苦老师看看,请老师编一个今天股价盘中突破支撑轨的预警公式,加上限制条件,去除ST股。 P:=10; AA1:=REF(HIGH,P)=HHV(HIGH,2*P+1); BB1:=FILTER(AA1,P); CC1:=BACKSET(BB1,P+1); DD1:=FILTER(CC1,P);{高点} 压力:REF(HIGH,BARSLAST(DD1)),COLORFF00FF,POINTDOT; R11:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1); S11:=R11>REF(R11,1); 压力轨:DRAWLINE(DD1,HIGH,S11,HIGH,1),COLORYELLOW; AA2:=REF(LOW,P)=LLV(LOW,2*P+1); BB2:=FILTER(AA2,P); CC2:=BACKSET(BB2,P+1); DD2:=FILTER(CC2,P);{低点} 支撑:REF(LOW,BARSLAST(DD2)),COLOR00FF00,POINTDOT; T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1); U11:=T11>REF(T11,1); 支撑轨:DRAWLINE(DD2,LOW,U11,LOW,1),COLORBLUE;
爱约股解答:
P:=10;
AA2:=REF(LOW,P)=LLV(LOW,2*P+1);
BB2:=FILTER(AA2,P);
CC2:=BACKSET(BB2,P+1);
DD2:=FILTER(CC2,P);{低点}
T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
U11:=T11>REF(T11,1);
支撑轨:=DRAWLINE(DD2,LOW,U11,LOW,1),COLORBLUE;
去ST:=IF(NAMELIKE('*ST'),0,1) AND IF(NAMELIKE('S'),0,1);
XG:CROSS(C,支撑轨) AND 去ST;