指标源码: A5:=MA(C,5); MA10:=MA(C,10); XX1:=A5>=REF(A5,1); H02:=MAX(A5,MA10); L02:=MIN(A5,MA10); PB2:=(C-REF(C,1))/REF(C,1)*100; 穿二线:=H02<C AND O<L02 AND XX1 AND A5>REF(A5,1) AND PB2>3; STICKLINE(穿二线,O,C,0.80,0),COLORBROWN; 角度10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*57.3; 选股:=(角度10>=1 {现在是1度,角度可调} AND 穿二线); STICKLINE(选股,O,C,1.180,0),COLOR0000FF; STICKLINE(选股,O,C,0.50,0),COLOR00FFFF; DRAWTEXT(选股,L*0.98, '穿二线'),COLORYELLOW; KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3); AAX:=(KC-MA(KC,9))/MA(KC,9)*100; VAR0:=MIN(EXIST(KC,55),9); X1:=EMA(AAX,VAR0)*VAR0; X2:=MA(X1,3); X3:=MA(X1,5); 卖:=X3>3 AND X1<REF(X1,1) AND CROSS(X2,X1); BA:=FILTER(卖,5); DRAWTEXT(BA,H*1.08,'★卖'),COLORGREEN; B2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100; B3:=IF(LLV(B2,3)=LLV(B2,11) AND COUNT(B2<0,2) AND CROSS(B2,MA(B2,2)),1,0); B4:=FILTER(B3=1,5); DRAWTEXT(B4,L*0.97,'★买'),COLORRED; STICKLINE(B4,CLOSE,OPEN,2,0), COLORYELLOW ; STICKLINE(BA,CLOSE,OPEN,2,0),COLORCYAN ; MAC3:=(ATAN((MA(C,3)/REF(MA(C,3),1)-1)*100)*180/3.14115926); M3:=MA(MAC3,3); AA:=PLOYLINE(CROSS(MAC3,M3),M3); AAB:=PLOYLINE(CROSS(M3,MAC3),MAC3); 买二:=COUNT(CROSS(MAC3,M3),AA<REF(AA,3) AND AAB>REF(AAB,3)); DRAWTEXT(买二,L*0.97,'★买二'),COLORMAGENTA;
|