【技术指标】通达信 自用仓位控制 主图指标公式 分享评测
</p><h2>指标说明</h2><p >极具参考价值的主图公式,有未来函数,但是未来函数属于高手的至宝</p><p >该主图可以提取很多选股公式。这个主图可以提取很多选股公式,另外要特别注意20天最高量的提示,不是涨停的话,大多数次日调整;如果喜欢做中线的可以多关注庄线;觉得标注多的可以到主图里自行修改。</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p ><b>公式源码/技术指标源码</b></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >DRAWTEXT_FIX(1,0.01,0.02,0,EXTERNSTR(0,1)),COLORGREEN;</p><p >DRAWGBK(C>0,RGB(0,0,0),RGB(00,0,0),0,'EM',0);DRAWKLINE(H,O,L,C);</p><p >K1:=REF(C,1)=DYNAINFO(3) AND O=DYNAINFO(4) AND C=DYNAINFO(7) AND H=DYNAINFO(5) AND L=DYNAINFO(6);</p><p >K2:=BARSLAST(V=HHV(V,20));</p><p >K3:=BACKSET(K1,K2+1);</p><p >STICKLINE(K2=0 AND K3=1,H,H*1.003,8*EM,0),COLORYELLOW;</p><p >收:C,NODRAW;</p><p >DRAWTEXT(EM1=1&&K2=0&&K3=1,H*1.02,'20天内最高量的'),COLORGREEN;</p><p >DRAWTEXT(EM1=1&&K2=0&&K3=1,H*0.98,'当天最高价划线'),COLORGREEN;</p><p >爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100;</p><p >XB:=CROSS(爆发点,20);</p><p >DRAWTEXT(XB,L,'量价齐升'),COLORRED;</p><p >PL5:=ZIG(3,5);</p><p >EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);</p><p >EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);</p><p >PL10:=ZIG(3,10);</p><p >EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);</p><p >EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);</p><p >PL20:=ZIG(3,20);</p><p >EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);</p><p >EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);</p><p >PL40:=ZIG(3,40);</p><p >走强1:=BARSLAST(PL5<ref(pl5,1));< span=""></ref(pl5,1));<></p><p >走弱1:=BARSLAST(PL5>REF(PL5,1));</p><p >走强2:=BARSLAST(PL10<ref(pl10,1));< span=""></ref(pl10,1));<></p><p >走弱2:=BARSLAST(PL10>REF(PL10,1));</p><p >走强3:=BARSLAST(PL20<ref(pl20,1));< span=""></ref(pl20,1));<></p><p >走弱3:=BARSLAST(PL20>REF(PL20,1));</p><p >ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);</p><p >ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);</p><p >DTJZ5:=IF(PL10<ref(pl10,1),count(en1,走弱2),0);< span=""></ref(pl10,1),count(en1,走弱2),0);<></p><p >DTJD5:=IF(PL10<ref(pl10,1),count(ex1,走弱2),0);< span=""></ref(pl10,1),count(ex1,走弱2),0);<></p><p >ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);</p><p >ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);</p><p >DTJZ10:=IF(PL20<ref(pl20,1),count(en2,走弱3),0);< span=""></ref(pl20,1),count(en2,走弱3),0);<></p><p >DTJD10:=IF(PL20<ref(pl20,1),count(ex2,走弱3),0);< span=""></ref(pl20,1),count(ex2,走弱3),0);<></p><p >DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'反弹'),COLORFFFF00;</p><p >DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'清仓'),COLORGREEN;</p><p >DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'买入'),COLORLIRED;</p><p >DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'留1成仓'),COLORLIGREEN;</p><p >DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'加半仓'),COLOR0000FF;</p><p >DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'减7成'),COLORGREEN;</p><p >DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'加7成'),COLOR0000FF;</p><p >DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'逢高出局'),COLORLIBLUE;</p><p >DRAWTEXT(EN2 AND DTJZ10=1,L*0.94,'等待主升'),COLORWHITE;</p><p >DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'满仓进场'),COLORMAGENTA;</p><p >DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'卖'),COLORLICYAN;</p><p >DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'满仓持股'),COLORLIRED;</p><p >DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'需要清仓'),COLORCYAN;</p><p >DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'开始大涨'),LINETHICK3,COLOR00FFFF;</p><p >{参数:M1=2\1000\5;M2=2\1000\10;M3=2\1000\20;M4=2\1000\60;}</p><p >MA1:MA(CLOSE,M1);</p><p >MA2:MA(CLOSE,M2);</p><p >MA3:MA(CLOSE,M3);</p><p >MA4:MA(CLOSE,M4);</p><p >DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);</p><p >DEA:=EMA(DIF,9);</p><p >AAA:=(DIF-DEA)*2*60;</p><p >起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;</p><p >DRAWTEXT(起爆,L*0.99,'↖暴涨'),COLORYELLOW,LINETHICK2;</p><p >DRAWTEXT(C>REF(C,1)*1.093 ,H,'板'),COLORGREEN,DRAWABOVE;</p><p >DRAWTEXT(C>REF(C,1)*1.093 AND C>MA(C,60) AND C<ma(c,60)*1.15 ,l,'★板买'),colorred;<="" span=""></p><p >T1B:=CONST(LLVBARS(LOW,10));</p><p >T1HIGH:=CONST(REF(HIGH,T1B));</p><p >CC:=CONST(CURRBARSCOUNT);</p><p >T2B:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1B AND H>T1HIGH));</p><p >T2HIGH:=CONST(REF(HIGH,T2B));</p><p >T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2B AND HIGH>T2HIGH));</p><p >T3HIGH:=CONST(REF(HIGH,T3));</p><p >涨停线:DRAWLINE(CURRBARSCOUNT=T3+1,T3HIGH, ISLASTBAR, T3HIGH, 1),COLORGREEN,LINETHICK2;</p><p >C2:=REF(C,1);</p><p >涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);</p><p >STICKLINE(涨停,OPEN,CLOSE,2,0),,COLORYELLOW;</p><p >STICKLINE(涨停,H,L,0,0),,COLORYELLOW;</p><p >跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);</p><p >STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;</p><p >STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;</p><p >HH:IF(CURRBARSCOUNT<=N,CONST(HHV(H,N)),DRAWNULL),COLORGREEN;</p><p > LL:IF(CURRBARSCOUNT<=N,CONST(LLV(L,N)),DRAWNULL),COLORRED;</p><p > DRAWNUMBER(CURRBARSCOUNT=N,HH,HH),COLORGREEN;</p><p > DRAWNUMBER(CURRBARSCOUNT=N,LL,LL),COLORRED;</p><p > DRAWICON(CURRBARSCOUNT=N,L,1);</p><p > DRAWTEXT(CURRBARSCOUNT=N,HH*1.04,STRCAT('振幅:',CON2STR((HH-LL)/LL*100,2))),COLORYELLOW;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.01,0.99,0,EXTERNSTR(0,3)),COLORYELLOW;</p><p >DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.94,'底') ,LINETHICK2,COLORYELLOW;</p><p >DRAWTEXT(CROSS(REF(ZIG(3,7),1),ZIG(3,7)),HIGH*1.04,'顶') ,LINETHICK2,COLORGREEN;</p><p >庄线A:=(3*CLOSE+OPEN+LOW+HIGH)/6;</p><p >庄线B:(19*庄线A+19*REF(庄线A,1)+18*REF(庄线A,2)+17*REF(庄线A,3)+16*REF(庄线A,4)+15*REF</p><p >(庄线A,5)+14*REF(庄线A,6)</p><p >+13*REF(庄线A,7)+12*REF(庄线A,8)+11*REF(庄线A,9)+10*REF(庄线A,10)+9*REF(庄线A,11)+8*REF</p><p >(庄线A,12)</p><p >+7*REF(庄线A,13)+6*REF(庄线A,14)+5*REF(庄线A,15)+4*REF(庄线A,16)+3*REF(庄线A,17)+2*REF</p><p >(庄线A,20)+</p><p >REF(庄线A,19))/210,COLOR000000;</p><p >庄线支撑:MA(庄线B,5),COLORRED,LINETHICK3;</p><p >天数:=BARSLAST(涨停);</p><p >DRAWTEXT(BETWEEN(天数,1,10), H*1.02, VAR2STR(天数,0));</p> good!vevy good!
页:
[1]