ihzx 发表于 2021-8-21 14:00:35

大智慧百团大战主图指标公式

<p>AA05:MA(C,5),color0099cc;<br />
五日乖离率:=(c-AA05)/AA05*100;<br />
BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;<br />
速度5:=sma(ema((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);<br />
加速度5:ema((速度5-ref(速度5,1)),3),linethick0;<br />
STICKLINE(BB05&gt;30 and AA05&gt;ref(AA05,1), AA05,REF(AA05,1),8,1),colorcyan;<br />
AA10:MA(C,10);AA20:=MA(c,20);<br />
BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;<br />
STICKLINE(BB05&lt;0 and AA05&lt;ref(AA05,1), AA05,REF(AA05,1),8,1),coloryellow;<br />
AA30:MA(C,30);<br />
三拾日乖离率:(c-AA30)/AA30*100,linethick0;<br />
Var1:=(AA20-AA30)&gt;ref((AA20-AA30),1) and AA20&gt;ref(aa20,1) and AA30&gt;ref(AA30,1);<br />
Var2:=(AA30-AA20)&lt;ref((AA30-AA20),1) and AA20&lt;ref(aa20,1) and AA30&lt;ref(AA30,1);<br />
BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;<br />
STICKLINE(BB30&gt;15 and AA30&gt;ref(AA30,1), AA30,REF(AA30,1),8,1),colorff00ff;<br />
强势狙击:=filter(BB30&gt;30 and BB10&gt;45 and cross(BB05,60),10);<br />
增兵:=filter(count(cross(BB05,30),5)&gt;=1 and AA05&gt;ref(aa05,1)and 三拾日乖离率&gt;ref(三拾日乖离率,1) and AA10&gt;ref(AA10,1)<br />
and 加速度5&gt;ref(加速度5,1) and 速度5&gt;ref(速度5,1),10) ;<br />
撤退:=filter(count(cross(30,BB05),5)&gt;=1 and (c&gt;AA30 or O&gt;AA30) and AA05&lt;ref(aa05,1)and 三拾日乖离率&lt;ref(三拾日乖离率,1) and AA10&lt;ref(AA10,1),10);<br />
drawtext(增兵 ,low*0.98,'&larr;增兵'),colorred;<br />
JC:=cross(0,五日乖离率) and 三拾日乖离率&lt;ref(三拾日乖离率,1) and AA10&gt;ref(AA10,1) ;<br />
减兵:=filter(JC,10);<br />
MR:=count(cross(五日乖离率,0),3)&gt;=1 and 三拾日乖离率&gt;ref(三拾日乖离率,1) and AA05&gt;ref(AA05,1) and (c/ref(c,1)-1)*100&gt;5 and ref(c,1)&lt;AA30;<br />
买入:=filter(MR,10);<br />
drawtext(减兵,high*1.02,'&larr;减兵'),colorcyan;<br />
drawtext(买入,low*0.98,'&larr;侦查'),coloryellow;<br />
drawtext(撤退 ,high*1.02,'&larr;撤退'),colorgreen;<br />
drawtext(强势狙击,LOW*0.98,'&larr;强势狙击'),coloryellow;<br />
Var21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));<br />
Var3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);<br />
MV:=(Var21+Var3)/AMOUNT*VOL*100*50;<br />
DRAWTEXT(MV&gt;6 and l&lt;=llv(l,10),l*0.95,'&larr;异动'),colorcyan;<br />
WCW:=BARSLAST(WEEKDAY&gt;REF(WEEKDAY,1));{周}<br />
CAW:=IF(WCW&gt;0,LLV(C,WCW),LLV(C,WEEKDAY));{周}<br />
周涨幅:=(C/CAW-1)*100;<br />
WCM:=BARSLAST(MONTH&gt;REF(MONTH,1));{月}<br />
CAM:=IF(WCM&gt;0,LLV(C,WCM),LLV(C,MONTH));{月}<br />
月涨幅:=(C/CAM-1)*100;<br />
WCY:=BARSLAST(YEAR&gt;REF(YEAR,1));{年}<br />
CAY:=IF(WCY&gt;0,LLV(C,WCY),LLV(C,YEAR));{年}<br />
年涨幅:=(C/CAY-1)*100;<br />
DRAWTEXTREL(2,380,'周涨幅:'+NUMTOSTRN(周涨幅,2)+'%'),LINETHICK1,COLOR00FFFF;<br />
DRAWTEXTREL(2,435,'月涨幅:'+NUMTOSTRN(月涨幅,2)+'%'),LINETHICK1,COLOR00FFFF;<br />
DRAWTEXTREL(2,490,'年最低点到现在涨幅:'+NUMTOSTRN(年涨幅,2)+'%'),LINETHICK1,COLOR00FFFF;<br />
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100&gt;100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);<br />
DRAWTEXTREL(0,130,'★量能饱和度★ '+NUMTOSTRN(SAT,2)+'%'),LINETHICK3,Color8000FF;<br />
DRAWTEXTREL(0,68,'★遵守纪律最难!遵守纪律最重要!遵守纪律重于一切!纪律是交易获利的保证!★'),LINETHICK3,COLORRED;<br />
DRAWGBKLAST(c&gt;0,STRIP(RGB(128,0,0),RGB(25,25,112),0));<br />
DRAWTEXTABS(0,0,'★'+STKLABEL+'★'+STKNAME+' '+BKNAME),linethick4,COLOR00FFFF;<br />
每股净资产:=FINANCE2(4);<br />
DRAWTEXTABS(2,82,'每股净资产:'+每股净资产+'元'),LINETHICK1,COLOR00FFFF;<br />
流通盘大小:=FINANCE2(37)/10000;<br />
DRAWTEXTABS(2,64,'流通盘大小:'+流通盘大小+'亿 '),LINETHICK1,COLOR00FFFF;<br />
净资产收益率:=FINANCE2(5);<br />
DRAWTEXTABS(2,99,'净资产收益率:'+净资产收益率+'% '),LINETHICK1,COLOR00FFFF;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧百团大战主图指标公式