九毛八公式指标
麻烦大师把这个主图指标出现洋红色线反转做一个选股指标 原码:N:=10; M:=1.5; TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:=MA(TR1,10); MEDIAN:= (HIGH + LOW) / 2; X:=20; MID :=MA(C,X); UPPER: MID + 2*STD(CLOSE,X),COLORGRAY; LOWER: MID - 2*STD(CLOSE,X),COLORGRAY; HH:=MEDIAN + ATR * M; LL:=MEDIAN - ATR * M; W:=BARSLAST((HH>=HHV(HH,N)))-BARSLAST((LLV(LL,N)>=LL)); BBX:=LLV(HH,BARSLAST(W<0)); SSX:=HHV(LL,BARSLAST(W>0)); WW:=IF(W>0,BBX,IF(W<0,SSX,C)); STICKLINE(0>W,H,L,0,0),COLORRED; STICKLINE(0>W AND C>O,O,C,3,1),COLORRED; STICKLINE(0>W AND C公式模块:
N:=10;
M:=1.5; TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:=MA(TR1,10); MEDIAN:= (HIGH + LOW) / 2; HH:=MEDIAN + ATR * M; LL:=MEDIAN - ATR * M; W:=BArslAST((HH>=HHV(HH,N)))-BARSLAST((LLV(LL,N)>=LL)); XG:W<0 AND REF(W,1)>0;