将新布林线指标K线向下跌破支撑线时改成选股公式
2019/12/7 18:48:43
公式编写说明:
新布林线指标如下:A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);X1:=EMA(((VARA/10)+EMA(A,10)),3);Y1:=EMA(A,3);Y2:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;X2:EMA(((SLOPE(C,22)*20)+C),55);压力:MA(REF(HHV(C,30),1),2);支撑:MA(REF(LLV(C,30),1),2);DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;DRAWTEXT(60*(40*(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<0 AND COUNT(COUNT(CROSS((EMA(CLOSE,12)-EMA(CLOSE,26)),EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)),BARSLAST(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)>=0))=2,21)=1) AND SLOPE(MA(C,5),2)>0) AND MA(C,55)>REF(MA(C,55),1) AND REF(MA(C,55),1)<=REF(MA(C,55),2),L*0.95,'买入'),COLOR0080FF;JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;DRAWICON(60*(40*(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<0 AND COUNT(COUNT(CROSS((EMA(CLOSE,12)-EMA(CLOSE,26)),EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)),BARSLAST(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)>=0))=2,21)=1) AND SLOPE(MA(C,5),2)>0) AND MA(C,55)>REF(MA(C,55),1) AND REF(MA(C,55),1)<=REF(MA(C,55),2),LOW,5);选股条件:当支撑线向上或平行时,K线向下跌破支撑线时选出来(选股时K线收盘价站在支撑线上方也的选出来,如下图)
公式源码示例:
支撑:=MA(REF(LLV(C,30),1),2);
CROSS(L,支撑);
看 股吧公式 www. kanguba.com
其它股票公式列表