通达信分时雷达主图指标公式
<p data-first-child > 现价:=C,COLORWHITE,LINETHICK2;</p><p > 均价11:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2;</p><p > TT:=BARSCOUNT(C);</p><p > 前高:=REF(HHV(H,TT),1);</p><p > 突破:=crOSS(C,REF(HHV(H,TT),1))ANDC/均价11<1.09ANDTT>1ANDTT<240;</p><p > 主力扫盘:=COUNT(突破,13)>=3ANDCROSS(C,REF(HHV(H,TT),1));</p><p > 已主力扫盘:=BArslAST(主力扫盘)<13;</p><p > HJ_2:=DYNAINFO(4)>0ANDHHV(HIGH,2)/LLV(LOW,2)<1.25ANDREF(CLOSE,1)<LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85;</p><p > HJ_9:=EMA(CLOSE,2);</p><p > HJ_10:=EMA(CLOSE,3);</p><p > HJ_11:=MAX(HJ_9,HJ_10);</p><p > X2:=CLOSE>HJ_11ANDHJ_2AND(CLOSE>REF(HHV(HIGH,2),1)AND(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015)AND(V/CAPITAL<=0.2)ANDC/REF(C,1)<1.07;</p><p > NX:=MA(((SLOPE(C,20)*5)+C),10);</p><p > {中枢}</p><p > B1:=HOUR=09ANDMINUTE=45;</p><p > B20:=LLV(L,15);</p><p > B30:=BARSLAST(B1);</p><p > B4:=REF(B20,B30);</p><p > B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2;</p><p > C1:=HOUR=09ANDMINUTE=45;</p><p > C2:=HHV(H,15);</p><p > C3:=BARSLAST(C1);</p><p > C4:=REF(C2,C3);</p><p > C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;</p><p > DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);</p><p > DEA:=EMA(DIF,9);</p><p > macd10:=(DIF-DEA)*2;</p><p > AA0:=MacD10>00ANDDIF>0ANDDEA>0;</p><p > A100:=HOUR=10ANDMINUTE=0;</p><p > A20:=HHV(H,30);</p><p > A30:=BARSLAST(A100);</p><p > A40:=REF(A20,A30);</p><p > A50:=CONST(A40);</p><p > A80:=CLOSE>A50ANDREF(C<=A50,1)ANDCLOSE>NX;</p><p > AB:=FILTER(A80,100);</p><p > A90:=DYNAINFO(3);</p><p > AC:=CLOSE<=A90*1.04ANDCLOSE>A90;</p><p > 量比:=V/REF(MA(V,5),1);</p><p > XG:=AA0ANDABANDACANDA40>A90AND量比>=1;</p><p > HJ_4:=CLOSE;</p><p > HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);</p><p > BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);</p><p > BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);</p><p > HJ_6:=CLOSE/DYNAINFO(3);</p><p > HJ_7:=FILTER(HJ_5>0.015ANDHJ_5>REF(HJ_5,1)*2ANDvol>REF(VOL,1)*2ANDCLOSE>REF(CLOSE,1)ORHJ_5>0.025,240);</p><p > H1:=MAX(DYNAINFO(3),DYNAINFO(5));</p><p > L1:=MIN(DYNAINFO(3),DYNAINFO(6));</p><p > P1:=H1-L1;</p><p > 阻力:L1+P1*8/9,COLORLIRED,DOTLINE;</p><p > 支撑:L1+P1*0.5/9,COLORGREEN,DOTLINE;</p><p > DRAWICON(FILTER(CROSS(C,支撑),240),(C+O)/2,1);</p><p > DRAWTEXT(FILTER(CROSS(C,支撑),240),L-0.01,'←吃进'),COLOR0000FF;</p><p > DRAWICON(FILTER(CROSS(C,阻力),240),(C+O)/2,2);</p><p > DRAWTEXT(FILTER(CROSS(C,阻力),240),H+0.01,'←抛压'),COLORYELLOW;</p><p > WA1:=V*C/100;</p><p > WA2:=SUM((IF(((WA1/8>20)AND(CLOSE>(REF(CLOSE,1)))),WA1,0)),0);</p><p > WA3:=SUM((IF(((WA1/8>20)AND(CLOSE<(REF(CLOSE,1)))),WA1,0)),0);</p><p > WA4:=SUM((IF(((WA1/8<20)AND(CLOSE>(REF(CLOSE,1)))),WA1,0)),0);</p><p > WA5:=SUM((IF(((WA1/8<20)AND(CLOSE<(REF(CLOSE,1)))),WA1,0)),0);</p><p > 机构买盘:=(WA2);</p><p > 机构卖盘:=(WA3);</p><p > 散户买盘:=(WA4);</p><p > 散户卖盘:=(WA5);</p><p > BU:=BARSLAST(CLOSE=HHV(CLOSE,60));</p><p > SE:=BARSLAST(CLOSE=LLV(CLOSE,60));</p><p > KK1:=SE;</p><p > KK2:=BU;</p><p > LM1:=SE;</p><p > LM2:=BU;</p><p > OK:=KK1>KK2ANDLM1>LM2;</p><p > OK1:=KK1>KK2ANDLM1<LM2;</p><p > NOK:=KK2>KK1ANDLM2>LM1;</p><p > NOK1:=KK2>KK1ANDLM2<LM1;</p><p > DRAWICON(FILTER(CROSS(KK1,KK2),240),(C+O)/2,1);</p><p > DRAWTEXT(FILTER(CROSS(KK1,KK2),240),L-0.01,'←吃进'),COLOR0000FF;</p><p > TT1:=BARSCOUNT(C);</p><p > 均价黄:=SUM(C*V,TT1)/SUM(V,TT1);</p><p > 量两步:=MA(V,5)>REF(MA(V,5),1)ANDREF(MA(V,5),1)>REF(MA(V,5),2);</p><p > 价两步:=C>=REF(C,1)ANDREF(C,1)>REF(C,2);</p><p > 价上岗量破5:=C>均价黄ANDV>MA(V,5);</p><p > 量起爆:=V>=REF(V,1)*1;</p><p > 价创新高:=C>=HHV(C,0);</p><p > 量创新高:=V>=HHV(V,0);</p><p > 对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=4.50;{涨幅控制2个点以内}</p><p > 每日一点:=量两步AND价两步AND价上岗量破5AND量起爆AND价创新高AND量创新高AND对昨日涨幅;</p><p > VV:=BARSSINCE(每日一点)+1;</p><p > 首次起爆价:=REF(C,VV-1),NODRAW;</p><p > 起爆收益:=(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;</p><p > 流通盘:=CAPITAL*100/100000000,NODRAW;</p><p > 起爆时间:=REF(TIME/10000,VV),NODRAW;</p><p > 已爆分钟:=VV-1,NODRAW;</p><p > DRAWICON(每日一点,(C+O)/2,1);</p><p > DRAWTEXT(每日一点,L-0.01,'←吃进'),COLORRED;</p><p > ACX:=FILTER(CROSS(KK1,KK2),240);</p><p > ACX1:=BARSSINCE(ACX)+1;</p><p > 首次抓板价:=REF(C,ACX1-1),NODRAW;</p><p > 抓板收益:=(DYNAINFO(7)-首次抓板价)/首次抓板价*100,NODRAW;</p><p > 全仓买进:=CROSS(C,REF(HHV(H,TT),1))ANDHHVBARS(VOL,TT)=0ANDC/均价11<1.09ANDTT>1ANDTT<240ANDBARSLAST(主力扫盘)>=20AND对昨日涨幅;</p><p > W4:=DRAWTEXT(全仓买进,前高,'←全仓'),COLORCYAN;</p><p > DRAWICON(全仓买进,C,23);{东风小图标}</p><p > 对昨日涨幅1:=(C/DYNAINFO(3)-1)*100<=7;{涨幅控制2个点以内}</p><p > 价2步:=C/REF(C,3)>1.04;</p><p > DRAWTEXT(价2步,C*0.995,'←吃进'),COLORRED;</p><p > 现:=100*(C-REF(C,1))/REF(C,1);</p><p > 量:=SUM(V,FROMOPEN);</p><p > 大买:=SUM(IF(现>=0ANDV>CAPITAL*0.0005ANDPERIOD=0,V,0),FROMOPEN);</p><p > 大卖:=SUM(IF(现<0ANDV>CAPITAL*0.0005ANDPERIOD=0,V,0),FROMOPEN);</p><p > 小买:=SUM(IF(现>=0ANDV<CAPITAL*0.0005ANDPERIOD=0,V,0),FROMOPEN);</p><p > 小卖:=SUM(IF(现<0ANDV<CAPITAL*0.0005ANDPERIOD=0,V,0),FROMOPEN);</p><p > B31:=100*大买/量;</p><p > B32:=100*大卖/量;</p><p > B33:=100*小买/量;</p><p > B34:=100*小卖/量;</p><p > {NOFRAME}</p><p > DRAwrECTREL(133,CONST(100-B31)*1000/100,159,1000,RGB(255,0,0));</p><p > DRAWRECTREL(269,CONST(100-B32)*1000/100,294,1000,RGB(0,255,0));</p><p > DRAWRECTREL(405,CONST(100-B33)*1000/100,427,1000,RGB(128,0,0));</p><p > DRAWRECTREL(536,CONST(100-B34)*1000/100,557,1000,RGB(0,128,0));</p><p > DRAWTEXT_FIX(PERIOD=0,0.138,8,0,CON2STR(B31,0))COLORFFFFFF;</p><p > DRAWTEXT_FIX(PERIOD=0,0.275,8,0,CON2STR(B32,0))COLORFF0000;</p><p > DRAWTEXT_FIX(PERIOD=0,0.408,8,0,CON2STR(B33,0))COLORFFFFFF;</p><p > DRAWTEXT_FIX(PERIOD=0,0.539,8,0,CON2STR(B34,0))COLORFF0000;</p><p > DRAWTEXT_FIX(1,0.09,1,0,'大买单'),COLORRED;</p><p > DRAWTEXT_FIX(1,0.228,1,0,'大卖单'),COLORGREEN;</p><p > DRAWTEXT_FIX(1,0.362,1,0,'小买单'),COLORLIRED;</p><p > DRAWTEXT_FIX(1,0.492,1,0,'小卖单'),COLORLIGREEN;</p><p > XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));</p><p > 主攻:=expma(CLOSE/XX,20);</p><p > 大户:=EXPMA(CLOSE/XX,60);</p><p > 散户:=EXPMA(CLOSE/XX,120);</p><p > 底:=1;</p><p > 中:=1.02,NODRAW;</p><p > 高:=1.03;</p><p > AA:=主攻>大户AND主攻>1.003AND大户>散户ANDC>EXPMA(C,20)ANDEXPMA(C,10)>EXPMA(C,20)ANDEXPMA(C,20)>EXPMA(C,60);</p><p > DRAWICON(主攻>大户AND大户>散户ANDC>EXPMA(C,20)ANDEXPMA(C,10)>EXPMA(C,20)ANDEXPMA(C,20)>EXPMA(C,60)AND主攻=HHV(主攻,30)ANDCROSS(主攻,1.003),(C+O)/2,9);</p><p > DRAWTEXT(主攻>大户AND大户>散户ANDC>EXPMA(C,20)ANDEXPMA(C,10)>EXPMA(C,20)ANDEXPMA(C,20)>EXPMA(C,60)AND主攻=HHV(主攻,30)ANDCROSS(主攻,1.003),H-0.01,'←加仓'),COLORYELLOW;</p><p></p>
页:
[1]