要求cyc2上穿顶做出选股,再次感谢!!!! 指标源码如下: cyc2:CYC(2); cyc13:cyc(13); cyc34:cyc(34); cyc0:MAXCYC,colorff9900; TY:=C; HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD)); T1:=BARSLAST(HD)BARSLAST(LD) AND NOT(LD); 顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1; STICKLINE(T1,A,A,9,0),COLORFF00FF; 底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1; RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
爱约股解答:
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);