通达信L2版BS操盘线主图,含减半仓信号,用于主板涨跌停10%股票





倍量:=AMOUNT>2*REF(AMOUNT,1);
风险K线:=(O-L>=0.025*REF(C,1) OR H-C>=0.025*REF(C,1)) OR H-L>=0.1*REF(C,1);
超B:=100*L2_VOL(0,0)/FINANCE(46);
超S:=-100*L2_VOL(0,1)/FINANCE(46);
超单:=SUM((超B)+(超S),60)*100;
超单比率:=((超B)+(超S))*100;
超单均线:=MA(超单,5);
小B:=100*L2_VOL(3,0)/FINANCE(46);
小S:=-100*L2_VOL(3,1)/FINANCE(46);
小单:=SUM((小B)+(小S),60)*100;
小单比率:=((小B)+(小S))*100;
小单均线:=MA(小单,5);
超卖小买:=超单比率<0 AND 超单<REF(超单,1) AND 小单比率>0 AND 小单>REF(小单,1);
超买:=L2_AMO(0,0);
大买:=L2_AMO(1,0);
超卖:=-L2_AMO(0,1);
大卖:=-L2_AMO(1,1);
主力净额:=(超买)+(超卖)+(大买)+(大卖);
主力占比:=100*主力净额/AMOUNT;
大B:=100*L2_VOL(1,0)/FINANCE(46);
大S:=-100*L2_VOL(1,1)/FINANCE(46);
大单比率:=((超B)+(大B)+(超S)+(大S))*100;
大单累计值:=SUM(大单比率,60);
累计值均线:=MA(大单累计值,5);
主力不利:=大单比率<0 AND 大单累计值<REF(大单累计值,1) AND 大单累计值<累计值均线 AND 累计值均线<REF(累计值均线,1);
冲涨停:=C>=1.08*REF(C,1);
X1:=(C+L+H)/3;  
X2:=EMA(X1,3);
X3:=EMA(X2,3);
ZF:=X1>=1.3*REF(X1,5) OR X1>=1.35*REF(X1,10) OR X1>=1.7*REF(X1,20);
趋势:=C>MA(C,10) AND C>MA(C,20) AND X1>MA(C,10) AND X1>MA(C,20);
CBO:=X2<0.99*X3 OR (ZF=1 AND (C<=X2 OR C-O<=-0.07*REF(C,1))) OR (趋势=0 AND 冲涨停=0) OR (X1>=1.25*LLV(X1,10) AND (C<=0.93*REF(C,1) OR (C<0.99*MA(C,5) AND X1<0.99*MA(C,5) AND 冲涨停=0)));
无长上影阳线:=C>=O AND ((C>=1.03*REF(C,1) AND H-C<=0.02*REF(C,1)) OR (C>=1.03*REF(C,1) AND C-O>=0.03*REF(C,1) AND H-C<=0.025*REF(C,1)) OR (C>=1.05*REF(C,1) AND H-C<0.03*REF(C,1)) OR C>=1.06*REF(C,1));
资金均线:=(超单均线>REF(超单均线,1) AND 累计值均线>REF(累计值均线,1)) OR (超单比率>0 OR 大单比率>0);
资金条件:=冲涨停 OR (超单比率>0 AND 超单>REF(超单,1) AND 超单>REF(超单,5) AND 超单>超单均线 AND 超单均线>REF(超单均线,1) AND 小单比率<0 AND 小单<REF(小单,1) AND 大单比率>0 AND 大单累计值>REF(大单累计值,1) AND 大单累计值>累计值均线 AND 累计值均线>REF(累计值均线,1));
长均之下:=C<MA(C,60) AND C<MA(C,120) AND C<MA(C,240);
A:=无长上影阳线=0 OR 资金均线=0 OR ((X1>=1.25*LLV(X1,10) OR 长均之下) AND 资金条件=0);
CB1:=CBO OR (REF(CBO,1)=1 AND A);
CB2:=CB1 OR (REF(CB1,1)=1 AND A);
CB3:=CB2 OR (REF(CB2,1)=1 AND A);
CB4:=CB3 OR (REF(CB3,1)=1 AND A);
CB5:=CB4 OR (REF(CB4,1)=1 AND A);
CB6:=CB5 OR (REF(CB5,1)=1 AND A);
CB7:=CB6 OR (REF(CB6,1)=1 AND A);
CB8:=CB7 OR (REF(CB7,1)=1 AND A);
CB9:=CB8 OR (REF(CB8,1)=1 AND A);
CB10:=CB9 OR (REF(CB9,1)=1 AND A);
CB11:=CB10 OR (REF(CB10,1)=1 AND A);
CB12:=CB11 OR (REF(CB11,1)=1 AND A);
CB13:=CB12 OR (REF(CB12,1)=1 AND A);
CB14:=CB13 OR (REF(CB13,1)=1 AND A);
CB15:=CB14 OR (REF(CB14,1)=1 AND A);
CB16:=CB15 OR (REF(CB15,1)=1 AND A);
CB17:=CB16 OR (REF(CB16,1)=1 AND A);
CB18:=CB17 OR (REF(CB17,1)=1 AND A);
CB19:=CB18 OR (REF(CB18,1)=1 AND A);
CB20:=CB19 OR (REF(CB19,1)=1 AND A);
CB21:=CB20 OR (REF(CB20,1)=1 AND A);
CB22:=CB21 OR (REF(CB21,1)=1 AND A);
CB23:=CB22 OR (REF(CB22,1)=1 AND A);
CB24:=CB23 OR (REF(CB23,1)=1 AND A);
CB25:=CB24 OR (REF(CB24,1)=1 AND A);
CB26:=CB25 OR (REF(CB25,1)=1 AND A);
CB27:=CB26 OR (REF(CB26,1)=1 AND A);
CB28:=CB27 OR (REF(CB27,1)=1 AND A);
CB29:=CB28 OR (REF(CB28,1)=1 AND A);
CB30:=CB29 OR (REF(CB29,1)=1 AND A);
持币:CB30,COLORCYAN,NODRAW;
持股:持币=0,COLORRED,NODRAW;   
DRAWICON(CROSS(持股,0.5),L*0.95,7);
DRAWICON(CROSS(持币,0.5),H*1.1,8);
STICKLINE(持股=1 AND CLOSE>=OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(持股=1 AND CLOSE>=OPEN,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(持股=1 AND CLOSE<OPEN,LOW,HIGH,0,0),COLORRED;
STICKLINE(持股=1 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(持币=1 AND CLOSE>=OPEN,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(持币=1 AND CLOSE>=OPEN,CLOSE,OPEN,3,1),COLORCYAN;
STICKLINE(持币=1 AND CLOSE<OPEN,LOW,HIGH,0,0),COLORCYAN;
STICKLINE(持币=1 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORCYAN;
J:=持股 AND ZF AND (倍量 OR REF(倍量,1)) AND 风险K线 AND 超卖小买 AND 主力占比<0 AND 主力不利;
JBC:=J OR ((REF(J,1) OR REF(J,2) OR REF(J,3) OR REF(J,4) OR REF(J,5)) AND 持股 AND ZF AND 风险K线 AND 超卖小买 AND 主力占比<0 AND 主力不利);
JBC1:=JBC OR (REF(JBC,1)=1 AND 持股 AND ZF AND 超卖小买 AND 主力占比<0 AND 主力不利);
黑天鹅:=C<=O AND H-L>=0.08*REF(C,1);
JBC2:=JBC1 OR (黑天鹅 AND 持股 AND ZF AND 超卖小买 AND 主力占比<0 AND (超单<超单均线 OR 超单<小单 OR 主力不利));
减半仓:JBC2 AND (超单<超单均线 OR 超单<小单 OR 主力不利),COLORWHITE,NODRAW;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORFF00FF;
MA60:MA(CLOSE,60),COLORGREEN;
MA120:MA(CLOSE,120),COLORBLUE;
MA240:MA(CLOSE,240),COLORRED;




未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图