九毛八公式指标
我使用的布林主图指标公式源码如下: MIDA:=MA(C,20); VART1:=POW((C-MIDA),2); VART2:=MA(VART1,20); VART3:=SQRT(VART2); UPPERA:=MIDA+2*VART3; LOWERA:=MIDA-2*VART3; 中轨:REF(MIDA,1); 上轨:REF(UPPERA,1); 下轨:REF(LOWERA,1); DRAWICON(C>下轨 AND (REF(L,1)下轨 AND (REF(L,1)REF(上轨,1),H*1.02,2); DRAWICON(C>中轨 AND (REF(L,1)中轨 AND (REF(L,1)REF(中轨,1),L*0.98,8); 涨停:=C>=REF(C,1)*1.099 AND C=H; DRAWTEXT(涨停,L*0.97,'涨停'),COLOR00FFFF; 跌停:=C<=REF(C,1)/1.099 AND C=L; STICKLINE(跌停,O,C,2.5,0),COLORFFFFFF; STICKLINE(跌停,H,L,0,1),COLORFFFFFF; 要求 :选出上轨上方出现涨停,第二天出现跳空开盘在昨日涨停价上方的K线,成交量不急剧放大,不要超过昨日一倍以上股票
公式模块:
{1楼}
MIDA:=MA(C,20); VART1:=POW((C-MIDA),2); VART2:=MA(VART1,20); VART3:=SQRT(VART2); UPPERA:=MIDA+2*VART3; LOWERA:=MIDA-2*VART3; 上轨:=REF(UPPERA,1); ZT:=LN(C/REF(C,1))/LN(1.1)>=0.984; REF(crOSS(C,上轨) AND ZT,1) AND O/REF(C,1)>=1.01 AND C>O AND V/REF(V,1)>=1 AND V/REF(V,1)<2 AND MA(V,5)>MA(V,60); {2楼} MIDA:=MA(C,20); VART1:=POW((C-MIDA),2); VART2:=MA(VART1,20); VART3:=SQRT(VART2); UPPERA:=MIDA+2*VART3; LOWERA:=MIDA-2*VART3; 中轨:=REF(MIDA,1); 上轨:=REF(UPPERA,1); A:=CROSS(C,中轨) AND MA(V,5)>MA(V,60); B:=EVERY(C>中轨 AND H<上轨,3) AND REF(A,3); CROSS(C,上轨) AND V/REF(V,1)>=2 AND V>REF(V,4) AND REF(B,1);