通达信指标公式源码买了就赚主图 副图 选股指标

合集下载

通达信副图指标公式源码大全

通达信副图指标公式源码大全

副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;V AR1:=REF(CLOSE,1);标尺:SMA(MAX(CLOSE—V AR1,0),5,1)/SMA(ABS(CLOSE-V AR1),5,1)*100; V AR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)—LLV(LOW,N1))*100;V AR3:=SMA(V AR2,3,1);V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1);浪: V AR3,COLORBLUE;波:V AR4, COLORRED;段: V AR5 ,COLORYELLOW;V AR6:=CROSS(V AR3,V AR4)AND VAR4<25;STICKLINE(V AR6,0,V AR4+15,5,0),COLORGREEN;V AR7:=CROSS(V AR4,V AR5) AND V AR4<25;V AR8:=V AR7 AND VOL〉REF(VOL,1)*2 AND VOL〉REF(MA(VOL,5),1)*2; STICKLINE(VAR7,0,V AR4+55,5,0),COLORWHITE;DRAWTEXT(V AR7 AND COUNT(V AR7,10)=1,V AR4+25,'抄底’),COLORYELLOW;STICKLINE(VAR8,0,V AR4+15,5,0),COLORBLUE;DRAWTEXT(V AR8 AND COUNT(V AR8,10)=1,V AR4—1,’放量'),COLORGREEN;V AR9:=CROSS(V AR3,V AR4)AND V AR4>80 AND V AR4〉V AR5;STICKLINE(V AR9 AND COUNT(V AR9,5)=1,V AR4-5,100,5,0),COLORYELLOW;V ARA:=CROSS(V AR5,V AR4)AND REF(V AR4,1)>80;STICKLINE(VARA,V AR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(V ARA,10)=1,V AR4—25,'逃顶’), COLORYELLOW; V AR1A:=(CLOSE—LLV(LOW,15))/(HHV(HIGH,15)—LLV(LOW,15))*100;V AR1B:=SMA((SMA(V AR1A,4,1)—50)*2,3,1);V AR1C:=(INDEXC—LLV(INDEXL,14))/(HHV(INDEXH,14)—LLV(INDEXL,14))*100;V AR1D:=SMA(V AR1C,4,1);V AR1E:=SMA(V AR1D,3,1);V AR1F:=(HHV(HIGH,30)—CLOSE)/CLOSE*100;V ARE:=REF(LOW,1)*0。

通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式

通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式

DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0));DRAWRECTREL(100,120,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)<0,6,T5); T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)<0,7,T6);T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)<0,8,T7);T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)<0,9,T8);T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT('【主买比】: ',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】: ',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】: ',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX 连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量< 0),资金流量,0,3,0),COLORFF3300;黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;ARE4:=MA(C,20); ARE5:=(C>MA(C,5)); ARE6:=(MA(C,5)>MA(C,10)); ARE7:=(C>MA(C,10));ARE8:=(MA(C,5)>MA(C,20)); ARE9:=(C>MA(C,20)); ARE10:=REF(ARE4,1); ARE11:=(ARE4>ARE10);AVX:=(((((IF(ARE5,10,(0-10))+IF(ARE6,10,(0-10)))+IF(ARE7,10,(0-10)))+IF(ARE8,10,(0 -10)))+IF(ARE9,10,(0-10)))+IF(ARE11,10,(0-10)));DSLX:=(C/INDEXC); DSLX1:=MA(DSLX,5); DSLX2:=MA(DSLX,10); VRE1:=MA(V,5); VRE2:=MA(V,10);阻力位:=IF((C>200),(C*1.01),(C*1.07)); 阻力位1:=IF((C<10),(C*1.05),阻力位);止损位:=IF((C>200),(C*0.99),(C*0.93)); 止损位1:=IF((C<10),(C*0.95),止损位); TJTS1:=ISLASTBAR AND C<500; TJTS2:=ISLASTBAR AND C>500;KDAT:=REFDATE(HHV(H,45)/0.097,DATE);{解盘位置}解盘1:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘2:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘3:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 > VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘4:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 <= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘5:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘6:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘7:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘8:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘9:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘10:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘11:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘12:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘13:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >=VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘14:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘15:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘16:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘17:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘18:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘19:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘20:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘21:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 >= VRE2)) ,1,0));解盘22:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 < VRE2)) ,1,0));解盘23:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) ,1,0));解盘24:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) ,1,0));解盘25:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) ,1,0));解盘26:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) ,1,0));解盘文字1:=IF(解盘1=1,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘2=1,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右', IF(解盘3=1,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右',IF(解盘4=1,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右',IF(解盘5=1,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望',IF(解盘6=1,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓',IF(解盘7=1,'该股放量下跌,走势明显偏弱,离场观望',IF(解盘8=1,'该股缩量下跌,走势偏弱,离场观望',IF(解盘9=1,'该股形态良好,强势明显,量能充足,可以继续持有',IF(解盘10=1,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险',IF(解盘11=1,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓',IF(解盘12=1,'该股走势趋弱,量能不足,减持大部分筹码',IF(解盘13=1,'该股形态不佳,注意成交量的变化,但目前不适合参与',IF(解盘14=1,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与',IF(解盘15=1,'该股有走强迹象,但量能不足,趋势不明,不适合操作',IF(解盘17=1,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘19=1,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌',IF(解盘21=1,'大盘形态走坏,重仓者可以减去大部分仓位',IF(解盘22=1,'大盘缩量调整,注意风险,短线清仓观望',IF(解盘23=1,'大盘走势良好,量能理想,可以继续持有强势股',IF(解盘24=1,'大盘形态良好,但量能稍显不足,随时准备减仓',IF(解盘25=1,'大盘趋势不明,注意成交量变化,目前不适宜进场',IF(解盘26=1,'大盘趋势向下,量能萎缩,不适合进场',DRAWNULL)))))))))))))))))))))));解盘文字2:=IF(解盘16=1,'该股走势太弱,没有参与价值',IF(解盘18=1,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎',IF(解盘20=1,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入',DRAWNULL)));DRAWTEXT(CURRBARSCOUNT=70{位置} AND (解盘1=1 OR 解盘2=1 OR 解盘3=1 OR 解盘4=1 OR 解盘5=1 OR 解盘6=1 OR 解盘7=1 OR解盘8=1 OR 解盘9=1 OR 解盘10=1 OR 解盘11=1 OR 解盘12=1 OR 解盘13=1 OR 解盘14=1 OR 解盘15=1 OR 解盘17=1 OR解盘19=1 OR 解盘21=1 OR 解盘22=1 OR 解盘23=1 OR 解盘24=1 OR 解盘25=1 OR 解盘26=1),(KDAT*0.99),解盘文字1),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=70{位置} AND (解盘16=1 OR 解盘18=1 OR 解盘20=1),IF(解盘18=1 OR 解盘20=1,KDAT*0.98,KDAT*0.96),解盘文字2),COLOR00FFFF; TT:=240/FROMOPEN;比:=TT;促进指数MFL:=(HIGH-LOW)*1000000/(VOL*比),COLORRED;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));WJ:=(H+L+C)/3;VV1:=IF(H=L,1,H-MAX(O,C));VV2:=IF(H=L,1,MAX(C,O)-WJ);VV3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));VV5:=VOL/IF(H=L,4,H-L);V6:=(VV1*VV5);V7:=(VV2*VV5);V8:=(VV3*VV5);V9:=(V4*VV5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);{买卖差:=买盘-卖盘;}MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);M1:=CONST(绿灯);衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);M2:=CONST(衰退);伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);M3:=CONST(伪装);蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);M4:=CONST(蛰伏);量大:=(卖盘+买盘)/REF(VOL,1)>2;M5:=CONST(量大);量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;M6:=CONST(量缩);卖量大:=(卖盘-买盘)/买盘>0.4;M7:=CONST(卖量大);买量大:=(买盘-卖盘)/卖盘>0.4;M8:=CONST(买量大);TS1:=IF(M1=1,1.99+4.99,0.91);TS2:=IF(M2=1,TS1+4.99,TS1);TS3:=IF(M3=1,TS2+4.99,TS2);TS4:=IF(M4=1,TS3+4.99,TS3);TS5:=IF(M5=1,TS4+4.99,TS4);TS6:=IF(M6=1,TS5+4.99,TS5);TS7:=IF(M7=1,TS6+4.99,TS6);TS8:=IF(M8=1,TS7+4.99,TS7);DRAWTEXT(M1 AND CURRBARSCOUNT=50,ZGD2-(ZGD2*TS1),'[绿灯]实计交易量增加。

通达信指标公式源码 涨停后缩量板副图主图选股指标

通达信指标公式源码 涨停后缩量板副图主图选股指标

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.90,1,0);缩量涨停:=EVERY(涨停,2);DRAWTEXT(缩量涨停,H*1.03,'缩量涨停'),COLORGREEN;UU:=3;A88:=SUM(C*V,UU);B88:=SUM(V,UU);市场价值线:MA(A88/B88,7)COLORYELLOW,LINETHICK3;VAR41:=REF(CLOSE,1);VAR42:=((SMA(MAX((CLOSE - VAR41),0),7,1) / SMA(ABS((CLOSE -VAR41)),7,1)) * 100);VAR43:=((SMA(MAX((CLOSE - VAR41),0),13,1) / SMA(ABS((CLOSE -VAR41)),13,1)) * 100);VAR44:=((BARSLAST((VAR43 < 23)) <= 3) AND CROSS(VAR42,VAR43)); VAR45:=((((CLOSE - MA(CLOSE,23)) / MA(CLOSE,20)) * 100) < -12.5);VAR46:=LLV(LOW,5);VAR47:=HHV(HIGH,10);VAR48:=EMA((((CLOSE - VAR46) / (VAR47 - VAR46)) * 100),4);VAR49:=EMA(((0.667 * REF(VAR48,1)) + (0.333 * VAR48)),2);{VAR50:=1011131;VAR51:=(IF((DATE <= VAR50),VAR45,0) OR IF((DATE <= VAR50),VAR1,0));} DRAWTEXT((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),LOW*1.008,'急跌后超级大黑马'),COLORMAGENTA;DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.10,26);DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.38,26);持股线1:MA(CLOSE,15),COLORMAGENTA,LINETHICK5;MA10:MA(CLOSE,50),COLORBB0000;DRAWKLINE(H,O,L,C);{筹码峰}时长:=120;换手次数:=2;选择方式:=1;统计时长:IF(选择方式=1,CONST(SUMBARS(V/FINANCE(7)*100,换手次数)),时长),NODRAW;KK:=统计时长;高:=CONST(HHV(H,KK));低:=CONST(LLV(L,KK));XX:=(高-低);均价:=AMOUNT/V/100,NODRAW;L0:=低+XX*0/9;L1:=低+XX*1/9;L2:=低+XX*2/9;L3:=低+XX*3/9;L4:=低+XX*4/9;L5:=低+XX*5/9;L6:=低+XX*6/9;L7:=低+XX*7/9;L8:=低+XX*8/9;L9:=低+XX*9/9;MLZ:=SUM((CURRBARSCOUNT<KK+1)*V,KK),COLORWHITE;ML1:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L0-0.001,L1+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML1*200)),(L0+L1*0.99)*0. 49,(L0+L1*0.99)*0.5,18,0),COLORFF5555;ML2:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L1,L2+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML2*200)),(L1+L2*0.99)*0. 4999,(L1+L2*0.99)*0.5,18,0),COLORFFAA55;ML3:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L2,L3+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML3*200)),(L2+L3*0.99)*0. 4999,(L2+L3*0.99)*0.5,18,0),COLORAAFF55;ML4:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L3,L4+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML4*200)),(L3+L4*0.99)*0.4999,(L3+L4*0.99)*0.5,18,0),COLOR5FFF00;ML5:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L4,L5+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML5*200)),(L4+L5*0.99)*0. 4999,(L4+L5*0.99)*0.5,18,0),COLORFFFFF0;ML6:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L5,L6+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML6*200)),(L5+L6*0.99)*0. 4999,(L5+L6*0.99)*0.5,18,0),COLORFF0FFF;ML7:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L6,L7+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML7*200)),(L6+L7*0.99)*0. 4999,(L6+L7*0.99)*0.5,18,0),COLOR509FDD;ML8:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L7,L8+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML8*200)),(L7+L8*0.99)*0. 4999,(L7+L8*0.99)*0.5,18,0),COLORAA5DDD;ML9:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L8,L9+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML9*200)),(L8+L9*0.99)*0. 4999,(L8+L9*0.99)*0.5,18,0),COLOR0055DD;STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,2,0),COLORYELLOW;HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BARSLAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(HJ_11,HJ_12);HJ_15:=MAX(HJ_14,HJ_13);HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;HJ_17:=HJ_10<150;HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;HJ_21:=VOL/MA(VOL,5)<3.5;HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;暴利:=FILTER(HJ_25,15);MA54:=MA(CLOSE,54)NODRAW;PL1:=(((CLOSE-MA54)/MA54)<0.1);PL2:=(((CLOSE-MA10)/MA10)<0.3);偏离率:=(((PL1=1) AND (PL2=1))*0.2);平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);妖股突破:=平台突破=-0.1;XDF:=(暴利OR 妖股突破);VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05); FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2); 妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;DRAWICON(妖股,H*1.0395,7);DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.975,' 妖股'),COLORYELLOW;DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.995,' 妖股'),COLORRED;DRAWTEXT_FIX(1,0.1,0.98,0,'艳红色线是持股线,黄线是反映市场价值线,接近收盘时股价上了黄色线就买进,股价在黄线之下的坚决不买,下黄线(收盘破红必跑) 毫不犹豫清仓,切记切记,做股票万万不要痴心妄想')COLORYELLOW; LC11:=REF(CLOSE,1),NODRAW;RSI11:=((SMA(MAX((CLOSE - LC11),0),3,1) / SMA(ABS((CLOSE - LC11)),3,1)) * 100);FF:=EMA(CLOSE,3);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;顶:REFDATE(高1,DATE),COLORRED;低点:REFDATE(低1,DATE),DOTLINE,COLORRED;收盘破红必跑:MA(CLOSE,7)COLORRED,LINETHICK3;CG:MA((LOW+HIGH+CLOSE*2)/4,10);FL:HHV(CG,3);FS:IF(CG<FL,(CG-(FL-CG)),FL);FL1:HHV(CG,5);FS1:IF(CG<FL1,(CG-(FL1-CG)),FL1);FL2:HHV(CG,7);FS2:IF(CG<FL2,(CG-(FL2-CG)),FL2);FL3:HHV(CG,9),COLORFFABA3,LINETHICK2;FS3:IF(CG<FL3,(CG-(FL3-CG)),FL3);ZLZC1:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.618));ZLZC2:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.5));ZLZC3:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.382));POLYLINE:(FS3>MA(FS3,5),FS3);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);MTM1:=C-REF(C,1);DX:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6 ),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORGREEN; DRAWTEXT(FILTER(买=1,5),LOW-0.22,'拉升'),COLORWHITE;A63:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A64:=SMA(A63,3,1);A5:=SMA(A64,3,1);A6:=3*A64-2*A5;A76:=C-REF(C,1);A68:=100*EMA(EMA(A76,6),6)/EMA(EMA(ABS(A76),6),6);买88:=LLV(A68,2)=LLV(A68,7) AND COUNT(A68<0,2) ANDCROSS(A68,MA(A68,2));DRAWTEXT(FILTER(买88=1,5),H+0.05,'买进'),COLORYELLOW; DRAWTEXT(FILTER(买88=1,5),LOW-0.25,'买进'),COLORYELLOW; STICKLINE(买88,OPEN,CLOSE,2.5,0)COLORMAGENTA;STICKLINE(买88,OPEN,CLOSE,1,0),COLORWHITE;。

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标通达信是一款常用的股票分析软件,其指标公式源码被广大投资者广泛使用。

