绝版量柱通达信指标公式源码
通达信指标公式源码 黄柱红柱底 选股源码 无未来
用法:当日K线出现黄柱就买进,是激进型的做法当日K线上先出现黄柱后隔天再出现红柱就坚决追进。
当然了指标不是万能的,但没有指标是不能的。
AA:=C<3;MM:=3>REF(3,1) AND REF(3,1)<REF(3,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) ORREF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) AND CROSS(VAR9,MA(VAR9,2)))=1,5);VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(MA(VAR9,2),VAR9))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR4;买3:=(VAR14 OR VAR15) AND VAR2;买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);黄柱:(金叉AND VAR4) OR (金叉AND VAR2) OR (金叉ANDVAR11),NODRAW,COLORYELLOW;STICKLINE(金叉,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000066;DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 黄柱AND MM,LOW-0.05,15); DRAWICON(死叉OR CROSS(50,VAR9) AND AA AND K>50,HIGH+0.01,2);X1:=(C+L+H)/3;BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;EMA3:=EMA(C,3);VAR81:=1;VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20;高死叉出:=90;VAR84:=LLV(LOW,5);VAR85:=HHV(HIGH,4);C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)*VAR81);C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81);条件1:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);底R:CROSS(C1,C2) AND REF(C1,1)<20,NODRAW,COLORLIMAGENTA;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(条件0,H*1.02,'S'),COLORWHITE;DRAWTEXT(底R,L*0.98,'┇底'),COLORLIMAGENTA;DRAWTEXT(TJ4 AND AA,H*1.02,'逃');STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,2,0),COLORRED;红柱:((C-REF(C,1))/REF(C,1)>0.095),NODRAW,COLORRED;水平面:=EMA(CLOSE,89);AAA:=(3*C+H+L+O)/6;短趋:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3 *REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3;TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趋;立桩量:=FILTER(TTJ1,5);TTJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TTJ2=1;TTJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天:=TTJ3=1;成立:=三天AND 突破;VAR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE ,12)-EMA(DCLOSE,26)),9)))*2),4)<0) AND((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12) -EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)- EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))- (EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2))) AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(D CLOSE,26)),9)))*2),3)));DRAWTEXT(VAR90 AND MM,L*0.98,'买'),COLORRED;。
通达信指标公式源码立桩量主图指标
{【立桩量主图】}水平面:MA(CLOSE,89),COLORFFA2FF;BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4; IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2;IF(BBI<REF(BBI,1),BBI,DRAWNULL),COLORYELLOW,LINETHICK2;MA1:MA(CLOSE,24),COLOR00E300,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(V OL,1)-1);STICKLINE(V2>=1,O,C,2,0),COLORYELLOW;MA13:=MA(CLOSE,13);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);A1:=MIN(O,C);B1:=ABS(O-C);T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10); STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);{DRAWTEXT(CROSS(FF,MA15),(LOW * 0.97),'底背离'),COLORA6E500; DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'顶背离'),COLOR1880FF;} STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,2,0),COLOR7F017F;STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,2,0),COLORGREEN;T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);DRAWTEXT(T2,H*1.05,'反转'),COLORWHITE;STICKLINE(T2,O,C,2,0),COLORRED;T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);STICKLINE(REF(T12,1) OR REF(T12,2) ORREF(T12,3),H1,H1,4,-1),COLORWHITE;STICKLINE(REF(T12,1) OR REF(T12,2) ORREF(T12,3),L1,L1,4,-1),COLORWHITE;{T11:=REF(T12,3) AND COUNT(L<L1,4)=0 AND COUNT(L>H1,4)>1; DRAWTEXT(T11,H*1.05,'三天'),COLORWHITE;STICKLINE(T11,O,C,2,0),COLORFF00FF;}{(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) };L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));T11:=T111 AND REF(T111,1)=0;STICKLINE(T11,O,C,2,0),COLORFF00FF;高:=REF(HHV(H,N),M);低:=REF(LLV(L,N),M);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;顶点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE; REFDATE(H19,DATE),POINTDOT,LINETHICK2,COLORYELLOW;REFDATE(H38,DATE),POINTDOT,LINETHICK2,COLORGREEN;REFDATE(H中,DATE),POINTDOT,LINETHICK2,COLORRED; REFDATE(H61,DATE),POINTDOT,LINETHICK2,COLORMAGENTA; REFDATE(H80,DATE),POINTDOT,LINETHICK2,COLORBLUE;。
通达信技术指标公式源码大全
通达信技术指标公式源码大全一、简介本文档提供了通达信技术指标公式源码的大全,旨在帮助用户了解和使用通达信软件中的各种技术指标。
二、技术指标公式源码以下是一些常用的技术指标公式源码:1. 移动平均线(MA):C := CLOSE;MA(C, n)2. 相对强弱指标(RSI):LC := REF(C, 1);R := SMA(MAX(C-LC, 0), n, 1) / SMA(ABS(C-LC), n, 1) * 100;RSI := SMA(R, m, 1);3. 布林线(BOLL):MA(C, n);BOLLUP := MA(C, n) + k * STD(C, n);BOLLDOWN := MA(C, n) - k * STD(C, n);4. 动量指标(MOM):MOM := C - REF(C, n);5. 成交量指标(VOL):VOL := V;6. 相对强弱指数(RSI):RSV:=(CLOSE-LLV(LOW,M))/((HHV(HIGH,M)-LLV(LOW, M))*100);;7. 平均成交量(AVP):AVP:=(C+M+O+L)/4*V*T/F;三、使用指南使用以上的技术指标公式源码,可以在通达信软件中进行相关指标的计算和显示。
用户可以根据自己的需要,调整指标参数和相关代码,以获得所需的分析结果。
请注意,以上源码仅供参考,具体使用时需要根据实际情况进行修改和优化。
结论本文档提供了通达信技术指标公式源码的大全,希望能对用户在通达信软件中应用技术指标提供帮助。
用户可以根据实际需求,选择合适的指标公式源码进行使用。
通达信资金量能柱及选股指标公式
通达信资金量能柱及选股指标公式换手:=V*100/CAPITAL;主力:=MA(换手,4);机构:=MA(换手,9);游资:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+机构+游资+散户)/4;主力能量:(主力-均量)COLORMAGENTA,NODRAW;机构能量:(机构-均量)COLORYELLOW,NODRAW;游资能量:(游资-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+3,4,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+3,4,0),COLORYELLOW;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+3,4,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),'主力'),COLORMAGENTA;操盘1:STICKLINE(机构能量>=0 AND 机构能量>=REF(机构能量,1),9.6,9.6+3,4,0),COLORRED;减仓1:STICKLINE(机构能量>=0 AND 机构能量< REF(机构能量,1),9.6,9.6+3,4,0),COLORYELLOW;反弹1:STICKLINE(机构能量<0 AND 机构能量>=REF(机构能量,1),9.6,9.6+3,4,0),COLORGREEN;寻底1:STICKLINE(机构能量<0 AND 机构能量< REF(机构能量,1),9.6,9.6+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(机构能量>=0,9.6,9.8),' 机构'),COLORYELLOW;操盘2:STICKLINE(游资能量>=0 AND 游资能量>=REF(游资能量,1),4.8,4.8+3,4,0),COLORRED;减仓2:STICKLINE(游资能量>=0 AND 游资能量< REF(游资能量,1),4.8,4.8+3,4,0),COLORRED;反弹2:STICKLINE(游资能量<0 AND 游资能量>=REF(游资能量,1),4.8,4.8+3,4,0),COLORGREEN;寻底2:STICKLINE(游资能量<0 AND 游资能量< REF(游资能量,1),4.8,4.8+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(游资能量>=0,4.8,5),' 游资'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,3,4,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,3,4,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,3,4,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(机构能量)+ABS(游资能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}JGCJ:=JZ*ABS(机构能量);{9日换手偏离均量值换算当日成交量} YZCJ:=JZ*ABS(游资能量);{17日换手偏离均量值换算当日成交量} SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};换手率:VOL/CAPITAL*100,LINETHICK0;主力量:=ZLCJ,COLORMAGENTA,NODRAW;机构量:=JGCJ,COLORYELLOW,NODRAW; 游资量:=YZCJ,COLORLIBLUE,NODRAW; 散户量:=SHCJ,COLORBLUE,NODRAW;。
通达信指标公式源码大全
通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。
LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。
Color=FF00FF。
LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。
LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。
LineThickness=1;VAR3:=LLV(High,240);VAR4:=100*(Close-VAR3)/VAR3;VAR5:=(Close-LLV(Low,528))/(HHV(High,528)-LLV(Low,528))*100;VAR6:=(Close-LLV(Close,530))/(HHV(Close,530)-LLV(Close,530))*100;VAR7:=0;VAR8:=SMA(Max(Close-REF(Close,1),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。
通达信量柱指标公式源码
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<1170214,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)) AND L=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);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 01));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 02));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 03));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 04));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 05));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NOD RAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NO DRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,R EF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,R EF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,R EF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,N ODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW;。
通达信量能指标公式源码
通达信量能指标公式源码```周期=22if (BarNumber > 周期)当前成交量 = Volume前期成交量 = Ref(Volume, 周期)//计算主力买卖盘力量当前成交量力量 = IFF((Current成交量 - 前期成交量) > 0, (Current成交量 - 前期成交量), 0)主力买卖盘力量=SUM(当前成交量力量,周期)//计算散户买卖盘力量当前成交量力量反=IFF((前期成交量-当前成交量)>0,(前期成交量-当前成交量),0)散户买卖盘力量=SUM(当前成交量力量反,周期)//计算总体买卖盘力量总体买卖盘力量=主力买卖盘力量+散户买卖盘力量//计算主力买卖比例主力买卖比例=IFF(总体买卖盘力量>0,(主力买卖盘力量/总体买卖盘力量)*100,0)//计算散户买卖比例散户买卖比例=100-主力买卖比例//画出主力买卖比例曲线和散户买卖比例曲线Plot(主力买卖比例, "主力买卖比例", colorRed)Plot(散户买卖比例, "散户买卖比例", colorGreen)```这段源码采用了TradingView的Pine Script语言编写。
其中 `周期`为指定的周期长度,`BarNumber`为当前的K线数量,`Volume`为当前K 线的成交量。
通过计算当前成交量和前期成交量的差值,可以得到主力买卖盘力量和散户买卖盘力量。
然后将这些力量进行累计,并计算主力买卖比例和散户买卖比例。
最后,通过`Plot(`函数将主力买卖比例和散户买卖比例画在图表上,使用红色和绿色分别表示。
这段代码的作用是计算并绘制通达信量能指标中的主力买卖比例和散户买卖比例曲线。
这些曲线可以帮助分析市场的买卖力量和趋势,更好地理解市场的活跃度和价格行为。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码以下是通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{FT-自用VOL}量:VOL,LINETHICK,COLOR00FFFF;STICKLINE(CLOSE>REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;STICKLINE(CLOSE1,AMOUNT/VOL/100,(HIGH+LOW+2* CLOSE)/4);空1:=IF((HIGH-LOW)>0 AND CLOSE>CB,((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB)) *((HIGH-CB)/(HIGH-LOW)*VOL) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSEREF(CLOSE,1), VOL,0);空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), VOL,0);多方量:多1+多2+多3,NODRAW,COLORRED;空方量:空1+空2+空3,NODRAW,COLORGREEN;STICKLINE(空方量,量,O,3,0),COLOR005A00;STICKLINE(空方量,量,O,2.5,0),COLOR006600;STICKLINE(空方量,量,O,2,0),COLOR006B00;STICKLINE(空方量,量,O,1.5,0),COLOR007700;STICKLINE(空方量,量,O,1,0),COLOR007B00;STICKLINE(空方量,量,0,0.5,0),COLOR009900;STICKLINE(多方量,多方量,O,3,0),COLOR000066;STICKLINE(多方量,多方量,O,2.5,0),COLOR000077; STICKLINE(多方量,多方量,O,2,0),COLOR000099; STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB; STICKLINE(多方量,多方量,O,1,0),COLOR0000DD; STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF; 多量线:EMA(多方量,3),COLOR00DBDB,LINETHICK2;空量线:EMA(空方量,3),COLORBFBFBF,LINETHICK2; 第二个:{FT-量子力学}N:=5;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0); QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN)); QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MACD.DIF">"MACD.DEA" AND"MACD.DEA""KDJ.D" AND "KDJ.D"小单;量振2:=特大0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,3,0),COLOR000044; STICKLINE(A0,0,A0,2.5,0),COLOR000088; STICKLINE(A0,0,A0,1.5,0),COLOR0000AA; STICKLINE(A0,0,A0,1,0),COLOR0000CC;STICKLINE(B0,0,-B0,3,0),COLOR004400;STICKLINE(B0,0,-B0,2.5,0),COLOR008800; STICKLINE(B0,0,-B0,1.5,0),COLOR00AA00; STICKLINE(B0,0,-B0,1,0),COLOR00CC00;周趋势:MA(A,5),COLORFFFFFF;平滑值:EMA(周趋势,5),COLOR00FFFF;STICKLINE(标振1 AND 量振1 AND 周趋势>平滑值,0,A0,3,0),COLORYELLOW;DRAWTEXT(标振1 AND 量振1 AND 周趋势>平滑值,A0,'振'),COLORYELLOW;第三个:{FT-提前量}N1:=12;N2:=26;M:=9;CC:=(C+L+H+O)/4;DIFF:=EMA(CC,5)-EMA(CC,13),COLORBB00BB,LINETHI CK2;DEA:=EMA(DIFF,4),COLOR00BB00,LINETHICK2;MACD:=XMA((DIFF-DEA)*200,2),COLORSTICK;红柱持股:MACD,NODRAW;黄色高抛:MACD,NODRAW;蓝柱持币:MACD,NODRAW;紫色反弹:MACD,NODRAW;STICKLINE(MACD0,0,MACD,6,0 ),COLOR003333;STICKLINE(MACD0,0,MACD,3.5,0 ),COLOR004444;STICKLINE(MACD0,0,MACD,3,0 ),COLOR005555;STICKLINE(MACD0,0,MACD,2.5,0 ),COLOR007777; STICKLINE(MACD0,0,MACD,2,0 ),COLOR009999; STICKLINE(MACD0,0,MACD,1.5,0 ),COLOR00BBBB; STICKLINE(MACD0,0,MACD,1,0 ),COLOR00DDDD; STICKLINE(MACD0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,6 ,0 ),COLOR000033;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,3.5 ,0 ),COLOR000044;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,3 ,0 ),COLOR000055;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,2.5 ,0 ),COLOR000077;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,2 ,0 ),COLOR000099;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1.5 ,0 ),COLOR0000BB;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1 ,0 ),COLOR0000DB;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,0,MACD,0.5 ,0 ),COLOR0000FF;STICKLINE(MACD>REF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFF00FF;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLOR333300;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORDDDD00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFFFF00;DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEAA:=EMA(DIF,9);RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5)) *100;K:=SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;主流资金:=(EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,3 4)),3))/100, COLORRED,LINETHICK2;非主流资金:=(EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH ,34)-LLV(INDEXL,34)),3))/100,COLORGREEN,LINETHIC K2;KJ共振:CROSS(DIF,DEAA) AND CROSS(K,D) AND 主流资金>非主流资金;DRAWTEXT(KJ共振,红柱持股,'B'),COLORGREEN;四连阳:EVERY(红柱持股>REF(红柱持股,1),4),NODRAW;LAST((H-L)/REF(C,1)REF(VOL,1)*2 ANDC>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" ANDCROSS("DMI.ADX","DMI.ADXR")AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);第四个:{FT-L001}{N 1.00 100.00 15.0}{M1:5;M2:10;M3:20;M4:60}公积金:FINANCE(18),COLORRED,NODRAW;现金流亿:FINANCE(26)/100000000,NODRAW;市值:FINANCE(40)/100000000,COLORFF00FF,NODRAW;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100 >100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*10 0);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH -LOW)),IF((CLOSE OPEN),(0 - (VAR1 * ((HIGH - CLOSE) +(OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),LINETHICK3,COLOR339933;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33;STICKLINE((买卖差JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神/ VAR30);鬼比:=(鬼力/ VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW); VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND(MA(CLOSE,10) > MA(CLOSE,30))) AND(MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) = VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 >VAR8)),VAR7,动神) + 动神) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 >VAR7)),VAR8,动神) + 动神) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSEMA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,0),COLOR008800; STICKLINE((CLOSE 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,3,0),COLOR880088; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLORAA00AA;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,1,0),COLORDD00DD; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE = VAR8))AND (CLOSE VAR7)),0,VAR8,3,0),COLOR999999;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,2,0),COLORAAAAAA;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,1,0),COLORDDDDDD;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,0.6,0),COLORFFFFFF;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,3,0),COLOR008888;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLOR00AAAA;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,1,0),COLOR00DDDD;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,0.5,0),COLOR00FFFF;相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);白洗盘进:1,NODRAW,COLORWHITE;黄高抛低吸:1,NODRAW,COLOR00FFFF;粉庄进追:1,NODRAW,COLORFF00FF;兰绿庄撤卖:1,NODRAW,COLOR00FF00;MAV1:MA(V,M1),LINETHICK1,COLOR00FF00;MAV2:=MA(V,M2),LINETHICK1,COLORFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAWNULL),COL ORRED,LINETHICK2;DRAWICON(V>=3*REF(V,1),V*1.01,23);DRAWICON(V>=2*REF(V,1),V*0.5,25);第五个:{变色成交量东郭专用系列副图}万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSEOPEN, 0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEREF(CL OSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLO RGREEN;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 3.2 , 0 ) , COLOR0088FF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.7 , 0 ) , COLOR00AAFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00CCFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 1.5 , 0 ) , COLOR22FFFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ; STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033; STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066; STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC; STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF; STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF; STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000; STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000; STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400; STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800; STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00; STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN; MA5:MA(V,5),COLORWHITE;MA35:MA(V,35),COLORYELLOW;MA135:MA(V,135),COLORGREEN;。
通达信量柱主副图公式
通达信量柱主副图公式量柱主图水平面:MA(CLOSE,89),COLORFFA2FF;BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2;IF(BBI<REF(BBI,1),BBI,DRAWNULL),COLORYELLOW,LINETHICK2;MA1:MA(CLOSE,24),COLOR00E300,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); STICKLINE(V2>=1,O,C,2,0),COLORYELLOW;MA13:=MA(CLOSE,13);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);A1:=MIN(O,C);B1:=ABS(O-C);T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);{DRAWTEXT(CROSS(FF,MA15),(LOW * 0.97),'底背离'),COLORA6E500; DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'顶背离'),COLOR1880FF;} STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,2,0),COLOR7F017F;STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,2,0),COLORGREEN;T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);DRAWTEXT(T2,H*1.05,'反转'),COLORWHITE;STICKLINE(T2,O,C,2,0),COLORRED;T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);STICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),H1,H1,4,-1),COLORWHITE; STICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),L1,L1,4,-1),COLORWHITE; {T11:=REF(T12,3) AND COUNT(L<L1,4)=0 AND COUNT(L>H1,4)>1; DRAWTEXT(T11,H*1.05,'三天'),COLORWHITE;STICKLINE(T11,O,C,2,0),COLORFF00FF;}{(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) };L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));T11:=T111 AND REF(T111,1)=0;STICKLINE(T11,O,C,2,0),COLORFF00FF;高:=REF(HHV(H,N),M);低:=REF(LLV(L,N),M);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;顶点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE;%19.8:REFDATE(H19,DA TE),POINTDOT,LINETHICK2,COLORYELLOW;%38.2:REFDATE(H38,DA TE),POINTDOT,LINETHICK2,COLORGREEN;%50:REFDATE(H中,DATE),POINTDOT,LINETHICK2,COLORRED;%61.8:REFDATE(H61,DA TE),POINTDOT,LINETHICK2,COLORMAGENTA;%80.9:REFDATE(H80,DA TE),POINTDOT,LINETHICK2,COLORBLUE;低点:REFDATE(低,DATE),POINTDOT,LINETHICK2,COLORWHITE; DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;STICKLINE(T1,A1,A1+B1/2,2,0),COLOR007575;STICKLINE(T1,A1+B1/2,A1+B1,2,0),COLORBLUE;STICKLINE(T11 AND T12,A1,A1+B1/2,2,0),COLORFF00FF;STICKLINE(T11 AND T12,A1+B1/2,A1+B1,2,0),COLORYELLOW;STICKLINE(T1 AND T12,A1+B1/3,A1+B1,2,0),COLORYELLOW;STICKLINE(T1 AND T12,A1,A1+B1/3,2,0),COLOR007575;STICKLINE(T1 AND T12,A1+B1/3,A1+B1*2/3,2,0),COLORBLUE;STICKLINE(T2 AND T12,A1+B1/2,A1+B1,2,0),COLORRED;STICKLINE(T2 AND T12,A1,A1+B1/2,2,0),COLORYELLOW;主图参数设置:倍量成交量VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK;AA:=VOL>=REF(V,1)*1.91 && C>REF(C,1);AA1:=VOL<REF(LLV(VOL,21),1);AA2:=VOL<REF(LLV(VOL,55),1);AA3:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;STICKLINE(AA,0,V,1,0),COLORYELLOW;STICKLINE(AA1,0,V,1,0),COLORGREEN;STICKLINE(AA2,0,V,1,0),COLORMAGENTA;STICKLINE(AA3,0,V,1,0),COLORWHITE;MV1:MA(VOL,5);MV2:MA(VOL,15);。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{FT-自用VOL}量:VOL,LINETHICK,COLOR00FFFF;STICKLINE(CLOSE& gt;REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;STICKLINE(CLOSE<=REF(CL OSE,1),量,0,3.5,0),COLOR999900;预量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFF 00FF; 预量增:预量-REF(V,1),LINETHICK,COLORWHITE;CB:=IF(CAPITAL> ;1,AMOUNT/VOL/100,(HIGH+LOW+2*CLOSE)/4);空1:=IF((HIGH-LOW)>0 AND CLOSE>CB,((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB))* ((HIGH-CB)/(HIGH-LOW)*VOL) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, ((CLOSE-LOW)/(CB-LOW))*((CLOSE-LOW)/(CB-LOW))*(( CB-LOW)/(HIGH-LOW)*VOL) ,0);空2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, VOL-多2 ,0);多3:=IF((HIGH-LOW)=0 AND CLOSE>REF(CLOSE,1),VOL,0);空3:=IF((HIGH-LOW)=0 ANDCLOSE<=REF(CLOSE,1), VOL,0);多方量:多1+多2+多3,NODRAW,COLORRED;空方量:空1+空2+空3,NODRAW,COLORGREEN;STICKLINE(空方量,量,O,3,0),COLOR005A00;STICKLINE(空方量,量,O,2.5,0),COLOR006600;STICKLINE(空方量,量,O,2,0),COLOR006B00;STICKLINE(空方量,量,O,1.5,0),COLOR007700;STICKLINE(空方量,量,O,1,0),COLOR007B00;STICKLINE(空方量,量,0,0.5,0),COLOR009900;STICKLINE(多方量,多方量,O,3,0),COLOR000066;STICKLINE(多方量,多方量,O,2.5,0),COLOR000077;STICKLINE(多方量,多方量,O,2,0),COLOR000099;STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB;STICKLINE(多方量,多方量,O,1,0),COLOR0000DD;STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF;多量线:EMA(多方量,3),COLOR00DBDB,LINETHICK2;空量线:EMA(空方量,3),COLORBFBFBF,LINETHICK2;第二个:{FT-量子力学}N:=5;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LO W,1,HIGH-MAX(OPEN,CLOSE));QJ2:=IF(HIGH=LOW,1,MA X(CLOSE,OPEN)-QJ0);QJ3:=IF(HIGH=LOW,1,MIN(OPEN,C LOSE)-LOW);QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MAC D.DIF">"MACD.DEA" AND"MACD.DEA"<0;QJ7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30;QJ8:="MACD.DIF"<"MACD.DEA";QJ9:=" KDJ.K"<"KDJ.D" AND "KDJ.K">80;特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单AND 大单>小单;量振2:=特大<小单AND 大单<小单;标振1:=QJ6 AND QJ7;标振2:=QJ8 ANDQJ9;A:=W1-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);STI CKLINE(A0,0,A0,3,0),COLOR000044;STICKLINE(A0,0,A0,2 .5,0),COLOR000088;STICKLINE(A0,0,A0,1.5,0),COLOR0000 AA;STICKLINE(A0,0,A0,1,0),COLOR0000CC;STICKLINE(B 0,0,-B0,3,0),COLOR004400;STICKLINE(B0,0,-B0,2.5,0),COL OR008800;STICKLINE(B0,0,-B0,1.5,0),COLOR00AA00;STIC KLINE(B0,0,-B0,1,0),COLOR00CC00;周趋势:MA(A,5),COLORFFFFFF;平滑值:EMA(周趋势,5),COLOR00FFFF;STICKLINE(标振1 AND 量振1 AND 周趋势>平滑值,0,A0,3,0),COLORYELLOW; DRAWTEXT(标振1 AND 量振1 AND 周趋势>平滑值,A0,'振'),COLORYELLOW;第三个:{FT-提前量}N1:=12;N2:=26;M:=9;CC:=(C+L+H+O)/4;DIFF:=EMA(CC ,5)-EMA(CC,13),COLORBB00BB,LINETHICK2;DEA:=EMA (DIFF,4),COLOR00BB00,LINETHICK2;MACD:=XMA((DIFF -DEA)*200,2),COLORSTICK;红柱持股:MACD,NODRAW;黄色高抛:MACD,NODRAW;蓝柱持币:MACD,NODRAW;紫色反弹:MACD,NODRAW;STICKLINE(MACD<REF(MACD,1) ANDMACD>0,0,MACD,6,0 ),COLOR003333;STICKLINE(MA CD<REF(MACD,1)ANDMACD>0,0,MACD,3.5,0 ),COLOR004444;STICKLINE(M ACD<REF(MACD,1)ANDMACD>0,0,MACD,3,0 ),COLOR005555;STICKLINE(MA CD<REF(MACD,1)ANDMACD>0,0,MACD,2.5,0 ),COLOR007777;STICKLINE(M ACD<REF(MACD,1)ANDMACD>0,0,MACD,2,0 ),COLOR009999;STICKLINE(MA CD<REF(MACD,1)ANDMACD>0,0,MACD,1.5,0 ),COLOR00BBBB;STICKLINE( MACD<REF(MACD,1)ANDMACD>0,0,MACD,1,0 ),COLOR00DDDD;STICKLINE(MMACD>0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,6 ,0 ),COLOR000033;STICKLINE(MA CD>=REF(MACD,1)ANDMACD>0,0,MACD,3.5 ,0 ),COLOR000044;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,3 ,0 ),COLOR000055;STICKLINE(MA CD>=REF(MACD,1)ANDMACD>0,0,MACD,2.5 ,0 ),COLOR000077;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,2 ,0 ),COLOR000099;STICKLINE(MA CD>=REF(MACD,1)ANDMACD>0,0,MACD,1.5 ,0 ),COLOR0000BB;STICKLINE( MACD>=REF(MACD,1)ANDMACD>0,0,MACD,1 ,0 ),COLOR0000DB;STICKLINE(M ACD>=REF(MACD,1)ANDMACD>0,0,MACD,0.5 ,0 ),COLOR0000FF;STICKLINE(M ACD>REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLORFF00CA;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,3.5,0 ),COLORFF00CC;STICKLINE(MMACD<0,0,MACD,3,0 ),COLORFF00DB;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,2.5,0 ),COLORFF00DD;STICKLINE(M ACD>REF(MACD,1)ANDMACD<0,0,MACD,2,0 ),COLORFF00DF;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,1.5,0 ),COLORFF00EE;STICKLINE(M ACD>REF(MACD,1)ANDMACD<0,0,MACD,1,0 ),COLORFF00EF;STICKLINE(MA CD>REF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFF00FF;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,6,0 ),COLOR333300;STICKLINE(MAC D<=REF(MACD,1)ANDMACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MAC D<=REF(MACD,1)ANDMACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,1,0 ),COLORDDDD00;STICKLINE(M ACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.5,0 ),COLORFFFF00;DIF:=(EMA(CL OSE,12)-EMA(CLOSE,26))*100;DEAA:=EMA(DIF,9);RSV:=( CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:= SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;主流资金:=(EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34 )),3))/100, COLORRED,LINETHICK2;非主流资金:=(EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH ,34)-LLV(INDEXL,34)),3))/100,COLORGREEN,LINETHICK 2;KJ共振:CROSS(DIF,DEAA) AND CROSS(K,D) AND 主流资金>非主流资金;DRAWTEXT(KJ共振,红柱持股,'B'),COLORGREEN;四连阳:EVERY(红柱持股>REF(红柱持股,1),4),NODRAW;LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 ANDC>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR")AND"DMI.ADXR">" DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);第四个:{FT-L001}{N 1.00100.00 15.0}{M1:5;M2:10;M3:20;M4:60}公积金:FINANCE(18),COLORRED,NODRAW;现金流亿:FINANCE(26)/100000000,NODRAW;市值:FINANCE(40)/100000000,COLORFF00FF,NODRAW;SAT: =IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>1 00,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100 ),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;V AR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(V AR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(V AR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (V AR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (V AR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),LINETHICK3,COLOR339933;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33;STICKLINE((买卖差< 0),0,买卖差,1,0),LINETHICK3,COLOR33DD33;STICKLINE((买卖差< 0),0,买卖差,0.5,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));V AR10:=买盘;V AR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 >0)),JX1,3);V AR30:=MA(VOL,JY2);动神:=买盘;鬼力:=V AR20;神比:=(动神/ V AR30);鬼比:=(鬼力/ V AR30);V AR2:=(HIGH - LOW);V AR3:=ABS((OPEN - CLOSE));V AR4:=(HIGH -IF((CLOSE > OPEN),CLOSE,OPEN));V AR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);V AR6:=((V AR3 / V AR2) * VOL);V AR7:=((V AR4 / V AR2) * VOL);V AR8:=((V AR5 /V AR2) * VOL);V AR9:=IF(((VOL / CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));V ARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);V ARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND(MA(CLOSE,30) >MA(CLOSE,60)));V ARC:=((MA(CLOSE,5) <MA(CLOSE,10)) AND (MA(CLOSE,10) <MA(CLOSE,30)));V ARD:=REF(CLOSE,1);V ARE:=((SMA(M AX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE -V ARD)),6,1)) * 100);V AR40:=((IF((((V AR6 >= VAR7) AND(V AR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);V AR41:=((IF(((VAR7 > V AR6) AND (V AR7 > V AR8)),V AR7,动神) + 动神) / 2);V AR42:=((IF(((V AR8 > V AR6) AND (V AR8 > VAR7)),V AR8,动神) + 动神) / 2);V AR50:=((IF((((V AR6 >= VAR7) AND (V AR6 >=V AR8)) AND (CLOSE < OPEN)),V AR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((V AR40 + V AR41) + V AR42) / 3),JY2);三日下攻:=MA(V AR50,JY2);多头:STICKLINE((CLOSE >MA(CLOSE,30)),0,VOL,3,0),COLOR000088;STICKLINE((CL OSE >MA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((C LOSE >MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((C LOSE > MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE <MA(CLOSE,30)),0,VOL,3,0),COLOR008800;STICKLINE((CL OSE <MA(CLOSE,30)),0,VOL,2,0),COLOR00AA00;STICKLINE((C LOSE <MA(CLOSE,30)),0,VOL,1,0),COLOR00DD00;STICKLINE((C LOSE <MA(CLOSE,30)),0,VOL,0.5,0),COLOR00FF00;STICKLINE((鬼力> 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((V AR6 >= VAR7) AND (V AR6 >=V AR8)) AND (CLOSE >OPEN)),0,V AR6,3,0),COLOR880088;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE > OPEN)),0,V AR6,2,0),COLORAA00AA;STICKLINE((((V AR6 >= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE > OPEN)),0,V AR6,1,0),COLORDD00DD;STICKLINE((((V AR6 >= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE > OPEN)),0,V AR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((V AR6 >= VAR7) AND (V AR6 >=V AR8)) AND (CLOSE <OPEN)),0,V AR6,3,0),COLOR880000;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE < OPEN)),0,V AR6,2,0),COLORBB0000;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE < OPEN)),0,V AR6,1,0),COLORDD0000;STICKLINE((((V AR6>= V AR7) AND (V AR6 >= VAR8)) AND (CLOSE < OPEN)),0,V AR6,0.5,0),COLORFF0000;洗盘:STICKLINE(((V AR8 > V AR6) AND (V AR8 >V AR7)),0,V AR8,3,0),COLOR999999;STICKLINE(((VAR8 > V AR6) AND (V AR8 >V AR7)),0,V AR8,2,0),COLORAAAAAA;STICKLINE(((V AR8 > V AR6) AND (V AR8 >V AR7)),0,VAR8,1,0),COLORDDDDDD;STICKLINE(((V AR8 > V AR6) AND (V AR8 >V AR7)),0,V AR8,0.6,0),COLORFFFFFF;高卖:STICKLINE(((V AR7 > V AR6) AND (V AR7 >V AR8)),0,V AR7,3,0),COLOR008888;STICKLINE(((VAR7 > V AR6) AND (V AR7 >V AR8)),0,V AR7,2,0),COLOR00AAAA;STICKLINE(((V AR7> V AR6) AND (V AR7 >V AR8)),0,V AR7,1,0),COLOR00DDDD;STICKLINE(((V AR7> V AR6) AND (V AR7 >V AR8)),0,V AR7,0.5,0),COLOR00FFFF;相对地量:=STICKLINE(((V AR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);白洗盘进:1,NODRAW,COLORWHITE;黄高抛低吸:1,NODRAW,COLOR00FFFF;粉庄进追:1,NODRAW,COLORFF00FF;兰绿庄撤卖:1,NODRAW,COLOR00FF00;MA V1:MA(V,M1),LINETHIC K1,COLOR00FF00;MA V2:=MA(V,M2),LINETHICK1,COLO RFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAW NULL),COLORRED,LINETHICK2;DRAWICON(V>=3*R EF(V,1),V*1.01,23);DRAWICON(V>=2*REF(V,1),V*0.5,25);第五个:{变色成交量东郭专用系列副图}万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS (CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<O PEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主买:主动买/10000,COLORFF00FF,LINETHICK0;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LO W)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,LINETHICK0;差额:主买+主卖,LINETHICK0;STICKLINE(CLOSE=REF(CLOSE,1),0,VO L,3.5,0),COLORWHITE;STICKLINE(CLOSE>REF(CLOS E,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF( CLOSE,1),0,VOL,3.5,0),COLORGREEN;STICKLINE(CURR BARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) ,COLOR0088FF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) ,COLOR00AAFF ;STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1 , 2.1 , 0 ) ,COLOR00CCFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) ,COLOR22FFFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) ,COLOR66FFFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ;STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033;STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066;STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC;STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF;STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF;STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000;STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000;STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400;STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800;STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00;STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN;MA5:MA(V,5),COLORWHITE;MA35 :MA(V,35),COLORYELLOW;MA135:MA(V,135),COLORGR EEN;。
20个极品通达信指标公式源码
20个极品通达信指标公式源码1.AHH_(N):=AMOUNT/CAPITAL*100;AHHV_(N):=REF(AHH_(N),1);AHH:(AHH_(N)-AHHV_(N))/AHHV_(N)>0;2.MA20V:=REF(MA(CLOSE,20),1);MA20:(MA(CLOSE,20)-MA20V)/MA20V>=0;3.BRKV:=REF(HIGH,1);BRK:HIGH/BRKV>1.02;4.ROCV:=REF(CLOSE,1);ROC:(CLOSE-ROCV)/ROCV*100;5.ROCMA20V:=REF(MA(CLOSE,20),1);ROCMA20:=MA(CLOSE,20)/ROCMA20V*100;6.DMAV:=REF(MA(CLOSE,10)-MA(CLOSE,20),1);DMA:(MA(CLOSE,10)-MA(CLOSE,20)-DMAV)/DMAV>0;7.MEANDEV(N):=SUM(ABS(CLOSE-REF(CLOSE,1))/N,N)/CLOSE/N; MEANDEV:MEANDEV(6);8.VARV:=REF(VAR(CLOSE,N),1);VAR:(VAR(CLOSE,N)-VARV)/VARV>=0;9.RSI(N,M):=(SMA(MAX(CLOSE-REF(CLOSE,1),0),N,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),N,1)*100);RSI:RSI(3,1);10.VRSIV:=REF(RSI(3,1),1);VRSI:(RSI(3,1)-VRSIV)/VRSIV>=0;11.MACD:DIF-DEA;12.UPREBV:=REF(HHV(HIGH,N),1);UPREB:(HHV(HIGH,N)-UPREBV)/UPREBV>=0;13.WVPV:=REF(MA(VOL,N),1);WVP:(MA(VOL,N)-WVPV)/WVPV>=0;14.BBDV:(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;15.AVERAGE(N):MA(CLOSE,N);AVERAGE:AVERAGE(5);16.MACDV:=REF(MA(DIF,3),1);MACD:(MA(DIF,3)-MACDV)/MACDV>=0;17.HSV:=REF(HIGH*2-LOW,1);HS:(HIGH*2-LOW)/HSV>=0;18.RAV:=REF(REF(HIGH+LOW,1)+REF(CLOSE,2),1);RA:(REF(HIGH+LOW,1)+REF(CLOSE,2)-RAV)/RAV>=0;19.CMO:=(SUM(CLOSE-REF(CLOSE,1),N))/(SUM(ABS(CLOSE-REF(CLOSE,1)),N))*100;20.AR:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;。
【股票指标公式下载】-【通达信】量柱副图(换手)
【通达信】量柱副图(换手)-指标公式源码VVOL:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOL1:VOL,VOLSTICK;VOL5:MA(VOL,5);VOL10:MA(VOL,10);VOL30:MA(VOL,30);换手:VOL*10000/FINANCE(7);BLZ:=VOL>=REF(V,1)*1.95 AND C>REF(C,1);DLZ:=VOL<REF(LLV(VOL,21),1);SLZ:=VOL<=REF(VOL,1) AND REF(V,1)<REF(V,2) AND REF(V,2)<REF(V,3); PLZ:=((VOL>REF(VOL*0.97,1) AND VOL<REF(VOL*1.03,1)) OR(VOL>REF(VOL*0.97,2) AND VOL<REF(VOL*1.03,2)) OR(VOL>REF(VOL*0.97,3) AND VOL<REF(VOL*1.03,3)) OR(VOL>REF(VOL*0.97,4) AND VOL<REF(VOL*1.03,4))) AND V<=MA(V,5) ; GLZ:=VOL>=HHV(V,21);TLZ:=V>=REF(V,1) AND REF(V,1)>=REF(V,2) AND C>O AND REF(C>O,1); SBZ:=V<=REF(V,1)*0.5;STICKLINE(PLZ,0,V,1,0),COLORBLUE{蓝};STICKLINE(GLZ,0,V,1,0),COLORLIRED{粉};STICKLINE(DLZ,0,V,1,0),COLORWHITE{白};STICKLINE(TLZ,0,V,1,0),COLORLIRED{粉};STICKLINE(SLZ,0,V,1,0),COLORWHITE{白};STICKLINE(SBZ,0,V,1,0),COLORYELLOW{白};STICKLINE(BLZ,0,V,1,0),COLORYELLOW{黄};【通达信】量柱副图(换手)-指标公式效果图c(文档来源:若水财经社区)。
通达信柱状信号指标公式
通达信柱状信号指标公式E13:=EXPMA(C,13);M8:=MA(C,8);M21:=MA(C,21);M233:=MA(C,233);E10:=EXPMA(C,10);ZZT:=C/REF(C,1)>1.095 AND C=H;ZA:=BARSLASTCOUNT(ZZT);ZT:=BARSLAST(CROSS(ZA=3,0.5));ZLL:=REF(L,(ZT+2));ZTJ:=C<ZLL;ZAA:=COUNT(ZTJ,ZT+1)=1 AND ZTJ;ZTA:=BARSLAST(ZAA);ZLT:=BARSLAST(L=LLV(L,ZTA+1));ZTJ1:=CROSS(C,E10);ZXG:=COUNT(ZTJ1,ZLT+1)=1 AND ZTJ1 AND TOTALBARSCOUNT>200;STICKLINE(ZXG,0,7,2,0),COLORGRAY;HA:=M8/M21*100;HTJ:=BARSLASTCOUNT(RANGE(HA,99.9,100.3));HHB:=MAX(C,O)/MIN(C,O)*100-100;HTJ1:=BARSLASTCOUNT(HHB<2);HZF:=(HHV(H,5)-LLV(L,5))/LLV(L,5)*100;HDZF:=(H-L)/REF(C,1)*100;HTJ2:=COUNT(MIN(C,O)/L>1.03,5)=0;HTJ3:=COUNT(H<REF(L,1),5)=0;HTJ4:=C>M233;HXG:=HTJ>4 AND HTJ1>4 AND HZF<10 AND HTJ2 AND HTJ3 AND HTJ4;STICKLINE(CROSS(HXG,0.5),0,5,2,0),COLORLIMAGENTA;ZF:=(C-REF(C,1))/REF(C,1)*100;TJ:=EVERY(RANGE(ZF,-2.22,2.55),15);TJ1:=C>O AND C/REF(C,1)>1.03;TJ2:=COUNT(E13>=REF(E13,1),15);JD:=(ATAN((E13/REF(E13,15)-1)*100)*180/3.1415926);A:=IF(MIN(C,O)>E13,MAX(C,O)/E13*100-100,IF(MAX(C,O)<E13,E13/MIN(C,O),E13));B:=MAX(C,O)/MIN(C,O)*100-100;LL:=LLV(A,15);HH:=HHV(A,15);HB:=COUNT(BB>3,15)<2;XG:=REF(TJ,1) AND TJ1 AND TJ2>13 AND JD>72 AND REF(LL,1)<1.37 AND REF(HH,1)<11.15;STICKLINE(XG,0,6,2,0),COLORGREEN;WT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));C1:=REF(C,WT+1);C2:=REF(C1,WT+1);C3:=REF(C2,WT+1);C4:=REF(C3,WT+1);C5:=REF(C4,WT+1);C6:=REF(C5,WT+1);C7:=REF(C6,WT+1);C8:=REF(C7,WT+1);C9:=REF(C8,WT+1);WM10:=(C+C1+C2+C3+C4+C5+C6+C7+C8+C9)/10;E20:=EXPMA(C,20);E120:=EXPMA(C,120);E250:=EXPMA(C,250);WA:=MACD.DIF;WB:=MACD.DEA;WT1:=BARSLAST(CROSS(WA,WB));WST:=BARSLAST(CROSS(WB,WA));WZF:=(HHV(H,110)-LLV(L,110))/LLV(L,110)*100;WTJ:=EVERY(V>REF(V,1),2);WHH:=MAX(MAX(E20,E120),E250);WLL:=MIN(MIN(E20,E120),E250);WNH:=WHH/WLL*100-100;WTJ1:=EVERY(WNH<40,25);WZZF:=(C-REF(C,10))/REF(C,10)*100 ;WTJA:=C>WM10;WXG:=WT1=0 AND WA<REF(WA,WST) AND WB<REF(WB,WST) AND WZF<70 AND WTJ AND WTJ1 AND WZZF<1.4 AND WTJA;STICKLINE(WXG,0,8,2,0),COLORWHITE;M5:=MA(C,5);M10:=MA(C,10);M15:=MA(C,15);FTJ:=M5>REF(M5,1) AND M10>REF(M10,1) AND M15>=REF(M15,10);FT:=BARSLAST(CROSS(FTJ,0.5));FTT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));FHH:=MAX(MAX(M5,M10),M15);FLL:=MIN(MIN(M5,M10),M15);FNH:=FHH/FLL*100-100;FZZF:=(C-REF(C,FTT+1))/REF(C,FTT+1)*100;FZZF1:=REF(FZZF,FTT+1);FTJ2:=CROSS(FZZF>20,0.5) OR CROSS(FZZF1>20,0.5);FJD:=(ATAN((M5/REF(M5,1)-1)*100)*180/3.1415926);FTJA:=FZZF1>0 AND FZZF1>0 ;FDT:=M10/M15*100-100>1 AND H/MAX(C,O)<1.03;FBL:=MIN(C,O)/M5;FBL5:=M5/M10*100-100;FXG:=FTJ2 AND C=HHV(C,5) AND BETWEEN(FT,0,5)AND FTJA AND FNH<12 AND FDT AND FBL<1.045 AND FBL5<7.2 AND FJD<77.5;STICKLINE(CROSS(FXG,0.5),0,8,1.5,0),COLORRED;DTJ:=O>REF(H,1) AND C<O AND O/C<C/L AND V>REF(V,1);DTT:=BARSLAST(REF(ZA>1,1) AND DTJ);DXG:=COUNT(CROSS(C,REF(H,DTT)),DTT+1)=1 AND CROSS(C,REF(H,DTT));STICKLINE(DXG,0,9,1.3,0),COLORBLUE;QT:=BARSLAST(C>REF(C,1)*1.095 AND C=H);QTJ:=(C-REF(C,QT+1))/REF(C,QT+1)*100;QTJ1:=EVERY(C<O,QT);QTJ2:=COUNT(REF(C,1)/C>1.09,QT)>0 AND REF(C,1)/C>1.09;QA:=QTJ>-1 AND QTJ1 AND QTJ2;QTA:=BARSLAST(QA);QHH:=REF(H,QTA);QTJ3:=EVERY(MAX(C,O)<QHH,QTA);QTJ4:=MIN(C,O)<QHH AND MAX(C,O)>QHH AND COUNT(MIN(C,O)<QHH AND MAX(C,O)>QHH,QTA)=1;QTJ5:=REF(QTJ3,1) AND QTA<69 AND IF(C<O,O/QHH>1.007,C>O) AND IF(C<O,REF(C,1)/C<1.06,C>O);QXG:=QTJ4 AND QTJ5;STICKLINE(QXG=1,0,10,1.5,0),COLORLICYAN;DIF:=MACD.DIF;H300:=HHVBARS(DIF,300);IA:=BOLL.UB;IT:=BARSLAST(CROSS(IA>=REF(IA,1),0.5));E25:=EXPMA(C,25);IZF:=EVERY(RANGE(C/REF(C,1),0.97,1.05),IT+1);IZFF:=(HHV(H,IT+1)-LLV(L,IT+1))/LLV(L,IT+1)*100;ITJ:=EVERY(MAX(C,O)/IA<1.02 ,IT+1);IXL:=(ATAN((E25/REF(E25,IT)-1)*100)*180/3.1415926);ITJ1:=CROSS(DIF>=REF(DIF,H300),0.5) AND IZFF<17 AND IZF AND ITJ;ITJ2:=MIN(C,O)/E25>1.04;IXG:=ITJ1 AND IXL>75;STICKLINE(IXG,0,8,2,0)COLORLIGREEN;LT8:=LLVBARS(L,60);LTT8:=BARSLAST(CURRBARSCOUNT=CONST(LT8)+1);HT8:=FINDHIGHBARS(H,LT8+1,60,1);A8:=DRAWLINE(CURRBARSCOUNT=CONST(HT8)+1,H,ISLA STBAR,REF(H,HT8),0);TT8:=BARSLAST(CURRBARSCOUNT=CONST(HT8)+1);AA8:=CROSS(C,CONST(A8));TJ8:=COUNT(AA8,TT8+1)=1 AND AA8;TJ18:=COUNT(V<MA(V,277),TT8+1) ;BL8:=TJ18/(TT8+1)*100;XG8:=TJ8 AND TT8>40 AND BL8>70;XGT8:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(X G8))+1);ZH8:=REF(H,TT8);YL8:=REF(L,LTT8);XC8:=REF(C,XGT8);YZ8:=(XC8-YL8)/YL8*100;ZBL8:=YZ8/REF(LTT8,XGT8);XGA8:=XG8 AND ZBL8<2.95;STICKLINE(XGA8,0,10,1.5,0),COLORYELLOW;SNH:=E120/E250*100-100;STA:=EVERY(SNH<3 AND E120>E250,20);STB:=CROSS(E20,MAX(E120,E250));STC:=MIN(C,O)/E20<1.08;SXG:=STB AND STA AND STC;STICKLINE(SXG,0,8,2,0),COLORLIRED;DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,'周线走好-白色柱'),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR,0.005,0.1,0,'周线翻红-红色柱'),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.005,0.05,0,'一壶清茶-蓝色柱'),COLORBLUE;DRAWTEXT_FIX(ISLASTBAR,0.005,0.15,0,'突破阴棒-淡青柱'),COLORLICYAN;DRAWTEXT_FIX(ISLASTBAR,0.005,0.2,0,'平步青云-淡绿柱'),COLORLIGREEN;DRAWTEXT_FIX(ISLASTBAR,0.12,0,0,'直捣老巢-深灰柱'),COLORGRAY;DRAWTEXT_FIX(ISLASTBAR,0.12,0.05,0,'锅顶突破-黄色柱'),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.12,0.1,0,'蚂蚁上树-绿色柱'),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.12,0.15,0,'含苞待放-粉红柱'),COLORLIMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.12,0.2,0,'幸福一家-浅红柱'),COLORLIRED;。
通达信指标公式源码量柱擒涨停+黄金柱+涨停时间窗主图
C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;大阳线:=IF((C-C2)*100/C2>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10);C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10);CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,CIRCLEDOT;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,CIRCLEDOT;{黄金柱}JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 ANDCLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0), COLORYELLOW;TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3 ANDCLOSE>REF(LOW,3),1,0)));STFZ:=TJ3=1;CL:=STFZ AND TP;TJCL:=FILTER(CL,3);DRAWTEXT(LJL,L*0.99,'黄'),COLORYELLOW;DRAWTEXT(LJL,L*0.95,'金'),COLORYELLOW;DRAWTEXT(LJL,L*0.90,'柱'),COLORYELLOW;{涨停跟踪}ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),7,0),COLORRED; STICKLINE(C,REF(L,BH),REF(L,BH),7,0),COLORBLUE;DRAWTEXT(ZT,L*0.98,'涨停'),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);STICKLINE(VARZT=2,L*0.97,L*0.98,8,0),COLOR0000FF;DRAWTEXT(VARZT=2,L*0.95,'3天'),COLORYELLOW;STICKLINE(VARZT=4,H*1.03,H*1.02,8,0),COLOR9966FF;DRAWTEXT(VARZT=4,H*1.06,'5天'),COLORYELLOW;STICKLINE(VARZT=7,L*0.97,L*0.98,8,0),COLOR00FFFF;DRAWTEXT(VARZT=7,L*0.95,'8天'),COLORYELLOW;STICKLINE(VARZT=12,H*1.03,H*1.02,8,0),COLORFF33FF;DRAWTEXT(VARZT=12,H*1.06,'13天'),COLORYELLOW;STICKLINE(VARZT=20,L*0.97,L*0.98,8,0),COLOR0066FF;DRAWTEXT(VARZT=20,L*0.95,'21天'),COLORYELLOW;STICKLINE(VARZT=33,H*1.03,H*1.02,8,0),COLOR9932CD;DRAWTEXT(VARZT=33,H*1.06,'34天'),COLORYELLOW; STICKLINE(VARZT=54,L*0.97,L*0.98,8,0),COLOR006600; DRAWTEXT(VARZT=54,L*0.95,'55天'),COLORYELLOW; STICKLINE(VARZT=88,H*1.03,H*1.02,8,0),COLOR00FF00; DRAWTEXT(VARZT=88,H*1.06,'89天'),COLORYELLOW; STICKLINE(VARZT=143,L*0.97,L*0.98,8,0),COLORCCFFFF; DRAWTEXT(VARZT=143,L*0.95,'144天'),COLORYELLOW; STICKLINE(VARZT=232 ,H*1.03,H*1.02,8,0),COLORFF0033; DRAWTEXT(VARZT=232,H*1.06,'233天'),COLORYELLOW; STICKLINE(VARZT=376,L*0.97,L*0.98,8,0),COLORFF9966; DRAWTEXT(VARZT=376,L*0.95,'377天'),COLORYELLOW;。
【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)公式
【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)公式【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)-指标公式源码黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;{预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 AND REF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);{4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF;DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;}AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK3;{STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;。
绝版量柱通达信指标公式源码
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);DT:=买盘;KT:=卖盘;买量20:=SUM(DT,20);卖量20:=SUM(KT,20);进出量20:=买量20+卖量20;STICKLINE(进出量20>=0,0,进出量20,3,1),COLORRED;STICKLINE(进出量20<0,0,进出量20,3,1),COLORFFFF00;买量10:=SUM(DT,10);卖量10:=SUM(KT,10);进出量10:=买量10+卖量10,COLORRED,LINETHICK2;STICKLINE(进出量10>=0,0,进出量10,1.8,1),COLORRED; STICKLINE(进出量10<0,0,进出量10,1.8,1),COLORFFFF00; 买量5:=SUM(DT,5);卖量5:=SUM(KT,5);进出量5:=买量5+卖量5,COLORYELLOW,LINETHICK2; STICKLINE(进出量5>=0,0,进出量5,1,1),COLORRED; STICKLINE(进出量5<0,0,进出量5,1,1),COLORFFFF00;买量:=SUM(DT,1);卖量:=SUM(KT,1);进出量:=买量+卖量;STICKLINE(进出量>=0,0,进出量,0.5,0),COLORYELLOW; STICKLINE(进出量<0,0,进出量,0.5,0),COLORGREEN;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
买卖差:=(买盘+ 卖盘);
DT:=买盘;
KT:=卖盘;
买量20:=SUM(DT,20);
卖量20:=SUM(KT,20);
进出量20:=买量20+卖量20;
STICKLINE(进出量20>=0,0,进出量20,3,1),COLORRED;
STICKLINE(进出量20<0,0,进出量20,3,1),COLORFFFF00;
买量10:=SUM(DT,10);
卖量10:=SUM(KT,10);
进出量10:=买量10+卖量10,COLORRED,LINETHICK2;
STICKLINE(进出量10>=0,0,进出量10,1.8,1),COLORRED; STICKLINE(进出量10<0,0,进出量10,1.8,1),COLORFFFF00; 买量5:=SUM(DT,5);
卖量5:=SUM(KT,5);
进出量5:=买量5+卖量5,COLORYELLOW,LINETHICK2; STICKLINE(进出量5>=0,0,进出量5,1,1),COLORRED; STICKLINE(进出量5<0,0,进出量5,1,1),COLORFFFF00;
买量:=SUM(DT,1);
卖量:=SUM(KT,1);
进出量:=买量+卖量;
STICKLINE(进出量>=0,0,进出量,0.5,0),COLORYELLOW; STICKLINE(进出量<0,0,进出量,0.5,0),COLORGREEN;。