ihzx 发表于 2021-8-21 14:01:55

大智慧涨停时间窗指标公式

<p>原理:个股涨停一段时间后,回落至涨停初最低价完成了吸筹、洗盘等步骤,并遭遇3,5,8,13,21天等时间窗口,有可能拐头上升,甚至再次涨停!</p>
<p>说明:主图,依据量柱涨停理念,分别在最低点和中点画线,并加以涨停时间窗口。<br />
副图,每遇收盘价回落至涨停价最低价周围时显示&ldquo;警戒&rdquo;字样。同时遇时间窗口,则显示&ldquo;时间窗警戒&rdquo;。副图中加入本人比较喜欢的短期威廉指标,可以在回落时间窗点,并且WR&gt;80时考虑买入(供参考,买卖靠个人!)。<br />
选股公式:个股涨停后收盘价回落至涨停初最低点,遇时间窗2,3,5,8,13日时选股(加2日选股,防强洗盘现象,去热度消退的21天选股)。选股出股后,再结合自己的理念公式买卖,比如本人提到的短期威廉指标。</p>
<p>涨停跟踪,主图:</p>
<p>ZT:=C/ref(C,1)&gt;1.097;</p>
<p>XH:=FILTER(ZT,13);</p>
<p>BH:=BARSLAST(ZT);</p>
<p>CZ:=REF(H,BH)-REF(L,BH);</p>
<p>STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),7,0),COLORRED;</p>
<p>STICKLINE(C,REF(L,BH),REF(L,BH),7,0),COLORBLUE;</p>
<p>STICKLINE(ZT,REF(O,BH),REF(C,BH),7,0),COLORYELLOW;</p>
<p>DRAWTEXT(ZT,L*0.98,'涨停'),COLORf00ff0;;</p>
<p>varZT:=BARSLAST(C/REF(C,1)&gt;1.097);</p>
<p>stickline(varZT=2,l*0.97,l*0.98,8,0),color0000ff;</p>
<p>drawtext(varZT=2,l*0.95,'3天'),coloryellow;</p>
<p>stickline(varZT=4,h*1.03,h*1.02,8,0),color9966ff;</p>
<p>drawtext(varZT=4,h*1.06,'5天'),coloryellow;</p>
<p>stickline(varZT=7,l*0.97,l*0.98,8,0),color00ffff;</p>
<p>drawtext(varZT=7,l*0.95,'8天'),coloryellow;</p>
<p>stickline(varZT=12,h*1.03,h*1.02,8,0),colorff33ff;</p>
<p>drawtext(varZT=12,h*1.06,'13天'),coloryellow;</p>
<p>stickline(varZT=20,l*0.97,l*0.98,8,0),color0066ff;</p>
<p>drawtext(varZT=20,l*0.95,'21天'),coloryellow;</p>
<p>stickline(varZT=33,h*1.03,h*1.02,8,0),color9932CD;</p>
<p>drawtext(varZT=33,h*1.06,'34天'),coloryellow;</p>
<p>stickline(varZT=54,l*0.97,l*0.98,8,0),color006600;</p>
<p>drawtext(varZT=54,l*0.95,'55天'),coloryellow;</p>
<p>stickline(varZT=88,h*1.03,h*1.02,8,0),color00ff00;</p>
<p>drawtext(varZT=88,h*1.06,'89天'),coloryellow;</p>
<p>stickline(varZT=143,l*0.97,l*0.98,8,0),colorccffff;</p>
<p>drawtext(varZT=143,l*0.95,'144天'),coloryellow;</p>
<p>stickline(varZT=232 ,h*1.03,h*1.02,8,0),colorff0033;</p>
<p>drawtext(varZT=232,h*1.06,'233天'),coloryellow;</p>
<p>stickline(varZT=376,l*0.97,l*0.98,8,0),colorff9966;<br />
drawtext(varZT=376,l*0.95,'377 天'),coloryellow;<br />
-------------------------------------------------------------<br />
涨停时间(窗),副图:</p>
<p>N:=13;</p>
<p>WR大于80考虑买:100* (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),linethick0;</p>
<p>均价:amount/(vol*100),linethick0,coloryellow;</p>
<p>ZT:=C/ref(C,1)&gt;1.097;</p>
<p>XH:=FILTER(ZT,13);</p>
<p>BH:=BARSLAST(ZT);</p>
<p>STICKLINE(ZT,0,L*0.7,4,0),COLORYELLOW;</p>
<p>DRAWTEXT(ZT,L*0.8,'涨停'),COLORf00ff0;;</p>
<p>varZT:=BARSLAST(C/REF(C,1)&gt;1.097);</p>
<p>AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);</p>
<p>stickline(AA,0,L*0.3,2,0),colorblue;</p>
<p>drawtext(AA,L*0.4,'警戒'),colorwhite;</p>
<p>stickline(AA and varzt=2,0,L*0.5,2,0),colorred;</p>
<p>drawtext(AA and varzt=2,L*0.5,'时间窗'),colorwhite;</p>
<p>stickline(AA and varzt=4,0,L*0.5,2,0),colorred;</p>
<p>drawtext(AA and varzt=4,L*0.5,'时间窗'),colorwhite;</p>
<p>stickline(AA and varzt=7,0,L*0.5,2,0),colorred;</p>
<p>drawtext(AA and varzt=7,L*0.5,'时间窗'),colorwhite;</p>
<p>stickline(AA and varzt=12,0,L*0.5,2,0),colorred;</p>
<p>drawtext(AA and varzt=12,L*0.5,'时间窗'),colorwhite;</p>
<p>stickline(AA and varzt=20,0,L*0.5,2,0),colorred;<br />
drawtext(AA and varzt=20,L*0.5,'时间窗'),colorwhite;<br />
-----------------------------------------------------------</p>
<p>涨停时间窗选股公式:</p>
<p>ZT:=C/ref(C,1)&gt;1.097;</p>
<p>XH:=FILTER(ZT,13);</p>
<p>BH:=BARSLAST(ZT);</p>
<p>H1:=BH=1;</p>
<p>H2:=BH=2;</p>
<p>H4:=BH=4;</p>
<p>H7:=BH=7;</p>
<p>H12:=BH=12;</p>
<p>C1:=ALL(C&gt;REF(L,BH),1);</p>
<p>C2:=ALL(C&gt;REF(L,BH),2);</p>
<p>C4:=ALL(C&gt;REF(L,BH),4);</p>
<p>C7:=ALL(C&gt;REF(L,BH),7);</p>
<p>C12:=ALL(C&gt;REF(L,BH),12);</p>
<p>AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);</p>
<p>TJ1:=AA AND H1 AND C1;</p>
<p>TJ2:=AA AND H2 AND C2;</p>
<p>TJ4:=AA AND H4 AND C4;</p>
<p>TJ7:=AA AND H7 AND C7;</p>
<p>TJ12:=AA AND H12 AND C12;<br />
XG:TJ1 OR TJ2 OR TJ4 OR TJ7 OR TJ12;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧涨停时间窗指标公式