同花顺对韭当割指标公式: SR_5:=BARSLAST(CROSS(MA(C,5),MA(C,10))); SR_6:=BARSLAST(CROSS(MA(C,5),MA(C,30))); SR_7:=BARSLAST(CROSS(MA(C,10),MA(C,30))); SR_8:=SR_5>SR_6 AND SR_6>=SR_7 AND SR_5-SR_7<20; SR_9:=COUNT(CROSS(MA(C,5),MA(C,10)),SR_5+1)=1 AND COUNT(CROSS(MA(C,5),MA(C,30)),SR_5+1)=1 AND CROSS(MA(C,10),MA(C,30)) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30); SR_10:=SR_8 AND SR_9; 触发:SR_10,COLOR4080FF; SR_11:=COUNT(触发,BARSLAST(触发)+1)=1 AND COUNT(CROSS(MA(C,30),MA(C,5)),BARSLAST(触发)+1)=0; 回踩:LOW<=MA(C,30) AND CLOSE>MA(C,30) AND SR_11 AND BARSLAST(触发)>0,colormagenta; 强力回踩:回踩 AND UPNDAY(MA(C,30),3),COLOR004080; SR_12:=COUNT(触发,BARSLAST(触发)+1)=1 AND CROSS(MA(C,30),MA(C,5)) AND COUNT(CROSS(MA(C,30),MA(C,5)),BARSLAST(触发)+1)=1; 破坏:SR_12>0,colorblue; STICKLINE(破坏>0,0,20,3,0),colorblue; 区间:COUNT(触发,BARSLAST(触发)+1)=1 AND COUNT(破坏,BARSLAST(触发)+1)=0,COLOR696960; STICKLINE(区间>0,0,20,3,0),COLOR696969; SR:=CROSS(CLOSE,(6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/21) AND LOW<MA(CLOSE,30) AND 区间>0,colorred; 买入:SR>0 AND 区间>0 AND 回踩>0 AND 触发<1 AND MACD.DEA>0; DRAWICON(买入>0,35,7),COLORFFFFFF; STICKLINE(触发>0,0,20,3,0),COLOR4080FF; STICKLINE(回踩>0,0,20,3,0),colormagenta; STICKLINE(强力回踩>0,0,20,1,0),COLOR004080; 同花顺简明趋势指标公式(顶尖股票学院: http://58188.com): H1:=EMA(CLOSE,6),colorwhite; H2:=EMA(H1,18),colorwhite; C55:=MA(C,55); AA1:=IF( (H1>H2 AND C>=C55 AND C55>=REF(C55,1)) ,5,0); AA2:=IF( (H1>H2 AND C>=C55 AND C55<REF(C55,1)),4,0); AA3:=IF( (H1>H2 AND C<C55),1,0); AA4:=IF( (H1<H2),0,0); MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,colorred; MADKX:=MA(DKX,5),coloryellow; AA5:=IF( (DKX> MADKX AND C>=C55 AND C55>=REF(C55,1)) ,5,0); AA6:=IF( (DKX> MADKX AND C>=C55 AND C55<REF(C55,1)) ,4,0); AA7:=IF( (DKX> MADKX AND C<C55) ,1,0); AA8:=IF( (DKX< MADKX),0,0); C01:5; AA:AA1+AA2+AA3+AA4+AA5+AA6+AA7+AA8; STICKLINE(AA=10,5,AA,5,0),colorred; STICKLINE(AA>5 AND AA<10,5,AA,5,0),colorlired; STICKLINE(AA>0 AND AA<5,5,AA,5,0),colorwhite; STICKLINE(AA=0,0,5,AA,5,0),colorgreen; |