主力资金副图指标是一种衡量市场主力资金流向的指标,通过计算买方力量与卖方力量之间的差异,从而判断市场的主力资金流入或流出情况。

以下是通达信主力资金副图指标的公式源码:```//主力资金指标公式AA:=C>REF(C,1)?(V-C):C<REF(C,1)?(V+C):V;//AA表示根据成交量和价格计算得到的主力资金V1:=SUM(V,5);//V1表示5日内的成交量合计V2:=SUM(V,10);//V2表示10日内的成交量合计AA1:=SUM(AA,5);//AA1表示5日内的主力资金合计AA2:=SUM(AA,10);//AA2表示10日内的主力资金合计MAV1:=MA(V,5);//MAV1表示成交量5日均线MAV2:=MA(V,10);//MAV2表示成交量10日均线MAAA1:=MA(AA,5);//MAAA1表示主力资金5日均线MAAA2:=MA(AA,10);//MAAA2表示主力资金10日均线COLORAA:IF(AA>0,4,7);//若主力资金大于0,则显示为绿色,否则显示为灰色COLORAA1:IF(AA1>0,4,7);COLORAA2:IF(AA2>0,4,7);//绘制主力资金副图Plot(AA,"AA",COLORAA,64);Plot(AA1,"AA1",COLORAA1,64);Plot(AA2,"AA2",COLORAA2,64);MAV1,MAV2,BARS,V1,V2,AA,AA1,AA2均为通达信中的基本指标函数,用来计算不同时间段内的成交量、主力资金、均线等数据。

以上的源码描述了主力资金指标的计算过程,包括根据成交量和价格计算得到主力资金、计算不同时间段内的主力资金合计、计算成交量和主力资金的均线等操作。

通达信指标公式源码聚宝主力资金副图指标

通达信指标公式源码聚宝主力资金副图指标

A:=VOL*CLOSE;B:=SUM(A,1)/SUM(VOL,1);B1:=EMA(B,17);主力:=(B-B1)*500/B,COLORRED;进:STICKLINE(主力>=0 AND 0>=REF(0,1),0,主力,1,0),COLORRED; 出:STICKLINE(主力<0 AND 0>=REF(0,1),0,主力,1,0),COLORGREEN; K2:=EMA(C,5),COLORFFFF00;K3:=EMA(C,10),COLORFFFF00;K5:=EMA(C,30),COLORFFFF00;KK5:=EMA(INDEXC,30),COLORFFFF00; K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6),COLORRED;RSV1:= (CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100; FASTK:=SMA(RSV1,3,1);龙K:=SMA(FASTK,2,1);龙D:=SMA(龙K,5,1);VA06:=(2*CLOSE+HIGH+LOW)/4;VA07:=LLV(LOW,13);VA08:=HHV(HIGH,13);VA09:=EMA((VA06-VA07)/(VA08-VA07)*100,13);VAA1:=EMA(0.667*REF(VA09,1)+0.333*VA09,2);STICKLINE(CROSS(K8,0) AND 龙K>=龙DANDVA09>VAA1,0,1,8,0) ,COLORRED;K1:=IF(K8>REF(K8,5) AND K3<REF(K3,5) ,1,0 ),COLORYELLOW;K21:=IF(K8>REF(K8,7) AND K3<REF(K3,7) ,1,0 ),COLORYELLOW;K31:=IF(K8>REF(K8,9) AND K3<REF(K3,9) ,1,0 ),COLORYELLOW;K4:=IF(K8>REF(K8,11) AND K3<REF(K3,11) ,1,0 ),COLORYELLOW; 底部:=(K1 OR K21 OR K31 OR K4) AND K8<0 ANDK8>REF(K8,1),NODRAW ,COLORYELLOW;STICKLINE(底部AND COUNT(底部,6)=1,0.4,0,8,0) ,COLORYELLOW;VA1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VA2:=SMA(ABS(LOW-VA1),13,1)/SMA(MAX(LOW-VA1,0),10,1);VA3:=EMA(VA2,10)/100;VA4:=LLV(LOW,33);VA5:=EMA(IF(LOW<=VA4,VA3,0),3);洗盘:=IF(VA5<REF(VA5,1),VA5,0),COLORGREEN,NODRAW;STICKLINE(VA5<REF(VA5,1) {ANDCOUNT(VA5>REF(VA5,1),10)=1},0,VA5*2,3,0 ),COLORBLUE;拉升:=IF(VA5>REF(VA5,1) {AND 平均线>=REF(平均线,1)} ,VA5,0),COLORRED,NODRAW;VA6:=IF(VA5>=100,100,VA5);STICKLINE(VA5>REF(VA5,1){AND 平均线>=REF(平均线,1) ANDCOUNT(VA5<REF(VA5,1),5)=1},0,VA6*2,3,0),COLORLIRED;XP:=REF(洗盘,1);LS:=拉升;XPLS:=(XP AND LS);VR3:=(CLOSE+HIGH+LOW)/3;VR4:=EMA(VR3,10);VR5:=REF(VR4,1);主力线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2 *SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1 ),LINETHICK1,POINTDOT;VAR3:=MA(CLOSE,13);VAR4:=(100-ABS((CLOSE-VAR3)/VAR3*100))/100;VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);吸筹A:=(100-VARA)/100,COLOR0099FF,LINETHICK2;吸筹:=IF(吸筹A>1.09*REF(吸筹A,1),1,0),COLORRED,NODRAW; STICKLINE(吸筹,0,1,2,1 ),COLORYELLOW;大底:=EXIST(CROSS( 吸筹A,1),6),NODRAW,COLORMAGENTA;VARD:=吸筹A>VAR4;差:=吸筹A-VAR4,COLORYELLOW,NODRAW;JX:=(MA(C,10)*30+MA(C,30)*10+MA(C,60)*5+MA(C,120)*3)/(3+5+10+30); JXMA:=MA(JX,10);DRAWICON(CROSS(JX,JXMA),-0.3,1);DRAWICON(CROSS(JXMA,JX),2,2);DRAWICON(CLOSE>REF(HHV(HIGH,20),1),2,6);DRAWICON(CLOSE<REF(LLV(LOW,20),1),-0.5,1),COLORYELLOW;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,主力,主力+0.4,8,0),COLORYELLOW;STICKLINE(A1,主力,主力+0.3,4,0),COLORBB00BB;DRAWTEXT(A1 AND 主力<0 AND VR4>=VR5 ,主力-0.06,'底部'),COLORGREEN; DRAWTEXT(XPLS {AND VR4>=VR5} AND COUNT(XPLS,6)=1,1.35,'洗尾'),COLORGREEN;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR11:=EMA(VARF,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;STICKLINE(VARD,VAR4,吸筹*3,1,0),COLORRED;STICKLINE(VAR20,0,1.20,1,0),COLORBROWN,LINETHICK2;VAR61:=(HIGH+LOW)/2;VAR81:=LLV(LOW,35);VARB1:=HHV(HIGH,35);BB:=EMA((VAR61-VAR81)/(VARB1-VAR81)*100,9);金聚宝:=EMA(0.667*REF(BB,1)+0.333*BB,2),LINETHICK0;GC3:=LLV(BB,198);GC4:=HHV(BB,188);DRAWTEXT(FILTER(GC4>REF(GC4,1),7) ,2.8,'见顶');CC0:=(BB-金聚宝<0.3)AND (BB<25)AND (HIGH+LOW)/2<MA((HIGH+LOW)/2,13)*0.98 AND (HIGH+LOW)/2>REF((HIGH+LOW)/2,1);DD:=FILTER(CC0,10);DRAWTEXT(DD ,主力+0.2,'还有一跌');{DRAWICON(DD,19,9);}GG:=(BB-金聚宝<0.6)AND (BB<30)AND (HIGH+LOW)/2<MA(C,13)*0.996 AND (HIGH+LOW)/2>REF((HIGH+LOW)/2,1);HH:=FILTER(GG,10);{DRAWTEXT(HH AND QS<20,25,'逃底点'),COLOR43D0FA;} {DRAWICON(HH,20,10);}EE:=(BB-金聚宝>0.55)AND (BB>70) AND(HIGH+LOW)/2>MA((HIGH+LOW)/2,13)*0.96 AND(HIGH+LOW)/2<REF((HIGH+LOW)/2,1);{FF:=FILTER(EE,10);DRAWTEXT(FF AND QS>80,70,'逃'),COLOR43D0FA;}DRAWTEXT(FILTER(GC3>REF(GC3,1),5)AND BB<40 AND 金聚宝>REF(金聚宝,1),主力-0.2,'将见底');DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);买:=CROSS(DIFF1,DEA1),NODRAW;DRAWTEXT(买AND COUNT(买,25)=1,主力-0.6,'☆买'),COLORMAGENTA; DFQS:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3 ,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30, 4,1),3,1),2,1);TX:=78.89;{DRAWICON(CROSS(TX,DFQS),1.02*H,6);}STICKLINE(CROSS(TX,DFQS),1,2,5,0),COLOR00FF00;DRAWTEXT(FILTER(CROSS(TX,DFQS),10) ,2.2,'逃顶'),COLORFF6699;VAR301:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA (SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(VAR301,3)-10,COLORFF0000;A13:=CROSS(趋势,0);OK:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORW HITE;RSI2:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORW HITE;鱼:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORRED, DOTLINE;RSI4:=SMA(鱼,7,1),LINETHICK1,COLORWHITE;趋势A:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,CO LORFFFFFF;趋势B:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;AZ1:=MA(趋势A,7)*1.372,COLORGREEN,LINETHICK1;AZ2:=AZ1*1.0887;AZ3:=(1.5*(趋势B+RSI4)-(AZ2+AZ1))+12,COLORGREEN,LINETHICK1,DOTLINE;鱼网:=IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,AZ3) AND AZ3<38 ANDRSI1<51),18,0),COLORYELLOW,LINETHICK2;买入:=IF(EXIST(鱼网=18,8)AND 鱼>45 AND鱼>REF( 鱼,2),1,0),COLORMAGENTA,,LINETHICK3;{STICKLINE(A13,0,主力*2+3,5,0),COLORMAGENTA;}DRAWTEXT(A13 ,主力*2+2,'启动'),COLORWHITE;最小值:=LLV(LOW,25);最大值:=HHV(HIGH,25);波动线:=EMA((CLOSE-最小值)/(最大值-最小值)*100,4);平均线:=EMA(波动线,3);反转:=COUNT(MA(C,10)<REF(MA(C,10),1),3)>=2 AND CROSS(C,MA(C,20)) AND C>=MA(C,30) AND 平均线>=REF(平均线,1);DRAWTEXT(反转,主力*2+2.3,'反转'),COLORWHITE;STICKLINE(反转OR XPLS {AND VR4>=VR5} ,0,主力*2+2,5,0),COLORCYAN; 必买: DRAWICON(REF(TROUGHBARS(3,15,1),1)=0 ANDHIGH>LOW,-1.2,25),COLORRED ,LINETHICK4;必卖: DRAWICON(REF(PEAKBARS(3,15,1),1)=1,主力+2.2,27),COLORRED,LINETHICK8;DRAWTEXT(REF(PEAKBARS(3,15,1),1)=1 ,主力+3.2,' 必卖'),COLORGREEN; A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买1:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买1=1,5) AND (平均线>=REF(平均线,1) OR VR4>=VR5) ,主力-0.45,'↖买进'),COLORYELLOW;STICKLINE(买1,主力,0,2,0),COLORYELLOW;A11:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,3 0))/(HHV(H,30)-LLV(L,30))*100,5);A14:=EMA(A11,5);A15:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);基础:=(DIFF<-0.1 AND DIFF>DEA);中线买入:=(CROSS(A11,A14)AND (A15-A14)>40 AND 基础OR 买入)AND VR4>=VR5 ;STICKLINE(中线买入AND COUNT(中线买入,5)=1 ,0,主力+3,2,0),COLORRED; DRAWTEXT(中线买入AND COUNT(中线买入,10)=1,主力*2+3,'买入'),COLORMAGENTA;买多: ( (XPLS OR 中线买入OR 大底OR A1 OR 买入OR 买OR A13) OR VR4>=VR5),NODRAW,COLORRED;DRAWTEXT_FIX( ISLASTBAR AND 买多,0.52,0.04,0,'【买多】'),COLORRED; 买空: ( (FILTER(GC4>REF(GC4,1),10) OR DD ORFILTER(CROSS(TX,DFQS),10)) OR VR4<VR5),NODRAW,COLORCYAN; DRAWTEXT_FIX( ISLASTBAR AND 买空,0.52,0.04,0,'【买空】'),COLORCYAN; 超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(0.5),COLORYELLOW,LINETHICK3;IF(超短线>=REF(超短线,1),超短线,DRAWNULL),COLORMAGENTA,LINETHICK5;IF(超短线<REF(超短线,1),超短线,DRAWNULL),COLORBLUE,LINETHICK5;震仓: IF(VR4,-0.038,DRAWNULL),COLORYELLOW,LINETHICK9;红买: IF(VR4>=VR5 ,-0.038,DRAWNULL), COLORRED,LINETHICK5;蓝卖: IF(VR4<VR5 ,-0.036,DRAWNULL),,COLORBLUE,LINETHICK5;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=(E+(HIGH-LOW)) ;支撑:=(E-(HIGH-LOW));DRAWTEXT_FIX(ISLASTBAR,0.15,0.04,0,'阻力'),COLORWHITE; DRAWNUMBER_FIX(ISLASTBAR,0.22,0.04,0,阻力),COLORWHITE; DRAWTEXT_FIX(ISLASTBAR,0.35,0.04,0,'支撑'),COLORLIRED; DRAWNUMBER_FIX(ISLASTBAR,0.42,0.04,0,支撑),COLORRED;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数} ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);RSVB:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;KK1:=SMA(RSVB,10,1);D1:=SMA(KK1,5,1);KK:=INTPART(KK1);DDB:=INTPART(D1);TFXXS:=KK+DDB;{//变异KD风险系数}T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=1);T5:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=0);T6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100 );T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP ANDZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1 ,0.66,TS1,0,'★监控:主力增仓'),COLOR8080FF; DRAWTEXT_FIX(T2 ,0.66,TS2,0,'★监控:主力减仓'),COLORFFFF00; DRAWTEXT_FIX(T3 ,0.66,TS3,0,'★监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4 ,0.66,TS4,0,'★监控:主力回补'),COLORFF9933; DRAWTEXT_FIX(T5 ,0.66,TS5,0,'★监控:主力出逃'),COLORFFFF00; DRAWTEXT_FIX(T6 ,0.56,0.25,0,'★操作:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7 ,0.56,0.25,0,'★操作:卖出风险'),COLORFFFF00; DRAWTEXT_FIX(T8 ,0.56,0.25,0,'★操作:追涨博弈'),COLOR8080FF; DRAWTEXT_FIX(T9 ,0.56,0.25,0,'★操作:稳健持股'),COLOR8080FF;DRAWTEXT_FIX(T10 ,0.56,0.25,0,'★操作:盘跌减仓'),COLORFFFF00; DRAWTEXT_FIX(T11 ,0.56,0.25,0,'★操作:杀跌空仓'),COLORFFFF00; DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别提示:筑底散兵坑'),COLOR66FFCC; DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别提示:铸顶风险区'),COLORFFFF00; DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别提示:穿越主力'),COLOR8080FF; DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别提示:穿越主力'),COLORYELLOW; DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别提示:穿越散户'),COLORGREEN; DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别提示:全盘穿越'),COLOR3399FF; DRAWTEXT_FIX(T18,0.36,TS18,0,'☆特别提示:神秘黑洞'),COLOR9966FF; 量价:=(VOL/CLOSE)/3;{好}BB2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);BB3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);BB6:=BB2+BB3;DD1:=1;比:=BB2/BB3;BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*BB2)/BB6,0)),'%');BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*BB3)/BB6,0)),'%');BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(BB2-BB3))/BB6,0)),'%'); DRAWTEXT_FIX(DD1=1 ,0,0.02,0,BBB1),COLORRED;DRAWTEXT_FIX(DD1=1 ,0,0.13,0,BBB2),COLORGREEN;DRAWTEXT_FIX(DD1=1 ,0,0.24,0,BBB3),COLOR00FFFF;。

主力买卖 资金进出(副图 指标)通达信指标公式源码

主力买卖 资金进出(副图 指标)通达信指标公式源码

主力买卖资金进出(副图指标)DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0)); DRAWRECTREL(100,120,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)<0,6,T5); T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)<0,7,T6);T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)<0,8,T7);T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)<0,9,T8);T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT('【主买比】:',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】:',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】:',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量< 0),资金流量,0,3,0),COLORFF3300;黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*RE F(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;。

通达信指标公式源码金牛启动主图加金牛启动选股加副图就等于必胜

通达信指标公式源码金牛启动主图加金牛启动选股加副图就等于必胜

金牛启动主图加金牛启动选股加副图就等于必胜!金牛启动主图趋势:EMA(EMA(C,4),4),COLORYELLOW;月K:="KDJ.K#MONTH";月D:="KDJ.D#MONTH";周K:="KDJ.K#WEEK";周D:="KDJ.D#WEEK";日K:="KD.K";日D:="KD.D";日金叉:=IF(CROSS(日K,日D),15,0);周金叉:=IF(CROSS(周K,周D),25,0);月金叉:=IF(CROSS(月K,月D),35,0);日周月:=IF(日金叉=15 AND 周金叉=25 AND 月金叉=35,1,0);日周月赚:=日周月=1;日周:=IF(日金叉=15 AND 周金叉=25,2,0);日周赚:=日周=2;周月:=IF(周金叉=25 AND 月金叉=35,3,0);日月:=IF(日金叉=15 AND 月金叉=35,4,0);日月赚:=日月=4;周月赚:=周月=3;DRAWTEXT(日周月赚,趋势*0.96,'↖LSP大牛'),COLORRED;DRAWTEXT(周月赚,趋势*0.97,'↖LSP金牛'),COLORFF00FF; DRAWTEXT(日月赚,趋势*0.98,'↖LSP牛牛'),COLORYELLOW;DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;启动:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2; DRAWTEXT(启动,L*0.99,'↖金牛启动'),COLORYELLOW,LINETHICK2;所属地域:DRAWTEXT_FIX(ISLASTBAR ,0.05,1,1,DYBLOCK),COLORYELLOW; 所属行业:DRAWTEXT_FIX(ISLASTBAR ,0.06,1,0,HYBLOCK),COLORYELLOW; DRAWTEXT_FIX(1,0.11,1,0,EXTERNSTR(0,6)),COLORYELLOW; DRAWTEXT_FIX(1,0.12,1,0,EXTERNSTR(0,1))COLORYELLOW; DRAWTEXT_FIX(1,0.006,0.82,0,'主营业务')COLORFF00FF;DRAWTEXT_FIX(1,0.06,0.82,0,EXTERNSTR(0,2))COLORFF00FF; DRAWTEXT_FIX(1,0.006,0.71,0,'主题概念')COLORFF88FF;DRAWTEXT_FIX(1,0.06,0.71,0,EXTERNSTR(0,3))COLORFF88FF;所属地区:DRAWTEXT_FIX(1,0.00,0,0,DYBLOCK)COLOR00FFFF;主题投资:DRAWTEXT_FIX(1,0.04,0.00,0,EXTERNSTR(0,10))COLOR0000FF; AA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; BB:=EMA(AA,2);TP:=(CROSS(AA,BB) OR CROSS(C,AA)) AND C>=EMA(C,55);CC:=EMA(CLOSE,12)-EMA(CLOSE,26);DD:=EMA(CC,9);主升启动:=TP AND CROSS(CC,DD) AND (DD<=-0.07)*CC;DRAWICON(主升启动,L*0.996,1);DRAWTEXT(主升启动,L,'↖LSP牛');VAR1:=(C+H+O+L)/4;MA1:=MA(VAR1,3);MAA5:MA(C,5),COLORRED,LINETHICK1;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);BB1:=0;B1万元:=DVOL*DCLOSE/100;B1差:=B1万元-REF(B1万元,1);B2万元:=DVOL*DCLOSE/100;B2比:=B2万元/REF(B2万元,1);净流入万元:=(AAA2-AAA3-0.5*AAA4);PM:=MA(净流入万元,1);PMA:=PM/REF(PM,1)>1;PMB:=REF(PMA,1)<1 AND PMA;密码:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW;二日比:=密码/REF(密码,1);选股:PMB AND 密码>REF(密码,1) AND 二日比>1,COLORRED,NODRAW; DRAWNUMBER(选股=1 ,L,密码),COLORYELLOW;DRAWICON(选股,L*0.975,1);买副图:N:=10;ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,VOL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*600,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000; HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;GG:=MA(HHH,5),LINETHICK1,COLORGREEN;MM:=MA(CCC,5),LINETHICK1,COLORGREEN;WW:=IF(QQ<GG,SS,MM),LINETHICK1,COLOR0000FF;EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK1;★买:=IF(EE-WW<5.6,200,0);RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金/量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯< (0)) AND ZXNH),COLORRED;买:IF(黄金AND RSVV<VARB2-2,180,0),COLOR00FFFF,STICK,LINETHICK1; DRAWTEXT(买>0,99.6,'买'),COLORFFFFFF;STICKLINE(买,0,2,0,9),COLOR0000FF;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);小心: 3.2,COLORYELLOW;风险: 3.5,COLORBLUE;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),0,0),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),0,0),COLOR00FF00;底部:0.2,COLORC6C600;关注:0.5,COLORFF75FF;强弱分界:1.75,COLORRED;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,45,'低进'),COLORFFFFFF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X ANDJ<19,85,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X ANDJ<19,80,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,75,'↑'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,70,'↑'),COLORFF00FF; 小股民:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*1 00,4);庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,90.5,'高出'),COLOR00FF00;DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,80,'●'),COLOR00FF00;高出:100*(CROSS(庄家,小股民) AND 小股民>70),COLOR00FF00,STICK,LINETHICK1;选股源码公式:DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;启动:CROSS(AAA-REF(AAA,1),15);。

通达信指标公式源码 自己用的KD副图指标

通达信指标公式源码 自己用的KD副图指标

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);金:BARSLAST(CROSS(K,D))NODRAW;死:BARSLAST(CROSS(D,K))NODRAW; DRAWICON(CROSS(K,D),D,1); {K上穿D做记号};DRAWICON(CROSS(D,K),K,2); {D下穿K做记号};A80:80,DOTLINE,COLORMAGENTA,LINETHICK1;VAR1:=C-REF(C,1);VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);MA5:=EMA(C,5);{好}MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSL AST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BA RSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) ANDCROSS(VAR2,MA(VAR2,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);STICKLINE(UP,0,3,2,0),COLOR0000FF;STICKLINE(DOWN,0,3,2,0),COLOR00FF00;STICKLINE(BT,0,30,2,0),COLOR000088;STICKLINE(BT,0,30,1,0),COLOR0000CC;STICKLINE(BT,0,30,0.22,0),COLOR0000FF;DRAWTEXT(BT,30,'短牛'),COLOR0000FF;TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) ANDC<HHV(H,21)*0.82;STICKLINE(TJ1,0,20,3,0),COLOR880088;STICKLINE(TJ1,0,20,1.5,0),COLORAA00AA;STICKLINE(TJ1,0,20,0.8,0),COLORCC00CC;STICKLINE(TJ1,0,20,0.2,0),COLORFF00FF;DRAWTEXT(TJ1,20,'中牛'),COLORFF00FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(TJ2,0,10,3,0),COLOR008888;STICKLINE(TJ2,0,10,2,0),COLOR00AAAA;STICKLINE(TJ2,0,10,1,0),COLOR00CCCC;STICKLINE(TJ2,0,10,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,10,'大牛'),COLOR00FFFF;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,100,90,2,0),COLOR008800;STICKLINE(ST,100,90,2,0),COLOR00AA00;STICKLINE(ST,100,90,1,0),COLOR00CC00;STICKLINE(ST,100,90,0.2,0),COLOR00FF00;DRAWTEXT(ST,90,'卖'),COLORFFFFFF;DRAWICON(BT AND TJ1 AND TJ2,5,25);上升:IF(K>REF(K,1),K,DRAWNULL),LINETHICK1,COLORRED;。

通达信老鸭头选股+主图+副图公式源码

通达信老鸭头选股+主图+副图公式源码

通达信老鸭头选股+主图+副图公式源码MA5 := MA(CLOSE,5);MA10 := MA(CLOSE,10);MA60 := MA(CLOSE,60);PDAY1 := BARSLAST(CROSS(MA5,MA60));PDAY2 := BARSLAST(CROSS(MA10,MA60));PDAY3 := BARSLAST(HIGH=HHV(HIGH,PDAY2));PDAY4 := BARSLAST(CROSS(MA10,MA5));PDAY5 := BARSLAST(CROSS(MA5,MA10));A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;A1 AND A2;{主图公式源码}MA5:MA(CLOSE,5),COLOR00FFFF;MA10:MA(CLOSE,10),COLORFF00FF;MA60:MA(CLOSE,60),COLOR00FF00;PDAY1:=BARSLAST(CROSS(MA5,MA60));PDAY2:=BARSLAST(CROSS(MA10,MA60));PDAY3:=BARSLAST((HIGH=HHV(HIGH,PDAY2)));PDAY4:=BARSLAST(CROSS(MA10,MA5));PDAY5:=BARSLAST(CROSS(MA5,MA10));A1:=(PDAY1>PDAY2) AND (PDAY2>PDAY3) AND (PDAY3>PDAY4) AND (PDAY4>PDAY5) AND (PDAY5<5);A2:=(COUNT(CROSS(MA10,MA5),PDAY2)=1);AA:=IF(A1 AND A2 AND (MA(CLOSE,5)>=MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,60)),10,0);BB:=FILTER(A1 AND A2 AND (MA(CLOSE,5)>=MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,60)),5);老鸭头:=IF(AA AND BB,1,0),COLOR00FF00;DRAWICON(AA AND BB,LOW,1),COLORFFFF00;DRAWTEXT(AA AND BB,(LOW)*(0.98),'老鸭头'),COLOR00FFFF;{副图公式源码}VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,60);VAR4:=BARSLAST(CROSS(VAR1,VAR3));VAR5:=BARSLAST(CROSS(VAR2,VAR3));VAR6:=BARSLAST(HIGH=HHV(HIGH,VAR5));VAR7:=BARSLAST(CROSS(VAR2,VAR1));VAR8:=BARSLAST(CROSS(VAR1,VAR2));VAR9:=VAR4>VAR5 AND VAR5>VAR6 AND VAR6>VAR7 AND VAR7>VAR8 AND VAR8<5;VARA:=COUNT(CROSS(VAR2,VAR1),VAR5)=1;老鸭头:VAR9 AND VARA AND VAR3>REF(VAR3,1);DRAWICON( VAR9 AND VARA AND VAR3>REF(VAR3,1),1.1,1);。

通达信指标公式源码通达信主买卖盘控盘力度资金副图指标

通达信指标公式源码通达信主买卖盘控盘力度资金副图指标

通达信主买卖盘控盘力度资金副图指标AB1:=VOL*CLOSE;{A} AB2:=SUM(AB1,1)/SUM(VOL,1);{B} AB3:=EMA(AB2,17);{B1}AB4:=(C*2+H+L)/4*10;{V1B} AB5:=EMA(AB4,13)-EMA(AB4,34);{V2B}AB6:=EMA(AB5,5);{V3B} AB7:=2*(AB5-AB6)*5.5;{V4B}AB8:=(INDEXC*2+INDEXH+INDEXL)/4;{V8B} AB9:=EMA(AB8,13)-EMA(AB8,34);{V9B} AB10:=EMA(AB9,3);{VA} AB11:=(AB9-AB10)/2;{VB} 个股资金:=(AB2-AB3)*100/AB2;主力资金:=AB7; 大资金:=AB11; 红点主力进场:IF(个股资金>0 AND 主力资金>0 AND 大资金>0,-10,DRAWNULL),COLORRED,CIRCLEDOT,LINETHICK1;V1:=EMA(EMA(CLOSE,20),20);{V1} 力度:=(V1-REF(V1,1))/REF(V1,1)*1000,COLORFF00FF,LINETHICK2;{控盘力度} 开始控盘:IF(CROSS(力度,0),20,0),LINETHICK2,COLORYELLOW; 【庄控盘】:IF(力度>REF(力度,1) AND 力度>0,8,0),LINETHICK2,COLORRED; 白线主力减仓:IF(力度< REF(力度,1) AND 力度>0,力度,0),LINETHICK2,COLORWHITE; 绿点主力出场:IF(个股资金<=0 AND 主力资金<=0 AND 大资金<=0,-10,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK1; 主力动态:(个股资金+主力资金+大资金),COLORYELLOW,NODRAW; STICKLINE(主力动态>0,0,主力动态,1,0),COLORFF00FF; STICKLINE(主力动态<=0,0,ABS(主力动态),1,0),COLORGREEN; 比例:(主力动态-REF(主力动态,1))/REF(主力动态,1),NODRAW;底部:0,COLORFFCC66,LINETHICK2; 虚:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,-1,-1),COLOR00C0C0;实:VOL,VOLSTICK; 换手:=VOL/CAPITAL*100; 贰换:SUM(V/CAPITAL*100,20),NODRAW,COLORMAGENTA; 动态市盈:=C/FINANCE(33),COLOR16CDEC,LINETHICK0 ;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK2; 主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*( HIGH-LOW),0-VOL/2)),LINETHICK2; 买卖盘:=-(主动买盘/主动卖盘),NODRAW,COLORYELLOW; 日净入(WS):(主动买盘+主动卖盘)/10000,NODRAW,COLORMAGENTA; STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED; STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00; STICKLINE(换手>0 ,0, 主动买盘,0,0),COLORYELLOW; STICKLINE(换手>0,VOL, 主动买盘, 0,0) ,COLORRED; AHC2:=(HIGH - LOW); AHC3:=ABS((OPEN - CLOSE));AHC4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); AHC5:=(IF((CLOSE >OPEN),OPEN,CLOSE) - LOW); AHC6:=((AHC3 / AHC2) * VOL); AHC7:=((AHC4 / AHC2) * VOL); AHC8:=((AHC5 / AHC2) * VOL); AHCA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100); AHCB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); AHCC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); AB601:=HHV(V,5); AB602:=O>C; AB702:=C>O;AB703:=C=O; AB704:=((SUM(V,5)/AB601)); AB705:=IF(AB704>0.3,1,0);AB706:=IF(AB602 AND AB705,V,0); AB707:=IF(AB702 AND AB705,V,0); 钱出A:=SUM(AB706,5),COLORGREEN,LINETHICK2; 钱入A:=SUM(AB707,5),COLORRED,LINETHICK2; 钱出:=SUM(AB706,20),COLORGREEN,LINETHICK2; 钱入:=SUM(AB707,20),COLORRED,LINETHICK2; 伍净入(SW):(钱入A-钱出A)/100000,COLORYELLOW,NODRAW; 贰净入:(钱入-钱出)/100000,COLORRED,NODRAW; P5:MA(实,5),COLORMAGENTA,LINETHICK2; P35:MA(实,35),COLORBLUE,LINETHICK2;P135:MA(实,135),COLORWHITE,LINETHICK2; DRAWTEXT(CROSS(P5,P135),(V *1.05),'★'),COLORYELLOW; 0,COLORBROWN;。

龙虎榜主副图+选股通达信指标公式源码

龙虎榜主副图+选股通达信指标公式源码

龙虎榜说明1、龙虎榜分析和操作,是非常好的一门艺术;2、别怪市场如何?怨天尤人的,指数不怎么跌,个股跌的稀巴烂,这都不是理由;3、操作股票关键是人,有能力就操作,照样可以赚钱,没能力就学会休息。

4、以上源码全部真实,不加密,你会不会用?会不会安装?无须讨论。

5、需要手工下载数据。

6、也可以自己搞个自动下载小软件,每天会自动下载龙虎榜数据。

7、也无须感谢本人,如果你学会看懂龙虎榜数据,那你赚钱很厉害的。

8、加强自我技术,并非炒股不需要技术,而是有的技术,根本不叫技术,那是理论和瞎瓣。

一、主图{均线系统}M5:MA(CLOSE,5);M10:MA(CLOSE,10);M20:MA(CLOSE,20);M60:MA(CLOSE,60);M120:MA(CLOSE,120);M200:MA(CLOSE,200);STICKLINE(CLOSE/REF(C,1)>=1.097,O,C,1,0),COLORYELLOW;{龙虎榜}LHB:=SIGNALS_USER(490,0)-SIGNALS_USER(491,0); {龙虎榜净买入额} DRAWTEXT(LHB>0 AND LHB<10000,L*0.95,VARCAT(VARCAT('▲龙虎:',VAR2STR(LHB,0)),'万')),COLORMAGENTA;DRAWTEXT(LHB>10000,L*0.95,VARCAT(VARCAT('▲龙虎: ',VAR2STR(LHB/10000,2)),'亿')),COLORMAGENTA;DRAWTEXT(LHB<0 AND LHB>-10000,L*0.95,VARCAT(VARCAT('▲龙虎:',VAR2STR(LHB,0)),'万')),COLORGREEN;DRAWTEXT(LHB<-10000,L*0.95,VARCAT(VARCAT('▲龙虎: ',VAR2STR(LHB/10000,2)),'亿')),COLORGREEN;二、副图uu:0 1 0.97总买:=SIGNALS_USER(490,0);总卖:=-ABS(SIGNALS_USER(491,0));STICKLINE(总买>0,0,总买,0.5,0),COLORRED;STICKLINE(总卖<0,0,总卖,0.5,0),COLORGREEN;DRAWTEXT(总买>0 AND 总买<10000,总买/1.05,VARCAT(VARCAT('总买:',VAR2STR(总买,2)),'万'));DRAWTEXT(总买>10000,总买/1.05,VARCAT(VARCAT('总买:',VAR2STR(总买/10000,2)),'亿'));DRAWTEXT(总卖<0 AND 总卖>-10000,总卖/1.05,VARCAT(VARCAT('总卖:',VAR2STR(总卖,2)),'万'));DRAWTEXT(总卖<-10000,总卖/1.05,VARCAT(VARCAT('总卖:',VAR2STR(总卖/10000,2)),'亿'));上海金碧路_买:=SIGNALS_USER(1,0),NODRAW;上海金碧路_卖:=-ABS(SIGNALS_USER(2,0)),NODRAW;金碧路:SIGNALS_USER(1,0)-SIGNALS_USER(2,0),NODRAW;STICKLINE(上海金碧路_买>0,0,上海金碧路_买,0.5,0),COLORFF0080;STICKLINE(上海金碧路_卖<0,0,上海金碧路_卖,0.5,0),COLORFF0080;深圳益田路_买:=SIGNALS_USER(3,0),NODRAW;深圳益田路_卖:=-ABS(SIGNALS_USER(4,0)),NODRAW;益田路:SIGNALS_USER(3,0)-SIGNALS_USER(4,0),NODRAW;STICKLINE(深圳益田路_买>0,0,深圳益田路_买,0.5,0),COLORFF80FF;STICKLINE(深圳益田路_卖<0,0,深圳益田路_卖,0.5,0),COLORFF80FF;临安万马路_买:=SIGNALS_USER(5,0),NODRAW;临安万马路_卖:=-ABS(SIGNALS_USER(6,0)),NODRAW;万马路:SIGNALS_USER(5,0)-SIGNALS_USER(6,0),NODRAW; STICKLINE(临安万马路_买>0,0,临安万马路_买,0.5,0),COLORDB518B; STICKLINE(临安万马路_卖<0,0,临安万马路_卖,0.5,0),COLORDB518B;无锡清扬路_买:=SIGNALS_USER(7,0),NODRAW;无锡清扬路_卖:=-ABS(SIGNALS_USER(8,0)),NODRAW;清扬路:SIGNALS_USER(7,0)-SIGNALS_USER(8,0),NODRAW; STICKLINE(无锡清扬路_买>0,0,无锡清扬路_买,0.5,0),COLORFF0080; STICKLINE(无锡清扬路_卖<0,0,无锡清扬路_卖,0.5,0),COLORFF0080;成都南一环路_买:=SIGNALS_USER(9,0),NODRAW;成都南一环路_卖:=-ABS(SIGNALS_USER(10,0)),NODRAW;南一环路:SIGNALS_USER(9,0)-SIGNALS_USER(10,0),NODRAW; STICKLINE(成都南一环路_买>0,0,成都南一环路_买,0.5,0),COLORFF8000; STICKLINE(成都南一环路_卖<0,0,成都南一环路_卖,0.5,0),COLORFF8000; 上海淮海中路_买:=SIGNALS_USER(11,0),NODRAW;上海淮海中路_卖:=-ABS(SIGNALS_USER(12,0)),NODRAW;上海淮海中路:SIGNALS_USER(11,0)-SIGNALS_USER(12,0),NODRAW; STICKLINE(上海淮海中路_买>0,0,上海淮海中路_买,0.5,0),COLORFF8000; STICKLINE(上海淮海中路_卖<0,0,上海淮海中路_卖,0.5,0),COLORFF8000; 成都北一环_买:=SIGNALS_USER(13,0),NODRAW;成都北一环_卖:=-ABS(SIGNALS_USER(14,0)),NODRAW;成都北一环:SIGNALS_USER(13,0)-SIGNALS_USER(14,0),NODRAW; STICKLINE(成都北一环_买>0,0,成都北一环_买,0.5,0), COLOR1471CD; STICKLINE(成都北一环_卖<0,0,成都北一环_卖,0.5,0), COLOR1471CD;上海保定路_买:=SIGNALS_USER(15,0),NODRAW;上海保定路_卖:=-ABS(SIGNALS_USER(16,0)),NODRAW;上海保定路:SIGNALS_USER(15,0)+SIGNALS_USER(16,0),NODRAW; STICKLINE(上海保定路_买>0,0,上海保定路_买,0.5,0),COLORFFFF80; STICKLINE(上海保定路_卖<0,0,上海保定路_卖,0.5,0),COLORFFFF80;厦门厦禾路_买:=SIGNALS_USER(17,0),NODRAW;厦门厦禾路_卖:=-ABS(SIGNALS_USER(18,0)),NODRAW;厦禾路:SIGNALS_USER(17,0)-SIGNALS_USER(18,0),NODRAW; STICKLINE(厦门厦禾路_买>0,0,厦门厦禾路_买,0.5,0), COLOR800080; STICKLINE(厦门厦禾路_卖<0,0,厦门厦禾路_卖,0.5,0), COLOR800080;上海互联网路_买:=SIGNALS_USER(19,0),NODRAW;上海互联网路_卖:=-ABS(SIGNALS_USER(20,0)),NODRAW;上海互联网路:SIGNALS_USER(19,0)-SIGNALS_USER(20,0),NODRAW;STICKLINE(上海互联网路_买>0,0,上海互联网路_买,0.5,0),COLOR8080FF;STICKLINE(上海互联网路_卖<0,0,上海互联网路_卖,0.5,0),COLOR8080FF;上海武定路_买:=SIGNALS_USER(21,0),NODRAW;上海武定路_卖:=-ABS(SIGNALS_USER(22,0)),NODRAW;武定路:SIGNALS_USER(21,0)-SIGNALS_USER(22,0),NODRAW;STICKLINE(上海武定路_买>0,0,上海武定路_买,0.5,0),COLOR0080FF;STICKLINE(上海武定路_卖<0,0,上海武定路_卖,0.5,0),COLOR0080FF;上海古北路_买:=SIGNALS_USER(23,0),NODRAW;上海古北路_卖:=-ABS(SIGNALS_USER(24,0)),NODRAW;古北路:SIGNALS_USER(23,0)-SIGNALS_USER(24,0),NODRAW;STICKLINE(上海古北路_买>0,0,上海古北路_买,0.5,0),COLOR8000FF;STICKLINE(上海古北路_卖<0,0,上海古北路_卖,0.5,0),COLOR8000FF;机构专用_买:=SIGNALS_USER(498,0),NODRAW;机构专用_卖:=-ABS(SIGNALS_USER(499,0)),NODRAW;机构专用:SIGNALS_USER(498,0)-SIGNALS_USER(499,0),NODRAW;STICKLINE(机构专用_买>0,0,机构专用_买,0.5,0),COLOR00FFFF;STICKLINE(机构专用_卖<0,0,机构专用_卖,0.5,0),COLOR00FFFF;AB:=IF(总买!=DRAWNULL,1,UU),NODRAW;DRAWTEXT(临安万马路_买>0 AND 临安万马路_买<10000,临安万马路_买*AB,VARCAT(VARCAT('—临安万马路:',VAR2STR(临安万马路_买,2)),'万')),COLORYELLOW; DRAWTEXT(临安万马路_买>10000,临安万马路_买*AB,VARCAT(VARCAT('—临安万马路:',VAR2STR(临安万马路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(临安万马路_卖<0 AND 临安万马路_卖>-10000,临安万马路_卖*AB,VARCAT(VARCAT('—临安万马路:',VAR2STR(临安万马路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(临安万马路_卖<-10000,临安万马路_卖*AB,VARCAT(VARCAT('—临安万马路:',VAR2STR(临安万马路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(深圳益田路_买>0 AND 深圳益田路_买<10000,深圳益田路_买*AB,VARCAT(VARCAT('—深圳益田路:',VAR2STR(深圳益田路_买,2)),'万')),COLORYELLOW; DRAWTEXT(深圳益田路_买>10000,深圳益田路_买*AB,VARCAT(VARCAT('—深圳益田路:',VAR2STR(深圳益田路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(深圳益田路_卖<0 AND 深圳益田路_卖>-10000,深圳益田路_卖*AB,VARCAT(VARCAT('—深圳益田路:',VAR2STR(深圳益田路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(深圳益田路_卖<-10000,深圳益田路_卖*AB,VARCAT(VARCAT('—深圳益田路:',VAR2STR(深圳益田路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(机构专用_买>0 AND 机构专用_买<10000,机构专用_买*AB,VARCAT(VARCAT('—机构专用:',VAR2STR(机构专用_买,2)),'万')),COLORYELLOW; DRAWTEXT(机构专用_买>10000,机构专用_买*AB,VARCAT(VARCAT('—机构专用:',VAR2STR(机构专用_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(机构专用_卖<0 AND 机构专用_卖>-10000,机构专用_卖*AB,VARCAT(VARCAT('—机构专用:',VAR2STR(机构专用_卖,2)),'万')),COLORYELLOW; DRAWTEXT(机构专用_卖<-10000,机构专用_卖*AB,VARCAT(VARCAT('—机构专用:',VAR2STR(机构专用_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(成都南一环路_买>0 AND 成都南一环路_买<10000,成都南一环路_买*AB,VARCAT(VARCAT('—成都南一环路:',VAR2STR(成都南一环路_买,2)),'万')),COLORYELLOW;DRAWTEXT(成都南一环路_买>10000,成都南一环路_买*AB,VARCAT(VARCAT('—成都南一环路:',VAR2STR(成都南一环路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(成都南一环路_卖<0 AND 成都南一环路_卖>-10000,成都南一环路_卖*AB,VARCAT(VARCAT('—成都南一环路:',VAR2STR(成都南一环路_卖,2)),'万')),COLORYELLOW;DRAWTEXT(成都南一环路_卖<-10000,成都南一环路_卖*AB,VARCAT(VARCAT('—成都南一环路:',VAR2STR(成都南一环路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(成都北一环_买>0 AND 成都北一环_买<10000,成都北一环_买*AB,VARCAT(VARCAT('—成都北一环:',VAR2STR(成都北一环_买,2)),'万')),COLORYELLOW; DRAWTEXT(成都北一环_买>10000,成都北一环_买*AB,VARCAT(VARCAT('—成都北一环:',VAR2STR(成都北一环_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(成都北一环_卖<0 AND 成都北一环_卖>-10000,成都北一环_卖*AB,VARCAT(VARCAT('—成都北一环:',VAR2STR(成都北一环_卖,2)),'万')),COLORYELLOW; DRAWTEXT(成都北一环_卖<-10000,成都北一环_卖*AB,VARCAT(VARCAT('—成都北一环:',VAR2STR(成都北一环_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海淮海中路_买>0 AND 上海淮海中路_买<10000,上海淮海中路_买*AB,VARCAT(VARCAT('—上海淮海中路:',VAR2STR(上海淮海中路_买,2)),'万')),COLORYELLOW;DRAWTEXT(上海淮海中路_买>10000,上海淮海中路_买*AB,VARCAT(VARCAT('—上海淮海中路:',VAR2STR(上海淮海中路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海淮海中路_卖<0 AND 上海淮海中路_卖>-10000,上海淮海中路_卖*AB,VARCAT(VARCAT('—上海淮海中路:',VAR2STR(上海淮海中路_卖,2)),'万')),COLORYELLOW;DRAWTEXT(上海淮海中路_卖<-10000,上海淮海中路_卖*AB,VARCAT(VARCAT('—上海淮海中路:',VAR2STR(上海淮海中路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海互联网路_买>0 AND 上海互联网路_买<10000,上海互联网路_买*AB,VARCAT(VARCAT('—上海互联网路:',VAR2STR(上海互联网路_买,2)),'万')),COLORYELLOW;DRAWTEXT(上海互联网路_买>10000,上海互联网路_买*AB,VARCAT(VARCAT('—上海互联网路:',VAR2STR(上海互联网路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海互联网路_卖<0 AND 上海互联网路_卖>-10000,上海互联网路_卖*AB,VARCAT(VARCAT('—上海互联网路:',VAR2STR(上海互联网路_卖,2)),'万')),COLORYELLOW;DRAWTEXT(上海互联网路_卖<-10000,上海互联网路_卖*AB,VARCAT(VARCAT('—上海互联网路:',VAR2STR(上海互联网路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海保定路_买>0 AND 上海保定路_买<10000,上海保定路_买*AB,VARCAT(VARCAT('—上海保定路:',VAR2STR(上海保定路_买,2)),'万')),COLORYELLOW; DRAWTEXT(上海保定路_买>10000,上海保定路_买*AB,VARCAT(VARCAT('—上海保定路:',VAR2STR(上海保定路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海保定路_卖<0 AND 上海保定路_卖>-10000,上海保定路_卖*AB,VARCAT(VARCAT('—上海保定路:',VAR2STR(上海保定路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(上海保定路_卖<-10000,上海保定路_卖*AB,VARCAT(VARCAT('—上海保定路:',VAR2STR(上海保定路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(厦门厦禾路_买>0 AND 厦门厦禾路_买<10000,厦门厦禾路_买*AB,VARCAT(VARCAT('—厦门厦禾路:',VAR2STR(厦门厦禾路_买,2)),'万')),COLORYELLOW; DRAWTEXT(厦门厦禾路_买>10000,厦门厦禾路_买*AB,VARCAT(VARCAT('—厦门厦禾路:',VAR2STR(厦门厦禾路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(厦门厦禾路_卖<0 AND 厦门厦禾路_卖>-10000,厦门厦禾路_卖*AB,VARCAT(VARCAT('—厦门厦禾路:',VAR2STR(厦门厦禾路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(厦门厦禾路_卖<-10000,厦门厦禾路_卖*AB,VARCAT(VARCAT('—厦门厦禾路:',VAR2STR(厦门厦禾路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海武定路_买>0 AND 上海武定路_买<10000,上海武定路_买*AB,VARCAT(VARCAT('—上海武定路:',VAR2STR(上海武定路_买,2)),'万')),COLORYELLOW; DRAWTEXT(上海武定路_买>10000,上海武定路_买*AB,VARCAT(VARCAT('—上海武定路:',VAR2STR(上海武定路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海武定路_卖<0 AND 上海武定路_卖>-10000,上海武定路_卖*AB,VARCAT(VARCAT('—上海武定路:',VAR2STR(上海武定路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(上海武定路_卖<-10000,上海武定路_卖*AB,VARCAT(VARCAT('—上海武定路:',VAR2STR(上海武定路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海金碧路_买>0 AND 上海金碧路_买<10000,上海金碧路_买*AB,VARCAT(VARCAT('—上海金碧路:',VAR2STR(上海金碧路_买,2)),'万')),COLORYELLOW; DRAWTEXT(上海金碧路_买>10000,上海金碧路_买*AB,VARCAT(VARCAT('—上海金碧路:',VAR2STR(上海金碧路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海金碧路_卖<0 AND 上海金碧路_卖>-10000,上海金碧路_卖*AB,VARCAT(VARCAT('—上海金碧路:',VAR2STR(上海金碧路_卖,2)),'万')),COLORYELLOW;DRAWTEXT(上海金碧路_卖<-10000,上海金碧路_卖*AB,VARCAT(VARCAT('—上海金碧路:',VAR2STR(上海金碧路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(无锡清扬路_买>0 AND 无锡清扬路_买<10000,无锡清扬路_买*AB,VARCAT(VARCAT('—无锡清扬路:',VAR2STR(无锡清扬路_买,2)),'万')),COLORYELLOW; DRAWTEXT(无锡清扬路_买>10000,无锡清扬路_买*AB,VARCAT(VARCAT('—无锡清扬路:',VAR2STR(无锡清扬路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(无锡清扬路_卖<0 AND 无锡清扬路_卖>-10000,无锡清扬路_卖*AB,VARCAT(VARCAT('—无锡清扬路:',VAR2STR(无锡清扬路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(无锡清扬路_卖<-10000,无锡清扬路_卖*AB,VARCAT(VARCAT('—无锡清扬路:',VAR2STR(无锡清扬路_卖/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海古北路_买>0 AND 上海古北路_买<10000,上海古北路_买*AB,VARCAT(VARCAT('—上海古北路:',VAR2STR(上海古北路_买,2)),'万')),COLORYELLOW; DRAWTEXT(上海古北路_买>10000,上海古北路_买*AB,VARCAT(VARCAT('—上海古北路:',VAR2STR(上海古北路_买/10000,2)),'亿')),COLORYELLOW;DRAWTEXT(上海古北路_卖<0 AND 上海古北路_卖>-10000,上海古北路_卖*AB,VARCAT(VARCAT('—上海古北路:',VAR2STR(上海古北路_卖,2)),'万')),COLORYELLOW; DRAWTEXT(上海古北路_卖<-10000,上海古北路_卖*AB,VARCAT(VARCAT('—上海古北路:',VAR2STR(上海古北路_卖/10000,2)),'亿')),COLORYELLOW;三、选股第N天前上榜0 500 1龙虎榜:=SIGNALS_USER(490,0) OR SIGNALS_USER(491,0);选出上榜的个股:REF(龙虎榜,第N天前上榜-1) AND V!=0;。

通达信指标公式源码必赚钱主图指标

通达信指标公式源码必赚钱主图指标

DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黄金线实体中间,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黄金线实体中间1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黄金线实体中间2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黄金线实体中间3,4);。

通达信指标公式源码 红球预警副图主图选股指标

通达信指标公式源码 红球预警副图主图选股指标

VAR55:=EMA(EMA(EMA(CLOSE,8),13),62);VAR56:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR57:=(MA(CLOSE,20) + (2 * STD(CLOSE,20)));VAR58:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),7,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),7,1)) * 100);卖出1:=FILTER(CROSS(79,VAR58),4);MA21:=REF(CLOSE,1);ZX:=((SMA(MAX((CLOSE - MA21),0),6,1) / SMA(ABS((CLOSE - MA21)),6,1)) * 100);卖出2:=CROSS(84,ZX);卖出3:=CROSS(90,RSI);卖出:=卖出1 OR 卖出2 OR 卖出3;DRAWICON(卖出,(LOW * 1.1),12);A:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);A1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;A3:=IF(K2!=2,EMA((EMA(C,5)+EMA(C,6)+EMA( C,7))/3,3),DRAWNULL),COL ORCYAN,LINETHICK3;{COLOR1030FF;}A4:=IF(K2!=2,EMA((EMA(C,7)+EMA(C,9)+EMA( C,11))/3,3),DRAWNULL),COLOR1040FF;A5:=IF(K2!=2,EMA((EMA(C,9)+EMA(C,11)+EMA( C,13))/3,3),DRAWNULL)COLOR1050FF;A6:=IF(K2!=2,EMA((EMA(C,11)+EMA(C,13)+EMA( C,15))/3,3),DRAWNULL)COLOR1060FF;A7:=IF(K2!=2,EMA((EMA(C,13)+EMA(C,15)+EMA( C,17))/3,3),DRAWNULL)COLOR1070FF;A8:=IF(K2!=2,EMA((EMA(C,15)+EMA(C,17)+EMA( C,19))/3,3),DRAWNULL)COLOR1080FF;A9:=IF(K2!=2,EMA((EMA(C,17)+EMA(C,19)+EMA( C,21))/3,3),DRAWNULL),COLORLIMAGEN TA;{COLOR1080EF;}{好}A10D:=IF(K2!=2,EMA((EMA(C,19)+EMA(C,21)+EMA( C,23))/3,3),DRAWNULL),COLORLIMAGEN TA;{COLOR10C0FF;}A11D:=IF(K2!=2,EMA((EMA(C,21)+EMA(C,23)+EMA( C,25))/3,3),DRAWNULL),COLORWHITE,LI NETHICK2;A15D:IF(K2!=2,A-(A1-A*0.977),DRAWNULL),COLORBLUE,LINETHICK3;{COLORFF0000;原997} A24D:=IF(K2!=2, A-(A10D-A),DRAWNULL)COLORF6D030;A25D:=IF(K2!=2, A-(A11D-A*0.987),DRAWNULL)COLORF5F030;{原997}AK2:=IF(K2=2,EMA((EMA(C,5)+EMA(C,7)+EMA( C,9))/3,3),DRAWNULL);AK1:=IF(K2=2,A-(A1-A*0.987),DRAWNULL);{原997}{5日变色线}越过成仙M240:MA(C,240),COLORGRAY,LINETHICK1;M144:=MA(C,144),COLORWHITE,LINETHICK1;M88:=MA(C,88),COLORLIGRAY,LINETHICK1;越过有道M120:MA(C,120),COLORMAGENTA,LINETHICK1;{越过强势M60:MA(C,60),COLORGREEN,LINETHICK3;}M30:=MA(C,27),COLORGREEN,LINETHICK2;M20:=MA(C,17),COLORMAGENTA,LINETHICK2;M10:=MA(C,10),COLORWHITE,LINETHICK1;M5:MA(C,3),COLORRED,LINETHICK3;BB55:=ATAN((M5/REF(M5,1)-1)*100)*180/3.1416;IF(BB55>30 AND M5>REF(M5,1), M5,DRAWNULL),COLORRED,LINETHICK3; BB100:=ATAN((M10/REF(M10,1)-1)*100)*180/3.1416;IF(BB55<0 AND M5<REF(M5,1), M5,DRAWNULL),COLORCYAN,LINETHICK2;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));{变色下插支撑线}{YM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3, 40);YM1:=EMA(YM,1),NODRAW;YM2:=EMA(YM1,2),NODRAW;DRAWBAND(YM1,RGB(240,120,80),YM2,RGB(40,240,50));{变色条。

通达信机构买卖(副图)选股指标公式

通达信机构买卖(副图)选股指标公式

通达信机构买卖(副图)选股指标公式IF(macd.DEA<0,C,DRAWNULL),COLORCYAN,LINETHICK9;XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARS COUNT(CLOSE));主力:=expma(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);底:=1;1.02,NODRAW;高:=1.03;DRAWTEXT(crOSS(主力,1.02),C*0.999,'-拉升'),COLORGREEN;DRAWICON(CROSS(主力,1.04),C,24);DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORMAGENTA;A1:=(vol/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));机构买盘:=(A2),LINETHICK2;机构卖盘:=(A3),LINETHICK2;散户买盘:=(A4);散户卖盘:=(A5);DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORWHITE;DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORWHITE;DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;H1:=MAX(DYnaINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORCYAN;支撑:=L1+P1*0.5/8,COLORLIMAGENTA;DRAWTEXT(LONGCROSS(支撑,C,2),C,'买'),COLOR00FFFF;DRAWTEXT(LONGCROSS(C,阻力,2),C,'出'),COLORCYAN;CC:=C;TT:=BARSCOUNT(CC);均价:SUM(V*C,0)/SUM(V,0),COLORCYAN;均:=MA(CC,TT);DRAWICON(CROSS(均价,均),均价,1);突破:=REF(ema(C,20),1);A1X:=(EMA(C,10)-突破)/突破*100;多方:=IF(A1X>=0,REF(EMA(C,10),BArslAST(CROSS(A1X,0))+1),DRA WNULL);空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRA WNULL);STICKLINE(A1X>=0,多方,突破,2,0),COLOR0000FF;STICKLINE(A1X<0,空方,突破,2,0),COLOR00FF00;量价:=(VOL/CLOSE)/3;B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);B3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);B6:=B2+B3;DD1:=1;比:=B2/B3;BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%');BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%');BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(B2-B3))/B6,0)),'%');DRAWTEXT_FIX(DD1=1,0,0.04,0,BBB1),COLORWHITE;DRAWTEXT_FIX(DD1=1,0,0.12,0,BBB2),COLORCYAN;DRAWTEXT_FIX(DD1=1,0,0.20,0,BBB3),COLOR00FFFF;中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;DRAWTEXT(比<1.1,(DYNAINFO(5)+DYNAINFO(6))/2,'○'),COLORCYAN;DRAWTEXT(比>1.5,(DYNAINFO(5)+DYNAINFO(6))/2,'○'),COL ORGREEN;DRAWTEXT(比>2,(DYNAINFO(5)+DYNAINFO(6))/2,'○'),COLO RLIMAGENTA;DRAWTEXT(比>2.5,(DYNAINFO(5)+DYNAINFO(6))/2,'○'),COL ORWHITE;DRAWTEXT((比>1.1 AND 中期线<5),(DYNAINFO(5)+DYNAINFO(6))/2,'●'),COLORRED;DRAWTEXT((比<1.1 AND 中期线>98.0),(DYNAINFO(5)+DYNAINFO(6))/2,'●'),COLORRED;DRAWTEXT((比>1.1 AND 中期线<5),C,'--机会'),COLORBLUE;DRAWTEXT((比<1.1 AND 中期线>98.0),C,'--风险'),COLORBLUE;上涨家数:IF(PERIOD=0 ,'分时引.上涨家数#DAY',DRAWNULL),NODRAW;下跌家数:IF(PERIOD=0 ,'分时引.下跌家数#DAY',DRAWNULL),NODRAW;DRAWTEXT_FIX(1,0.160,1-0.12,0,STRCAT('上涨家数:',CON2STR(上涨家数,0))),COLOR0000FF;DRAWTEXT_FIX(1,0.650,1-0.12,0,STRCAT('下跌家数:',CON2STR(下跌家数,0))),COLOR00FF00;。

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZSHTL:=SHCM/(ZLCM+SHCM)*100;ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZCMZL:=MA(ZLCM+SHCM,13);ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);ZSHJJ:=EMA(ZSHTL,89);ZZLJJ:=EMA(ZZLKP,89);ZJLRQD:=INTPART(ZZLKP-ZZLJJ);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);STICKLINE(REF(ZSHTL,1)>90 AND ZSHTL<90,ZSHTL,0,4,0),COLOR9966FF;STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAA AAA; STICKLINE(C>0,ZZLKP,0,3,0),COLORBLUE;STICKLINE(ZZLKP>75,ZZLKP,0,3,0),COLORFFFFFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLORRED; STICKLINE(ZSHTL>=90,ZZLKP,0,3,0),COLORYELLOW;散户套牢系数:INTPART(ZSHTL),NODRAW;主力控盘系数:INTPART(ZZLKP),COLORCYAN,NODRAW;资金流入强度:ZJLRQD,NODRAW;RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLD:=MOD(TFXXS,10);TGLXS:=(TFXXS-REF(TFXXS,1))*10;TYCFX:=TFXXS+TGLXS;乖离系数:TGLXS,NODRAW,COLORGREEN;STICKLINE(TGLXS>0,150,150+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,150,150+TGLXS,2.5,0),COLOR000099;STICKLINE(TGLXS>0,150,150+TGLXS,2,0),COLOR0000AA;STICKLINE(TGLXS>0,150,150+TGLXS,1.5,0),COLOR0000BB;STICKLINE(TGLXS>0,150,150+TGLXS,1.0,0),COLOR0000DD; STICKLINE(TGLXS>0,150,150+TGLXS,0.5,0),COLOR0000FF;STICKLINE(TGLXS<0,150,150+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,150,150+TGLXS,2.5,0),COLOR00AA00;STICKLINE(TGLXS<0,150,150+TGLXS,2,0),COLOR00BB00;STICKLINE(TGLXS<0,150,150+TGLXS,1.5,0),COLOR00DD00; STICKLINE(TGLXS<0,150,150+TGLXS,1,0),COLOR00FF00;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,150,150+TGLXS,8,0),COLORRED;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)<0,150,150+TGLXS,8,0),COLORGREEN;风险系数:TFXXS,LINETHICK2,COLORYELLOW;预测风险:TYCFX,LINETHICK1,COLORCYAN;市场筹码总量:ZCMZL,COLORGREEN,LINETHICK1;上市:FINANCE(42)/10000,NODRAW,COLORYELLOW;STICKLINE(TGLXS>0 AND 100+TGLXS<="" p="">100+REF(TGLXS,1)>=REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0), COLORYELLO W;STICKLINE(TGLXS<0 AND 100+TGLXS>=TYCFX AND100+REF(TGLXS,1)<="" p="">T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZLT5:=CONST( ZCMZLT6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<="" and="" p="" tfxxs<="100">T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP ANDZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) ANDZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1,0.58,TS1,0,'★主力动向监控:主力增仓'),COLORRED; DRAWTEXT_FIX(T2,0.58,TS2,0,'★主力动向监控:主力减仓'),COLORMAGENTA; DRAWTEXT_FIX(T3,0.58,TS3,0,'★主力动向监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4,0.58,TS4,0,'★主力动向监控:主力回补'),COLORFF9933; DRAWTEXT_FIX(T5,0.58,TS5,0,'★主力动向监控:主力出逃'),COLORGREEN; DRAWTEXT_FIX(T6,0.78,TS6,0,'★操作风险提示:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7,0.78,TS7,0,'★操作风险提示:卖出风险'),COLORCYAN; DRAWTEXT_FIX(T8,0.78,TS8,0,'★操作风险提示:追涨博弈'),COLORRED;DRAWTEXT_FIX(T9,0.78,TS9,0,'★操作风险提示:稳健持股'),COLORMAGENTA; DRAWTEXT_FIX(T10,0.76,TS10,0,'★操作风险提示:盘跌减仓'),COLORWHITE; DRAWTEXT_FIX(T11,0.76,TS11,0,'★操作风险提示:杀跌空仓'),COLORGREEN; DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑'),COLOR66FFCC;DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:铸顶风险区'),COLO RCYAN; DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力'),COLORRED; DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力'),COLORYELLOW;DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户'),COLORGREEN;DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越'),COLOR3399FF;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档