成交量波段操盘通达信指标公式源码
通达信指标公式源码 成交量买卖图
DRAWTEXT_FIX(1,0.00,0,0,'红买绿卖,粉色高抛低吸,黄色庄进货,白色找底建仓')COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:VOL,NODRAW;买盘:=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))));买卖差:=(买盘+ 卖盘);STICKLINE((VOL > 0),VOL,0,3,1),COLORFFFFFF;STICKLINE((买卖差> 0),0,买卖差,3,0),COLOR0000FF;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));VAR10:=买盘;VAR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > 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) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100); VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= 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 (CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,2,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,2,1),COLOR00FF00;STICKLINE((鬼力> 0),鬼力,0,2,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLOR00FFFF;DRAWTEXT(加仓,VOL,'加'),COLORYELLOW;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,2,0),COLORFF0000;DRAWTEXT(减仓,VOL,'减'),COLORGREEN;洗盘:STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORFFFFFF; DRAWTEXT(洗盘,VOL,'洗'),COLORWHITE;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLORFF00FF;倍数:=1.9;倍量: VOL>=REF(V,1)*倍数AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW; DRAWTEXT(倍量,0-1,'倍'),COLORLIMAGENTA;。
通达信指标公式源码 预测成交量公式
{VOL,VOLSTICK;}INPUT:M1(5,1,10),M2(10,5,30),M3(20,10,60);成交量:VOL,PRECIS2,LINETHICK0;成交额:AMOUNT/100000000,PRECIS2,LINETHICK0;五日均量:MA(VOL,M1),PRECIS2,LINETHICK1;十日均量:MA(VOL,M2),PRECIS2,LINETHICK1;廿日均量:MA(VOL,M3),PRECIS2,LINETHICK1;预估今日成交量:IF((DYNAINFO(7)=CLOSE), DYNAINFO(38)*DYNAINFO(17),成交量)/10000,Color0000FF,LINETHICK0,PRECIS2;{如果最新价=收盘价,选五日均量*量比,否则就选成交量}FILLRGN(五日均量,十日均量,五日均量>=十日均量,RGB(255,0,0),五日均量<=十日均量,RGB(0,255,0));{当五日均量>=十日均量时为红色飘带,反之为绿色飘带}AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));{系数=成交量/((最高价-最低价)*2-绝对值(收盘价-开盘价))}主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN) +(CLOSE-LOW)),VOL/2));主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPE N,0-AAA*(HIGH-LOW),0-成交量/2));STICKLINE(主买>=主卖,成交量,0,7.5,0),Color0E96A9;{黄色柱表示主力的净买量}STICKLINE(主买>=主卖,成交量,0,7,0),Color10A7BC;{黄色框2} STICKLINE(主买>=主卖,成交量,0,6,0),Color11B5CC;{黄色框3} STICKLINE(主买>=主卖,成交量,0,5,0),Color13C6DF;{黄色框4} STICKLINE(主买>=主卖,成交量,0,4,0),Color1CD2EC;{黄色框5} STICKLINE(主买>=主卖,成交量,0,2,0),Color39D8EE;{黄色框6} STICKLINE(主买>=主卖,成交量,0,0.5,0),ColorFFFFFF;{黄色框7} STICKLINE(主买<主卖,成交量,0,7.5,0),ColorCA6500;{蓝色柱主力的净卖量} STICKLINE(主买<主卖,成交量,0,7,0),ColorE17100;{蓝色框2}STICKLINE(主买<主卖,成交量,0,6,0),ColorF27900;{蓝色框3}STICKLINE(主买<主卖,成交量,0,5,0),ColorFF850B;{蓝色框4}STICKLINE(主买<主卖,成交量,0,4,0),ColorFF9326;{蓝色框5}STICKLINE(主买<主卖,成交量,0,2,0),ColorFFA042;{蓝色框6}STICKLINE(主买<主卖,成交量,0,0.5,0),colorFFFF00;{蓝色框7} STICKLINE(1>0,0,主买,7.5,0),ColorA200A2;{玫红柱1}STICKLINE(1>0,0,主买,7,0),ColorB700B7;{玫红柱2}STICKLINE(1>0,0,主买,6,0),ColorCE00CE;{玫红柱3}STICKLINE(1>0,0,主买,5,0),ColorE800E8;{玫红柱4}STICKLINE(1>0,0,主买,4,0),ColorFF00FF;{玫红柱5}STICKLINE(1>0,0,主买,2,0),ColorFF60FF;{玫红柱6}STICKLINE(1>0,0,主买,0.5,0),ColorFFD2FF;{玫红柱7}BBB:=LONGCROSS(成交量,五日均量,4);{全红柱表示今天的成交量超过五日均量}STICKLINE(BBB,0,成交量,7.5,0),color070084;{全红柱1}STICKLINE(BBB,0,成交量,7,0),color0000A3;{全红柱2}STICKLINE(BBB,0,成交量,6,0),color0000B7;{全红柱3}STICKLINE(BBB,0,成交量,5,0),color0000CD;{全红柱4}STICKLINE(BBB,0,成交量,4,0),color0000E9;{全红柱5}STICKLINE(BBB,0,成交量,2,0),color0754E9;{全红柱6}STICKLINE(BBB,0,成交量,0.5,0),Color68B8FF;{全红柱7}DL:=FILTER(成交量=LLV(成交量,20),5);{全绿柱表示今天是最近5天的成交量中是20日均量的最低量}STICKLINE(DL,0,成交量,7.5,0),Color006400;{全绿柱1}STICKLINE(DL,0,成交量,7,0),Color007500;{全绿柱2}STICKLINE(DL,0,成交量,6,0),Color008400;{全绿柱3}STICKLINE(DL,0,成交量,5,0),Color009900;{全绿柱4}STICKLINE(DL,0,成交量,4,0),Color00AE00;{全绿柱5}STICKLINE(DL,0,成交量,2,0),Color00BD00;{全绿柱6}STICKLINE(DL,0,成交量,0.5,0),Color8EFF8E;{全绿柱7}{预计今天成交量}今天成交额:=AMOUNT/10000;昨天成交额:=REF(今天成交额,1);交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000 and DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240); 预测今天:=今天成交额/交易分钟数*240;交易分时:=FRACPART( 交易分钟数/60);剩余分时:=交易分时*60;剩余秒:=FRACPART( 剩余分时);剩余秒时:=剩余秒*60;交易小时:=交易分钟数/60 ;{显示文字}DRAWTEXTABS(125,0,'昨天金额:'+NUMTOSTRN(昨天成交额/10000,2)+'亿'),ColorF5FF00,LINETHICK1;DRAWTEXTABS(125,13,'预计今天:'+NUMTOSTRN(预测今天/10000,2)+'亿'),COLOR00FFFF,LINETHICK1;DRAWTEXTABS(450,2,'交易时间:'+INTPART(交易小时)+'小时'+NUMTOSTRN(剩余分时,0)+'分'+NUMTOSTRN(剩余秒时,0)+'秒'+' 已成交金额'+':'+NUMTOSTRN(今天成交额/10000,2)+'亿元'),ColorF5FF00,LINETHICK2,PRECIS2;DRAWFLAGTEXT(1,V,'<*t=80FF00*><*c=0000FF*><*p=95*>'+datestr(dat e)+'\n'+'<*t=E7FFFF*><*c=111100*><*p=95*>'+'成交量'+成交量+'<*t=E7FFFF*><*c=0000FF*><*p=95*>'+' 成交额'+NUMTOSTRN(成交额*10000,0)+'万元');{柱图}图长度像素:=230*0.5;昨天图长度:=230+图长度像素;预测今天图:=(预测今天/昨天成交额)*图长度像素+230;目前成交图:=(今天成交额/昨天成交额)*图长度像素+230; DRAWRECTABS(230,1,昨天图长度,9 ,RGB(0,255,150)); DRAWRECTABS(230,13,目前成交图, 23 ,RGB(255,73,20)); DRAWRECTABS(230,16,预测今天图,20 ,RGB(255,255,0));{立柱说明}DRAWRECTREL( 0,140,115,860,RGB(20,20,20));DRAWRECTREL( 0,140,15,280,RGB(255,255,0));DRAWTEXTREL(20,140,'主力的净买量'),COLORYELLOW; DRAWRECTREL( 0,280,15,420,RGB(0,255,255));DRAWTEXTREL(20,280,'主力的净卖量'),COLORFFFF00; DRAWRECTREL( 0,420,15,560,RGB(255,25,0));DRAWTEXTREL(20,420,'超过五日均量'),COLOR0025FF; DRAWRECTREL( 0,560,15,700,RGB(0,255,0));DRAWTEXTREL(20,560,'低于廿日均量'),COLOR00FF00; DRAWRECTREL( 0,700,15,840,RGB(200,0,200));DRAWTEXTREL(20,700,'主力外成交量'),COLORFF00FF; DRAWTEXTREL(0,0,'成交量'),COLORYELLOW;{DRAWTEXTREL(600,900,'证券代码: '+STKLABEL+' 证券名称:'+STKNAME+''),ColorFFAA00;};。
非常实用的波段神器通达信指标公式源码
非常实用的波段神器通达信指标公式源码以下是通达信指标公式的一些源码,这些指标常被视为实用的波段神器。
1.均线指标公式:MA(CLOSE,N):=AVERAGE(CLOSE,N);MA(CLOSE,N1,N2):=MA(MA(CLOSE,N1),N2);2.相对强弱指标公式(RSI):LC:=REF(CLOSE,1);RSI(CLOSE,N):=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;3. 动量指标公式(Momentum):MOM(CLOSE,N):=CLOSE-REF(CLOSE,N);4. 平均幅度指标公式(Average True Range, ATR):TR:=MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1)),ABS(LOW-REF(CLOSE,1))),ABS(HIGH-REF(LOW,1)));ATR(N):=MA(TR,N);5. 布林带指标公式(Bollinger Bands):MB:=MA(CLOSE,N);UP:=MB+STD(CLOSE,N)*K;DN:=MB-STD(CLOSE,N)*K;6. 弗拉基米尔指标公式(Vladimir):TYP:=(HIGH+LOW+CLOSE)/3;VOLMA(CLOSE,V):=MA(VOL,V);FRAV(TYP):=MA(TYP*(HIGH-LOW),VI);FAPT:=(FRAV(TYP)/VOLMA(CLOSE,V))/FRAV(TYP)*FRAV(VOLMA(CLOSE, VI)-VOLMA(CLOSE,V));7. 成交量指标公式(Volume):VOLMA(CLOSE,N):=MA(VOL,N);以上是一些通达信指标公式的简单示例。
请注意,这些只是指标的公式描述,实际使用中可能需要根据自己的需求进行修改和优化。
波段指标——做波段的利器通达信指标公式源码
波段指标——做波段的利器用着还不错。
如果你选好合适的股,短线获利也很丰厚。
GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);"下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);""RRRSV:=SMA(下档线,3,1);""KKK:=SMA(RRRSV,3,1);"DDDDD:=((3 * RRRSV) - (2 * KKK));"JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);" "RSV24:=SMA(JJ12,3,1);""K24:=SMA(RSV24,3,1);"D24:=((3 * RSV24) - (2 * K24));"压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)) )),COLORFFFFFF;""底部:=LLV(HIGH,30),COLOR00FF00;""今日阻力:REF(明日阻力, 1),NODRAW;""今日支撑:REF(明日支撑, 1),NODRAW;""压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;""底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;"" VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);"" VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);"" VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;" "DRAWICON(CROSS(LLV(AMOUNT/V/100,3),L) AND V>REF(V,3) ANDC<O,O*1.1,2);""MA6:EMA(C,6),COLORMAGENTA;""MA18:EMA(C,18),COLORYELLOW;""STICKLINE(MA6>MA18 AND MA6>=REF(MA6,1) ANDMA18>REF(MA18,1),MA6,MA18,0.3,0),COLORRED;""STICKLINE(MA6>MA18 AND MA6<REF(MA6,1) ANDMA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORYELLOW;""STICKLINE(MA6<MA18 AND MA6<=REF(MA6,1) ANDMA18<REF(MA18,1),MA6,MA18,0.3,0),COLORGREEN;""STICKLINE(MA6<MA18 AND MA6>REF(MA6,1) ANDMA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN;""STICKLINE(MA6>MA18 AND MA6>REF(MA6,1) ANDMA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA;" "STICKLINE(MA6<MA18 AND MA6<REF(MA6,1) ANDMA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE;""买进:=CROSS(MA6,MA18) AND MA18>=REF(MA18,1);" "DRAWICON(买进,L*0.95,9);""DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'S'),COLORCYAN;"。
通达信波段操作指标公式(源码副图主图贴图)
通达信波段操作指标公式(源码副图主图贴图)通达信波段操作指标公式(源码副图主图贴图)X:=REF(CLOSE,1)<REF(CLOSE,2) AND REF(VOL,1)>MAX(REF(MA(VOL,5),1),MAX(REF(MA(VOL,10),1),RE F(MA(VOL,20),1))) AND REF(VOL,1)>REF(MA(VOL,20),1)*1.1;Y:=IF(X,MIN(REF(LOW,1),LOW),0);Z1:=REF(Y,BARSLAST(X));X1:=REF(CLOSE,1)<REF(OPEN,1) AND REF(VOL,1)>MAX(REF(MA(VOL,5),1),MAX(REF(MA(VOL,10),1),RE F(MA(VOL,20),1))) AND REF(AMOUNT,1)=REF(HHV(AMOUNT,20),1) OR REF(CLOSE,1)<REF(OPEN,1) AND REF(AMOUNT,1)=REF(HHV(AMOUNT,20),1);Y1:=IF(X1,REF(CLOSE,1),0);Z2:=REF(Y1,BARSLAST(X1));RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;KK:=SMA(RSV1,5,1);中多:SMA(KK,10,1),COLOR669933;STICKLINE(KK<=中多 ,KK,中多,3,0),COLOR669933;VARE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;RSV3:=SMA(SMA(VARE,3,1),3,1);RSV4:=3*SMA(VARE,3,1)-2*RSV3;短多:EMA(RSV4,5),COLORRED;DRAWICON(CROSS(短多,中多),短多,1);DRAWICON(CROSS(中多,短多),中多,2);STICKLINE(SMA(VARE,3,1)>RSV3 ,SMA(VARE,3,1),RSV3,3,0), COLORRED;STICKLINE(SMA(VARE,3,1)>RSV3 AND CLOSE>Z1 AND CLOSE>Z2 ,SMA(VARE,3,1),RSV3,3,0), COLORCYAN;STICKLINE(SMA(VARE,3,1)>RSV3 ,SMA(VARE,3,1),RSV3,3,0), COLORYELLOW;VAR1:=100*(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21));RSV7:=SMA(VAR1,3,1);STICKLINE(FILTER( RSV7<8, 50) ,0,20,4,0), COLORRED;STICKLINE(FILTER( RSV7<8,50) ,0,8,15,0), COLORYELLOW;STICKLINE(FILTER( RSV7>92, 50),92,100,15,0), COLOR66CC33;STICKLINE(FILTER( RSV7>92, 50),80,92,4,0), COLORRED;VAR2Q:=(MA(CLOSE,80)-MA(CLOSE,13)/3);RSV8:= MA((CLOSE-VAR2Q)/VAR2Q,1);XA:=EMA(RSV8,12)*0.7;XB:=EMA(RSV8,3);IF(LLV(XB-XA,12)>0,0,-5),COLORGREEN,LINETHICK2;103,COLORGREEN,LINETHICK2;0,COLORCYAN,LINETHICK2;DIFF :=( EMA(CLOSE,20) - EMA(CLOSE,90))*100;DEA :=EMA(DIFF,45);MACD :=2*(DIFF-DEA);STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1) ,0,3,40,0),COLOR66CC33;STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1) ,3,6,30,0),COLOR00FFFF;STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1),6,20,0,0),COLORRED;STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),97,100,40,0),COLORFF00FF;STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),94,97,30,0),COLOR00FFFF;STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),80,94,1,0),COLORFF0000;突破线:50,COLORWHITE,LINETHICK2;。
通达信软件指标公式源码通达信量学成交量指标公式源码.docx
通达信量学成交量指标公式源码{VOLUME:VOL Z VOLSTICK;MAV5:MA(VOLUME,M1);MAV20:MA(VOLUME,20);MAV60:MA(VOLUME,20);MAV120:MA(VOLUME Z M2);}绿低量: = 13;蓝低量:=55;灰低量: = 100;{ ------- VOL •量能饱和---- }Nl:=21;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:IF(SAT>1,1,SAT)*100,COLOROOAAFF,NODRAW;中点:二REFDATE(HHV(V,180)*0.5QATE);STICKLINE(CURRBARSCOUNT=N1,中点*1・9,中点*1.5,100,1),COLOROOAAFF; STICKLINE(CURRBARSCOUNT=N1Z中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF;DRAWTEXT(CU RRBARSCOUNT= N1+3,中点*1.8;饱和度COLORYELLOW;=======}H_L:=0.1*CONST(HHV(VOL,240));{MAV10:MA(V,10),COLORYELLOW;}启动5:=MA(V,5),COLORWHITE;洗盘40:=MA(V,40),COLORBLUE;异动135:=MA(V,135),COLORMAGENTA;WOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,O z l,-l),COLOROOCOCO;量:VOL, VOLSTICK;换手:VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}换10T:=SUM(换手,10),NODRAW;倍数: = 1・9;倍量:VOL> = REF(V,1)*倍数AND(IF(C<O Z C>REF(C,1),1)),COLORYELLOW,NODRAW;倍缩:REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;平量:RANGE(V/REF(V,1),0.97,1.03) ANDBARSCOUNT(V)>=2,COLORWHITE,NODRAW;彳氐量10: VOL=LLV(VOL,绿彳氐量)AND BARSCOUNT(V)>=绿彳氐量Z COLORGREEN,NODRAW;低量50: VOL=LLV(VOL,蓝低量)AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;地量:VOL=LLV(VOL,灰彳氐量)AND BARSCOUNT(V)>二灰彳氐量,COLORGRAY,NODRAW;V1:=VOL*0.9;{图标位置}V2:=VOL*0.8;STICKLINE(倍量/ 0,VI, 1,0),COLORYELLOW;STICKLINE(平量,O z VI, l z0),COLORWHITE;STICKLINE(低量10,0, V2,1,0),COLORLIGREEN;STICKLINE(低量50,0,V2,1,0),COLORBLUE;STICKLINE(地量z O,V2,l z O),COLORGRAY;STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;均价:=AMOUNT/VOL/100;TJ01:=C<0 AND 均价>REF(CJ){ AND BARSCOUNT(C)>=240};{假阴真阳}; TJ02:=C<0 AND C>REF(C,1);STICKLINE(TJ01 OR TJ02,0,V,0,0),COLORRED;{假阴柱}真阳或假阴:=C>0 OR C>REF(C,1);收阳匸REF(真阳或假阴,3);倍量1:=REF(倍量Q);高量:=REF(V,3)>=H HV(V,7);三日不破:二LLV(C,3)>=REF(L,3);价升:二COUNT(C>=REF(C,1),3)=3;{收盘价逐升}量缩:=COUNT(Vv=REF(V」),3)=3;连阳:=COUNT(真阳或假阴,3)=3;倍量将军柱:二倍量1AND三日不破AND收阳;高量将军柱:二高量AND三日不破AND收阳;将军柱:二倍量将军柱OR高量将军柱;黄金柱:=将军柱AND价升AND量缩AND连阳;STICKLINE(黄金柱Z0.3*V,0.7*V Z1Z0),COLORRED; {红柱}DRAWICON(黄金柱,V*1.5,1);V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)> = 100; 百口地量群:=COUNT(V100,5)>=3;DRAWTEXT(FILTER(百R 地量群,4),V+3*H_L,地量群'),COLORGRAY;长阴短柱:=C/REF(C,l)<=0.96 AND V<HHV(V,30)/1.9;{DRAWTEXT(长阴短柱,V+1.6*H_L;! ^^OLORLICYAN};DRAWLINE(V=LLV(V,3)Z V,V=HHV(V,3),V,0),COLOR9A90FF;DRAWLINE(V=HHV(V Z7),V Z V=LLV(V Z7),V,0),COLOR9AFF89;DRAWLINE(L=LLV(L, 7),V Z H=HHV(H Z7),V Z0),COLOR9AFF89;DRAWLINE(V=HHV(V Z21)Z V,V=LLV(V,21)Z V,0)Z COLORC100FF;DRAWLINE(V=LLV(V,21)Z V,V=HHV(V Z21),V Z0)Z COLORC100FF;DRAWLINE(V=HHV(V/35),V,V=LLV(V,35)/V,0),COLORC1005B;DRAWLINE(V=LLV(V,35)Z V,V=HHV(V Z35),V,0),COLORC1005B;DRAWLINE(V=HHV(V,49)Z V Z V=LLV(V,49),V z0),COLORYELLOW;DRAWLINE(V=LLV(V,49)MV=HHV(V,49)M0),COLOR YELLOW;rT 1 79 地更 0 00 地里群 姬群 停 10^1 oroo 少• 「 倍g ooo 平更:aoo 氐虽M ow。
通达信量能指标公式源码
通达信量能指标公式源码```周期=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(`函数将主力买卖比例和散户买卖比例画在图表上,使用红色和绿色分别表示。
这段代码的作用是计算并绘制通达信量能指标中的主力买卖比例和散户买卖比例曲线。
这些曲线可以帮助分析市场的买卖力量和趋势,更好地理解市场的活跃度和价格行为。
通达信指标公式源码自用的成交量指标
自用的成交量指标成交量:VOL,POINTDOT;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2)),POINTDOT,COLORYELLOW;STICKLINE(主动买盘>0,0,VOL,2,0),COLORGREEN;STICKLINE(主动买盘>0,0,主动买盘,2,1),COLORRED;主买比%:主动买盘/VOL*100,POINTDOT,COLORCYAN;{主力活跃度}主力活跃度:(LARGEINTRDVOL+LARGEOUTTRDVOL)*10000/(2*FINANCE(7))*HHV(V,1000)/10,NO DRAW,COLORGREEN;五日活跃:EMA(主力活跃度,5),COLORWHITE;十日活跃:EMA(主力活跃度,10),COLORYELLOW;二十日活跃:EMA(主力活跃度,20),COLORMAGENTA;DRAWICON(CROSS(五日活跃,十日活跃),五日活跃,24);DRAWICON(CROSS(五日活跃,二十日活跃),五日活跃,25);DRAWICON(CROSS(十日活跃,二十日活跃),五日活跃,26);MA3:MA(成交量,60),COLORBLUE;{====紫柱======}N:=60;A:=IF(H>L,V,100000*V);N1:=IF(LLV(A,N)>500000,60,IF(LLV(A,N)>100000,55,IF(LLV(A,N)>50000,45,IF(LLV(A,N )>10000,40,35))));P:=IF(LLV(A,N)>500000,1.5,IF(LLV(A,N)>100000,1.45,IF(LLV(A,N)>50000,1.4,IF(LLV(A, N)>10000,1.35,1.3))));A1:=P*(LLV(A,N1)+REF(LLV(A,N1),N1+1)+REF(LLV(A,N1),2*N1+2))/3;A2:=IF(CURRBARSCOUNT<4*N1,CONST(A1),DRAWNULL),DOTLINE;A3:=V<A2 AND CURRBARSCOUNT<3*N1;STICKLINE(A3,V,0,2,0),COLORMAGENTA;。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{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;。
通达信指标公式源码 波段操作指标(粉色区域持股,出现绿柱抛出)
RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));VAR21:=SMA(RSVA2,9,1)+100;VAR11:=SMA(RSVA1,3,1);VAR51:=SMA(VAR11,3,1)+100;顶底线:=VAR51-VAR21+50;VAR2:=LLV(LOW,33);VAR3:=HHV(HIGH,21);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);STICKLINE(C,100,90,4,0),COLORFFCC33;STICKLINE(C,90,80,4,0),COLORFF9933;STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR9999FF;STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLOR009966;STICKLINE((趋势>REF(趋势,1) AND 顶底线<REF(顶底线,1)),20,80,4,0),COLOR9999FF; STICKLINE((趋势<REF(趋势,1) AND 顶底线>REF(顶底线,1)),20,80,4,0),COLOR009966; STICKLINE(C,20,10,4,0),COLORFF6633;STICKLINE(C,10,0,4,0),COLORFF3333;底线:10,COLORWHITE;顶线:90,COLORWHITE;趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,COLORBLUE;当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED; DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,45,'绿区持币'),COLORFFC000;DRAWTEXT(CURRBARSCOUNT=6,50,'(投资区)'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,55,'粉区持股'),COLORFFC000;DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE;{强拉升}Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,1)),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));STICKLINE(CROSS(Q,0),15,0,4,0), , COLORYELLOW;强拉升: IF(CROSS(Q,0),1,0),COLORYELLOW;Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00,LINETHICK2; STICKLINE(CROSS(Q1,-24),20,0,4,0), , COLORMAGENTA;加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;VAR22:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);天:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));地:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));STICKLINE(地>天AND 地<0,10,0,1,0),COLORRED;开始拉升:STICKLINE(地>天AND 地<0,10,0,1,0)=1,COLORRED;{<<波段绝品>>}VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2B:=SMA(VAR1B,9,1)+100;VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4B:=SMA(VAR3B,3,1);VAR5B:=SMA(VAR4B,3,1)+100;VAR6B:=VAR5B-VAR2B;趋势1: IF(VAR6B>45,VAR6B-45,0),COLOR00FFFF,LINETHICK2;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;火焰山:=IF(VAR8Q>100,100,VAR8Q);STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,3.5,0 ),COLOR4444FF; STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,2.5,0 ),COLOR5555FF; STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,1.5,0 ),COLOR7777FF; STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,0.5,0 ),COLOR9999FF; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR000033; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR000055; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR000077; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR000099; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR0000DD; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR003300; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR005500; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR007700; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR009900; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR00DD00;逃顶:=CROSS(82,RSI);STICKLINE( 逃顶,逃顶,10,3.5,0),COLORFF5500;STICKLINE( 逃顶,逃顶,15,2.5,0),COLORFF8800;STICKLINE( 逃顶,逃顶,20,1.5,0),COLORFFAA00;STICKLINE( 逃顶,逃顶,25,0.5,0),COLORFFCC00;STICKLINE( 逃顶,逃顶,30,0.1,0),COLORFFFF00;D1:=(C+L+H)/3;D2:=EMA(D1,6);D3:=EMA(D2,5);BBUY:=CROSS(D2,D3);强弱线:50,COLORGREEN,POINTDOT;DRAWICON(BBUY,20,1);VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,VARR1),10,15);DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;。
通达信指标公式源码主力成交量
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)<MA(CLOSE,10) AND MA(CLOSE,10)<MA(CLOSE,30);{多头成交: }STICKLINE(CLOSE>MA(CLOSE,30),0,VOL,4,1),COLORRED;{空头成交: }STICKLINE(CLOSE<MA(CLOSE,30),0,VOL,4,1),COLORGREEN;{向上攻击量: }STICKLINE(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN,0,VAR6,4,0),COLORRED;{向下攻击量: }STICKLINE(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN,0,VAR6,4,0),COLORGREEN;{上探量: }STICKLINE(VAR7>VAR6 AND VAR7>VAR8,0,VAR7,4,0),COLORCCCC66;{下探量: }STICKLINE(VAR8>VAR6 AND VAR8>VAR7,0,VAR8,4,0),COLORFF6633;{相对地量:} STICKLINE(VAR9>2 AND VOL<MA(VOL,5)/2,0,VOL,2.5,0),COLORYELLOW; DRAWTEXT(VAR9>2 AND VOL<MA(VOL,5)/2,VOL,'地量'),COLORYELLOW;{放量: }STICKLINE(VOL>MA(VOL,5)*2.5,0,VOL,2.5,0),COLORWHITE;DRAWTEXT(VAR7>VAR6 AND VARA>2 AND VAR7>VAR8 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) AND VAR7>=MA(VOL,5),VOL,'逢高出货'),COLORGREEN;DRAWTEXT(VAR8>VAR6 AND VAR8>VAR7 AND VARA<-2 AND CLOSE<MA(CLOSE,30) AND VAR8<MA(VOL,5)/2 AND MA(VOL,5)<MA(VOL,10),VOL,'逢低跟进'),COLORMAGENTA;DRAWTEXT(VAR6>MA(VOL,5)*2 AND VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN OR VOL>MA(VOL,5)*3 AND VARB,VOL,'强势参与'),COLORCC99CC; DRAWTEXT(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN AND VAR6/VOL>0.7 AND VARC AND VAR6>MA(VOL,5),VAR6*2,'空头释放'),COLORGREEN;V5:MA(VOL,5),COLORWHITE;V10:MA(VOL,10),COLORGREEN;V20:MA(VOL,20),COLORYELLOW;。
通达信指标公式源码 波段操盘主图指标 源码 无未来
指标用于波段操作!红线持股、绿线持币。
买、卖有提示,配合其他指标更准确简单实用,公式只是参考要灵活应用。
N1:=13;VAR1:=REF(C,1);VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000;VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N1),VAR2,VAR2<=LLV(VAR2,N1),VAR2,1); VAR4:=VAR2=VAR3;VAR5:=VAR2<REF(VAR2,1);RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;K:=SMA(RSV,4,1);D:=SMA(K,4,1);J:=4*K-2*D;VAR6:=(2*C+H+L)/4;{可将3该为4,信号少点}VAR7:=EMA(EMA(EMA(VAR6,4),4),4);{可将3该为4,信号少点}VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;VAR9:=MA(VAR8,4)+0.03;VAR10:=MA(VAR8,1);KB:=EMA(C,4)-EMA(C,18);DB:=EMA(KB,4);AA:=BARSCOUNT(C);AH:=HHV(H,120);AL:=LLV(L,120);A0:=(AH-AL)/30;VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,3.2,0),COLOR004400; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.7,0),COLOR006600; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.1,0),COLOR008800;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,1.5,0),COLOR00AA00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.9,0),COLOR00CC00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.3,0),COLOR00EE00;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,3.2,0),COLOR000055;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.7,0),COLOR000077;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.1,0),COLOR000099;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,1.5,0),COLOR0000BB;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.9,0),COLOR0000DD;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.3,0),COLOR0000FF;STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,3.15,0),COLORAA1100; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,2.45,0),COLORAA3300; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.75,0),COLORAA5500; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.05,0),COLORAA7700; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,0.35,0),COLORAA9900; STICKLINE(VAR4 AND VAR5,L,OPEN,3.15,0),COLOR1111FF;STICKLINE(VAR4 AND VAR5,L,OPEN,2.45,0),COLOR3333FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.75,0),COLOR5555FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.05,0),COLOR7777FF;STICKLINE(VAR4 AND VAR5,L,OPEN,0.35,0),COLOR9999FF;STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,3.15,0),COLOR770077; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,2.45,0),COLOR990099; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.75,0),COLORBB00BB; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.05,0),COLORDD00DD; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,0.35,0),COLORFF00FF; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,3.15,0),COLOR337777; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,2.45,0),COLOR339999; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.75,0),COLOR33BBBB;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.05,0),COLOR33DDDD;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,0.35,0),COLOR33FFFF; STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L,OPEN,3.15,1),COLORFFFFFF; DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*1,'时间窗'),COLORFFFFFF; DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*1,'吸'),COLORFF00FF;DRAWICON(CROSS(VAR9,VAR10) AND J>65,H*1,15),COLORGREEN;DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1,' 卖'),COLORYELLOW;DRAWICON(VAR4 AND VAR5,L*1,9);DRAWTEXT(VAR4 AND VAR5,L*1,' 买')COLORFFFFFF;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量买点'),COLOR33FFFF;B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);停损下限:IF(LLV(MA(B2,8),3)<B2,LLV(MA(B2,8),3),B2);IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;IF(B2<SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK4;SNAKEA:HHV(MA(B2,1),13),COLORYELLOW;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR2A:=MA(VAR1A,7);VAR3A:=VAR2A-MA(VAR1A,7/2)<0;VAR4A:=VAR2A-MA(VAR1A,7/2)>0;VAR5A:=BARSLAST(VAR3A);VAR6A:=0-BARSLAST(VAR4A);VAR7A:=IF(VAR3A<=0,VAR5A,VAR6A);STICKLINE(SNAKEA>SMA2 AND B2<SMA2,SNAKEA,SMA2,0,0),COLORBLUE;VAR11A:=(CLOSE*2+HIGH+LOW)/4;VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34);VAR31A:=EMA(VAR21A,5);VARA:=((REF(VAR9,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARB:=((REF(VARA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARC:=((REF(VARB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARD:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR11:=((REF(VAR10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR14:=((REF(VAR13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR1B:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);A13:=EMA(CLOSE,55);A14:=MA(CLOSE,75);A15:=EMA(A14,3);A16:=EMA(A15,3);A17:=(HIGH + LOW) / 5;A18:=(MA(A17,4)) - (MA(A17,34));A19:=CROSS(A18,0);A20:=CROSS(0,A18);A21:=BARSLAST(A19);A22:=BARSLAST(A20);A23:=REF(A19,1);A24:=REF(A20,1);A25:=BARSLAST(A23);A26:=BARSLAST(A24);A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22);A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);A30:=A28 AND ((COUNT(A28,A21)) = 1);A31:=A29 AND ((COUNT(A29,A22)) = 1);A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC := MA(CLOSE,22);UPPERC:= MIDC + 2*STD(C,22);LOWERC:= MIDC - 2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);BBC:=FORCAST(BBA,3);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));VAR20:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); DRAWTEXT(VAR20 AND COUNT(VAR20,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF;。
波段操盘(主图 源码)通达信指标公式源码
波段操盘(主图源码)这个指标在大智慧上用了段时间个人感觉还不错挺清爽的一目了然O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1;O2:EMA(O1,3),COLORFF00FF,LINETHICK1;O3:EMA(O2,3),COLOR00FF00,LINETHICK1;MMM:=MA(CLOSE,20);DRAWTEXT((CLOSE<MMM),MMM,'*'),COLOR00FF00,LINETHICK5;DRAWTEXT((CLOSE>MMM),MMM,'*'),COLOR0000FF,LINETHICK5;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00; DRAWTEXT(FILTER(VAR19=1,5),LOW,'买进'),COLORFF00FF;DRAWICON(FILTER(VAR19=1,5),LOW,9);DRAWTEXT(FILTER(VAR1A=1,5),HIGH,'逃顶'),COLOR00FF00; DRAWICON(FILTER(VAR1A=1,5),HIGH,15);。
波段操作 胜率98%以上通达信指标公式源码
波段操作胜率98%以上多年来一直使用的附图公式,也是我见过的较为复杂的附图公式,看源码就知道了。
按照图中出现“买”字买入,黄线下穿白线或红线,或者出现“大笔出货”字样则卖出,适合短线、中线及长线。
还有很多自己去理解吧。
关键是要按照纪律买卖,记得哦,一定要按照纪律买卖。
{哦哦哦}VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);指标:= EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:EMA(VAR7,5)*2, COLORFF00FF;D:EMA(K,5), COLORWHITE;J:K*3-D*2, COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;换手:= VOL/CAPITAL*100, COLORGREEN;成交〖万手〗:= VOL/10000, COLORYELLOW;DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),-10{15},'接近底部'),LINETHICK1,COLORYELLOW;STICKLINE(VAR8=10 ANDFILTER(VAR8=10,5),-1.6{20},-10,5,0),COLORYELLOW;DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;STICKLINE((VARA=20),0,10,5,0),COLORWHITE;VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF;STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR11:=VAR(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF; VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100; DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66;STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;。
通达信难得一见的成交量公式-(源码)
通达信难得一见的成交量公式-(源码)周换:SUM(V/CAPITAL*100,5),NODRAW,COLORMAGENTA;预测:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测,0,-1,-1),COLOR00C0C0;持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLE DOT,COLORGREEN;持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLED OT,COLORMAGENTA;JJ:=(HIGH+LOW+CLOSE)/3;QJ9:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);TD1:=QJ9*(MIN(OPEN,CLOSE)-LOW);XD1:=QJ9*(JJ-MIN(CLOSE,OPEN));XD2:=QJ9*(HIGH-MAX(OPEN,CLOSE));TD2:=QJ9*(MAX(CLOSE,OPEN)-JJ);日净:((TD1+XD1)-(TD2+XD2))/10000,NODRAW; 周净:SUM(日净,5),NODRAW;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));特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;主力净流入:MA(买量+卖量/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1;量〗:VOL,NODRAW,VOLSTICK;STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORGREEN;STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;DRAWLINE(V>=HHV(V,30),V,V<=LLV(V,10),HHV(V,6),1), COLORFFCCCC;VAR7:=(HIGH - LOW);VAR8:=ABS((OPEN - CLOSE));VAR9:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR10:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR11:=((VAR8 / VAR7) * VOL);VAR12:=((VAR9 / VAR7) * VOL);VAR13:=((VAR10 / VAR7) * VOL);VAR14:=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) < MA(CLOSE,10)) AND(MA(CLOSE,10) < MA(CLOSE,30)));VARD:=REF(CLOSE,1);DRAWTEXT(((VAR14 > 2) AND (VOL < (MA(VOL,5) / 2))),V-15000,''),COLORFB2DFB;DRAWTEXT(((VAR14 > 2) AND (VOL < (MA(VOL,5) / 2))),V+59000,'地'),COLORFB2DFB;换手率:=((VOL / CAPITAL) * 100);DRAWTEXT((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率> 1)),(V+55000),'变'),COLORFFFFCC;量:=IF((CLOSE > 200),(VOL / 1000000),(VOL / 100)), LINETHICK0;振幅:=(((HIGH - LOW) / LOW) * 100);DRAWTEXT(VAR12>VAR11 AND VARA>2 ANDVAR12>VAR13 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA (CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) ANDVAR12>=MA(VOL,5),V+5000,'高'),COLORGREEN;DRAWTEXT(VAR13>VAR11 AND VAR13>VAR12 AND VARA<-2 AND CLOSE<MA(CLOSE,30) ANDVAR13<MA (VOL,5)/2 ANDMA(VOL,5)<MA(VOL,10),V+5000,'低'), COLORYELLOW;LC1:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;抓大牛:CROSS(RSI1,11);DRAWTEXT(抓大牛,V+55000,'抓'),COLORRED;EMA13:=EMA(C,13),COLORFF8080;DRAWTEXT(CROSS(HIGH,EMA13),V+5000,'底'),COLORYELLOW;A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);VAR1:=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);VAR2:=EMA(VAR1,8);VAR3:=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(VAR3,3)-10;STICKLINE((A09>0) AND 趋势<40,0,V/6,2,0),COLORMAGENTA;粉色机构建仓区:0,LINETHICK0,COLORMAGENTA;A011:=DYNAINFO( 5);A013:=BARSCOUNT(HIGH);A014:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);A015:=IF((A013 > 20),A014,0);A016:=IF((HIGH < A011),0,IF((LOW > A011),1,(((A011 - HIGH) + 0.009) / ((LOW - HIGH) + 0.009))));A017:=DMA(A016,(VOL / CAPITAL)) * 60;A019:=IF((((A017 >0) AND (A017 > REF(A017,1))) AND (A015 >= 88)),A017,0);VAR21:=3*SMA((CLOSE-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1)-2*SMA(SMA((HIGH-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1),3,1);VAR22:=EMA(VAR21,8);VAR23:=3*SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1)-2*SMA(SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1),3,1);趋势1:=EMA(VAR23,3)-10;STICKLINE((A019 > 0 AND (趋势1<20 OR 趋势1>REF(趋势1,1)AND 趋势1<50)),0,V/5,2,0),COLORGREEN;绿色机构出仓区:0,LINETHICK0,COLORGREEN;AB:DRAWLINE(V>=HHV(V,10),V,V<=LLV(V,3),HHV(V,3), 1),COLORYELLOW;DRAWTEXT(CROSS(C,AB),C+5000,'B'),COLORYELLOW;。
成交量波段操盘通达信指标公式源码
VAR3:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K13:SMA(VAR3,3,1) ;D14:SMA(K13,3,1) ;J13:=3*K13-2*D14;VAR31:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;K21:=SMA(VAR31,3,1) ;D21:=SMA(K21,3,1) ;VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;K34:=SMA(VAR34,3,1);D34:=SMA(K34,3,1) ;VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K55:SMA(VAR55,5,1) ,COLORGREEN,LINETHICK1;D55:SMA(K55,5,1),COLORFF9933;J55:=3*K55-2*D55;VAR79:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;DIBU:= K13<20 AND D14<20 AND K21<20 AND D21<20 AND K34<20 AND D34<20 AND K55<20 AND D55<20;STICKLINE(DIBU=1,80,60,5.8,1),COLORRED;TOBU:= K13>80 AND D14>80 AND K21>80 AND D21>80 AND K34>80 AND D34>80 AND K55>80 AND D55>80;STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;顶部:80,COLOR55AA77,LINETHICK1;底部:20,COLOR55AA77,LINETHICK1;中轴线:50,POINTDOT,COLORWHITE;天线:100, POINTDOT,COLORWHITE;底线:0, POINTDOT,COLORWHITE;现价:=C;VAR108:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2 *SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR118:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR128:=VAR108<REF(VAR118,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR128 AND COUNT(VAR128,30)=1,40,'有大资金进场迹象,关注!');VAR2:=LLV(LOW,10);VAR33:=HHV(HIGH,25);动力线:= EMA((CLOSE-VAR2)/(VAR33-VAR2)*4,4);底部2:=0.2,COLOR70DB93;关注:=0.5,COLORYELLOW;数值:=动力线,COLORA8A8A8;阶段底部:=CROSS(动力线,底部2);STICKLINE(阶段底部,0.2,49,1,0),COLORRED;DRAWICON(阶段底部,50,11);阶段关注:=CROSS(动力线,关注);STICKLINE(阶段关注,0.1,20,1,0),COLORMAGENTA;阶段卖出:= 3.2,COLORC6C600;BB:=3.5,COLOR0088FF;清仓卖出:=3.5,COLORFF75FF;清仓:=CROSS(清仓卖出,动力线);STICKLINE(清仓,100,70,1,0),COLORBLUE;短线卖出:=CROSS(阶段卖出,动力线);STICKLINE(短线卖出,100,90,2,0),COLORGREEN;A1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A2:=SMA(A1,3,1);A3:=SMA(A2,3,1);A4:=3*A2-2*A3;X:=LLV(A4,2)=LLV(A4,8);LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR1);MDI:=((DMM * 100) / TR1);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX); DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);最佳买入:=(AV + NEWVOL);最佳买入选股:=IF(CROSS(最佳买入,0),1,0);VAR11:=SMA(最佳买入选股,3,1);VAR22:=SMA(VAR11,3,1);VAR333:=SMA(VAR22,3,1);XG:=CROSS(A4,REF(A4+0.01,1)) AND X AND A4<20 AND CROSS(VAR22,VAR333) AND VAR22<40;STICKLINE(XG,0.2,10,2,0),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=60,90,'K值线多头排列,做多'),COLORRED;地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量'),COLOR00FFFF;STICKLINE(地量>0,0,30,2,0),COLOR008888;STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
VAR3:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K13:SMA(VAR3,3,1) ;
D14:SMA(K13,3,1) ;
J13:=3*K13-2*D14;
VAR31:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K21:=SMA(VAR31,3,1) ;
D21:=SMA(K21,3,1) ;
VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K34:=SMA(VAR34,3,1);
D34:=SMA(K34,3,1) ;
VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K55:SMA(VAR55,5,1) ,COLORGREEN,LINETHICK1;
D55:SMA(K55,5,1),COLORFF9933;
J55:=3*K55-2*D55;
VAR79:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
DIBU:= K13<20 AND D14<20 AND K21<20 AND D21<20 AND K34<20 AND D34<20 AND K55<20 AND D55<20;
STICKLINE(DIBU=1,80,60,5.8,1),COLORRED;
TOBU:= K13>80 AND D14>80 AND K21>80 AND D21>80 AND K34>80 AND D34>80 AND K55>80 AND D55>80;
STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;
顶部:80,COLOR55AA77,LINETHICK1;
底部:20,COLOR55AA77,LINETHICK1;
中轴线:50,POINTDOT,COLORWHITE;
天线:100, POINTDOT,COLORWHITE;
底线:0, POINTDOT,COLORWHITE;
现价:=C;
VAR108:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2 *SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR118:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR128:=VAR108<REF(VAR118,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR128 AND COUNT(VAR128,30)=1,40,'有大资金进场迹象,关注!');
VAR2:=LLV(LOW,10);
VAR33:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VAR2)/(VAR33-VAR2)*4,4);
底部2:=0.2,COLOR70DB93;
关注:=0.5,COLORYELLOW;
数值:=动力线,COLORA8A8A8;
阶段底部:=CROSS(动力线,底部2);
STICKLINE(阶段底部,0.2,49,1,0),COLORRED;
DRAWICON(阶段底部,50,11);
阶段关注:=CROSS(动力线,关注);
STICKLINE(阶段关注,0.1,20,1,0),COLORMAGENTA;
阶段卖出:= 3.2,COLORC6C600;
BB:=3.5,COLOR0088FF;
清仓卖出:=3.5,COLORFF75FF;
清仓:=CROSS(清仓卖出,动力线);
STICKLINE(清仓,100,70,1,0),COLORBLUE;
短线卖出:=CROSS(阶段卖出,动力线);
STICKLINE(短线卖出,100,90,2,0),COLORGREEN;
A1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A2:=SMA(A1,3,1);
A3:=SMA(A2,3,1);
A4:=3*A2-2*A3;
X:=LLV(A4,2)=LLV(A4,8);
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX); DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);
最佳买入:=(AV + NEWVOL);
最佳买入选股:=IF(CROSS(最佳买入,0),1,0);
VAR11:=SMA(最佳买入选股,3,1);
VAR22:=SMA(VAR11,3,1);
VAR333:=SMA(VAR22,3,1);
XG:=CROSS(A4,REF(A4+0.01,1)) AND X AND A4<20 AND CROSS(VAR22,VAR333) AND VAR22<40;
STICKLINE(XG,0.2,10,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=60,90,'K值线多头排列,做多'),COLORRED;
地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量'),COLOR00FFFF;
STICKLINE(地量>0,0,30,2,0),COLOR008888;
STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;
STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;
STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;。