指标源码: G1:=REF(CLOSE,1); G2:=SMA(MAX(CLOSE-G1,0),5,1)/SMA(ABS(CLOSE-G1),5,1)*100; G3:=SMA(G2,5,1); G4:=BARSLAST(G2<=15)<5; G5:=SMA(G2,5,1); G6:=CROSS(G2,G3) AND G5>15 AND G4; G7:=FILTER(G6,10); G8:=IF(CLOSE>REF((6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1),1),1,IF(CLOSE<REF((6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1),1),(-1),0)); G9:=BARSLAST(NOT(G8=0)); G10:=IF(G8=0,REF(G8,G9),G8); 低点:G7,NODRAW,COLORRED; STICKLINE(低点>0,0,1,(-1),0),COLORRED; DRAWTEXT(低点>0,0.5,'买入'); 选股源码:
G1:=REF(CLOSE,1); G2:=SMA(MAX(CLOSE-G1,0),5,1)/SMA(ABS(CLOSE-G1),5,1)*100; G3:=SMA(G2,5,1); G4:=BARSLAST(G2<=15)<5; G5:=SMA(G2,5,1); G6:=CROSS(G2,G3) AND G5>15 AND G4; G7:FILTER(G6,10);
|