通达信指标公式源码 成交量决定买卖指标
通达信指标公式源码 预测成交量公式
{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;};。
买卖明确通达信指标公式源码
买卖明确通达信指标公式源码简单主图,买卖点明确指标源码:EXP1:EMA(CLOSE,M1)COLORRED,LINETHICK2;EXP2:EMA(CLOSE,M2)COLORBLUE,LINETHICK2;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),0),34,1)/SMA(ABS(CLOSE-REF (CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF (CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=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);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) AND REF(ZIG(3,22),1)<=REF(ZIG (3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG (3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG (3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)=REF(ZIG (3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG (3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORY ELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买入'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGR EEN; DRAWTEXT(卖1>0,HIGH*1.02,'卖出'),COLORGREEN;{孟氏决策}VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV (LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV (LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV (LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW *0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;。
通达信指标公式源码 买卖力度副图指标公式
{买卖力度N=1,100,9 M=1,100,3}LOWV:=LLV(LOW,N);HIGHV:=HHV(HIGH,N);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M); K:=EMA(RSV,M);领涨操盘线:MA(K,M);买卖差:=K-领涨操盘线;STICKLINE(买卖差>=0,(K-买卖差*0.05),(K-买卖差*0.15),1,0) ,COLOR00FFFF;STICKLINE(买卖差>=0,(K-买卖差*0.2),(K-买卖差*0.35),2,0) ,COLOR00CCFF;STICKLINE(买卖差>=0,(K-买卖差*0.4),(K-买卖差*0.55),3,0) ,COLOR0099FF;STICKLINE(买卖差>=0,(K-买卖差*0.6),(K-买卖差*0.75),4,0) ,COLOR0066FF;STICKLINE(买卖差>=0,(K-买卖差*0.8),(K-买卖差*0.95),5,0) ,COLOR0000CC;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.05),(领涨操盘线+买卖差*0.15),5,0) ,COLOR006600;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.2),(领涨操盘线+买卖差*0.35),4,0) ,COLOR009900;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.4),(领涨操盘线+买卖差*0.55),3,0) ,COLOR00CC00;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.6),(领涨操盘线+买卖差*0.75),2,0) ,COLOR00FF00;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.8),(领涨操盘线+买卖差*0.95),1,0) ,COLOR66FF00;。
通达信量能指标公式源码
通达信量能指标公式源码```周期=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(`函数将主力买卖比例和散户买卖比例画在图表上,使用红色和绿色分别表示。
这段代码的作用是计算并绘制通达信量能指标中的主力买卖比例和散户买卖比例曲线。
这些曲线可以帮助分析市场的买卖力量和趋势,更好地理解市场的活跃度和价格行为。
通达信指标公式源码 个股成交量一目了然
使用说明:1.A股指流通股多少亿手;(判断大盘和小盘的依据)2.柱状图中红线框指总成交量,红色填满区域代表主动买入估算,绿色填满区域代表主动卖出估算。
(单位:金额)3.资金异动指近期此股有无异常资金进出,柱状图以黄色柱状显示;4.五角星代表五日均量上穿13日均量,量能放大。
换手率就不说了,大家都知道。
5.长时间无黄柱或希希拉拉,说明无大资金进入,股票将继续原有趋势;有黄色柱状出现,此时有资金进入,连续黄柱出现,说明明显有庄家进入,可跟进待涨。
A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;成交量:VOL,POINTDOT,COLORYELLOW;{VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;预测:=IF(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL /2)),POINTDOT,COLORRED;主卖:IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA*(HIGH-LOW),VOL /2)),COLORCYAN,POINTDOT; STICKLINE(C>=REF(C,1) ,0,VOL,2.2,1),COLORRED; STICKLINE(C<REF(C,1),0,VOL,2.2,1),COLORCYAN; STICKLINE(主买>0,0,主买,2.2,0),COLORRED;资金异动:VOL/MA(VOL,55)*100,COLORYELLOW; STICKLINE(主卖>0,0,主卖,0.8,0),COLORCYAN; STICKLINE(资金异动>100 ,0,VOL,0.1,0),COLORYELLOW; 成交量比%:主买/VOL*100,COLORWHITE,NODRAW;换手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE;。
通达信经典成交量指标共五个源码
通达信经典成交量指标共五个源码以下是通达信经典成交量指标共五个源码(无源码的请下载附件导入)通达信经典成交量指标共五个源码第一个:{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;。
通达信指标公式源码 短线买卖指标组合
1.投机指标投机5:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORred;投机10:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORwhite;投机20:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000;投机30:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF;抄底: IF(TROUGHBARS(2,5,1)=0 ANDHIGH>LOW+0.01,20,0),COLORFF66FF ,LINETHICK2 ;卖出: IF(投机20>=100,30,0),LINETHICK2,COLORGREEN;2.收藏很久(N 1 100 5)趋势线:3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,N,1),3,1);见底: 10;准备: IF(趋势线<=20,40,0);买入: IF(CROSS(趋势线,见底),60,0),colorred;卖出: IF(趋势线>=80,100,0);3.绝对稳赚(N 1 100 5)Var1:=REF(CLOSE,2);A2: SMA(MAX(CLOSE-Var1,0),N,1)/SMA(ABS(CLOSE-Var1),N,1)*100, COLORyellow;买1: IF(A2<16,30,0); DRAWTEXT(A2<10,60,'买'),COLORF0F000;Var2:=REF(CLOSE,1);Var3:=SMA(MAX(CLOSE-Var2,0),5,1)/SMA(ABS(CLOSE-Var2),5,1)*100;抄底: IF(Var3<10,30,0);DRAWTEXT(Var3<10,40,'底'),COLORF0F000;逢高派发区: STICKLINE(A2>=80,A2+1,A2-1,1.5,0), COLORRED,LINEthICK3; VAR1J:=close/(ema(ema((c+l+h)/3,3),26)*0.9)<0.95 ;放箭:IF(VAR1J,15,0),STICK,linethick3,COLORRED;DRAWTEXT(VAR1J ,10,'箭'),COLORF0F000;Vare1:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);Vare2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);Vare3:=IF(Vare1>0.010, 0.900, 1) AND IF(Vare1>(-0.025), 1, 1.200);Vare4:=Vare3*(Vare2-Vare1)*100;Vare5:=SUM(Vare4, 10);Vare6:=SMA(Vare5, 40, 1);Vare7:=IF(CLOSE and MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,88,0);{Var38>Var39;}Vare8:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND Vare7>0, 91, 0);追击:IF(Vare8>90,40,0),STICK,linethick3,COLORyellow;DRAWTEXT(Vare8>90,30,'追击'),COLORyellow;4.抄底逃顶王(P1 1 100 10 P2 1 100 3)80, POINTDOT,LINETHICK2;20, POINTDOT,LINETHICK2;VAR1:=LLV(LOW,P1);VAR2:=HHV(HIGH,P1);K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK2 , ; D: EMA(0.667*REF(K,1)+0.333*K,3),LINETHICK1 ,;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1); VARD:=EMA(IF(C< EMA(C,250),VARC*1000,VARC*10),3);火焰山:EMA(IF(L<=LLV(L,30),VARD/2+HHV(VARD,30),0),3)/618; STICKLINE(火焰山>100,0,火焰山*1.2,8,0);STICKLINE(火焰山>100,0,火焰山,4,1);抄底: IF(TROUGHBARS(2,5,1)=0 ANDHIGH>LOW+0.01,20,0),COLORYELLOW ,LINETHICK2 ;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),45,0),COLORGREEN,LINETHICK2;DRAWTEXT(顶A=50,45,'逃顶'),COLOR00FF00;DRAWTEXT(抄底=20,30,'抄底'),COLORRED;抓牛股:LS:=C/REF(C,1)>1.048 AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));抓牛:FILTER(LS,28);波段阻击AA05:MA(C,5),LINETHICK3,COLOR00CCFF;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORRED;AA10:MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORGREEN;AA30:MA(C,30);三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;IF(BB30>15 AND AA30>REF(AA30,1),AA30,DRAWNULL),LINETHICK3,COLORFF00FF;波段狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10<REF(AA10,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<AA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(波段狙击,LOW*0.98,'←波段狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;短线上涨极限:(H-MA(C,5))/MA(C,5)>0.1;短期下跌极限:(MA(C,5)-L)/L>0.1;智能KDJ: 特点抄底很灵验,底部三根线,顶部二根线,-10、0、10、90、105,抢钱轴-10,见顶105N : 2 90 9M1: 2 30 3M2: 2 30 3{KDJ}RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D;顶轴:105, POINTDOT;上轴:90, POINTDOT;下轴:10, POINTDOT;底轴:0, POINTDOT;抢钱轴:-10, POINTDOT;DRAWTEXT(CROSS(J,顶轴) ,100,'大出'), COLORYELLOW;DRAWTEXT(CROSS(J,上轴) ,90,'小出'), COLOR99FFCC;DRAWTEXT(CROSS(下轴,J) ,10,'小进'), COLORBLUE;DRAWTEXT(CROSS(底轴,J) ,0,'大进'), COLORRED;DRAWTEXT(CROSS(抢钱轴,J) ,-5,'狂进'), COLORWHITE;{黄金方块}RA:=LLV(LOW,35);RB:=HHV(HIGH,30);RC:=EMA((CLOSE-RA)/(RB-RA)*4,4)*19;近日均价:=MA(CLOSE,5),COLORYELLOW,LINETHICK2;STICKLINE(RC<6 AND100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19))>97 ,0 ,近日均价*1.15 ,2 , 0),COLORYELLOW;{提示}VAR1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;VAR2:=EMA(VAR1,9);VAR3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; VAR4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR5:=SMA(VAR4,13,8);Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);趋势:=3*Q3-2*Q4;Q5:=趋势>1*REF(趋势, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(趋势,5);A1:=EMA(Q3, 3);A2:=EMA(A1, 3);A3:=EMA(A2, 3);A4:=EMA(A3, 3);A5:=EMA(A4, 3);A6:=EMA(A5, 3);A:=EMA(A4, 3);DRAWTEXT(CROSS(趋势, 20) AND Q10<-13,10,'看量入场'), COLORRED; DRAWTEXT(CROSS(趋势, A5) AND REF(趋势,1)<34,REF(趋势,1),'盯紧'), COLORWHITE;DRAWTEXT(CROSS(趋势, A1) AND Q5 AND A1<20 AND Q1>9 ORA1>1*REF(A1, 1)AND Q1>4 AND A1<60, 45, '调'), COLOR00FF00;黄金分割提示; 可提示分割点,安装在任意主图高:=REF(HHV(H,60),3);低:=REF(LLV(L,60),3);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H50:=高-(高-低)*0.500;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;TOP:REFDATE(高,DATE),POINTDOT,COLORWHITE,NODRAW;%80.9:REFDATE(H19,DATE),POINTDOT,COLORYELLOW,NODRAW;%61.8:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA,NODRAW;{%50.0:REFDATE(H50,DATE),POINTDOT,COLORGREEN,NODRAW;}%38.2:REFDATE(H61,DATE),POINTDOT,COLORMAGENTA,NODRAW;%19.8:REFDATE(H80,DATE),POINTDOT,COLORYELLOW,NODRAW; BOTTOM:REFDATE(低,DATE),POINTDOT,COLORWHITE,NODRAW; DRAWTEXT(ISLASTBAR,TOP,' ←%顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,%80.9,' ←%80.9'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%61.8,' ←%61.8'),COLORMAGENTA; {DRAWTEXT(ISLASTBAR,%50.0,' ←%50.0'),COLORGREEN;} DRAWTEXT(ISLASTBAR,%38.2,' ←%38.2'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,%19.8,' ←%19.1'),COLORYELLOW; DRAWTEXT(ISLASTBAR,BOTTOM,' ←%低点'),COLORWHITE;黑码启动组合{东方求败}股价:=(H+L+C)/3;股价运动:=股价,LINETHICK2,COLORBLUE;运动趋势:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA (XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XM A(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(X MA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA( XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(股价,3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3), 3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3), 3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3);良机区1:=运动趋势*0.9;良机区2:=运动趋势*0.875;良机区3:=运动趋势*0.85;涨1:=O<良机区3;求败1:IF(涨1,0.3,0),COLOR0000FF;涨2:=L<良机区2 AND 运动趋势>REF(运动趋势,1);求败2:IF(涨2,0.5,0),COLOR008000;涨3:=L<良机区3 AND 运动趋势>REF(运动趋势,1);求败3:IF(涨3,1,0),COLOR00FFFF;VAR6:=REF(LOW,1)*0.83;VAR7:=LOW*0.1;VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;VAR9:=EMA(VAR8,60);VARA:=EMA(VAR6,60);VARB:=VARA-2;VARC:=IF(C<=VAR9,VARB,VARA);{VARD:=MA(C,80)-MA(C,10)/17;}启动:=FILTER(VARC-VARB=0 ANDCROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF (EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)), 4);马启:IF(启动,1.5,0),COLORFFFFFF;{理想实现}VARS2:=IF(MONTH<12,1,1);VARS3:=(2.28*CLOSE+HIGH+LOW)/4;VARS4:=LLV(LOW,34);VARS5:=HHV(HIGH,34);理想:=EMA((VARS3-VARS4)/(VARS5-VARS4)*100,13)*VARS2,LINETHICK4,COL ORRED;论坛:=EMA(0.667*REF(理想,1)+0.333*理想,2),LINETHICK2,COLORFF9933; 理想实现:(CROSS(理想,论坛) AND 理想<22),LINETHICK2,COLOR0099FF; {横盘放量选股}横盘放量:LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 AND C>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);{STICKLINE(横盘放量,0,0.5,1,0),COLOR000099;}{笑傲江湖}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);笑傲江湖:IF(SSS-SSB=2 AND SSS>REF(SSS,1),1.3,0),COLORFFFF00;{终结者}X:=1;LGL:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 AND C/REF(C,1)>0.905 ANDC/REF(C,1)<1.05 AND VOL/CAPITAL*100<5,50,0);WR1:=-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*X; WR2:=-100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100; WR3:=-100*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100*X; BIAS1:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;BIAS2:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;BIAS3:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;S1:=(WR1+WR2+WR3+BIAS1+BIAS2+BIAS3)/6*X;S2:=EMA(S1,3);S3:=ABS(BIAS1-BIAS3);SX:=(S1+S3)/2;XC1:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;CCC:=XC1+SX;ZJZ:=IF( LGL>0 AND CCC<0,200,0)*X;LXL:=IF(SX<0 AND C=LLV(C,5) AND C/REF(C,1)>0.905 AND C/REF(C,1)<1.05 ANDVOL/CAPITAL*100<5,-50,0);JBJ:=IF(CCC<0 AND LXL=-50,100,0)*X;MA3:= MA(C,3);C0:=REF(C,2)*0.865;C1:=REF(C,13)*0.772;BOT:=MIN(C0,C1);HSL:=100*VOL/CAPITAL*X;MA13:=MA(C,13)*X;CXC:=IF((C-BOT)/C<3/100 AND SUM(HSL,5)/5<1.8,1,0);VMC:=IF(CXC>0 AND (LXL<0 OR LGL>0),100,0);V满仓:=VMC;V半仓A:=IF(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR (CXC>0 AND REF(C,1)/REF(C,2)>0.902)) OR(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR CXC>0) AND (LXL<0 OR LGL>0)) AND VMC<10 ,50,0) ;V93:=(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR CXC>0) AND (LXL<0 OR LGL>0)) ;V90:=((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR (CXC>0 AND REF(C,1)/REF(C,2)>0.902));V半仓:=V93 OR V90;XMM87:=V满仓OR V半仓;XMM91:=VMC;G:=MA(CLOSE,80)-MA(CLOSE,10)/3*X;初级:=IF(XMM87>0,1.5,0),STICK,LINETHICK2;中级:IF(XMM91>0,1,0),STICK,COLORFF0080;高级:IF(VMC>0 AND CLOSE<G,1.5,0),STICK,LINETHICK2;{黑码底}DIFF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIFF1,9),COLORFFFF00;A01:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));底背离:=REF(CLOSE,A01+1)>CLOSE AND DIFF1>REF(DIFF1,A01+1) AND CROSS(DIFF1,DEA1);DEA0:=EMA(DIFF1*100,9);MACD0:=2*(DIFF1*100-DEA0);黑码:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);黑码0:(底背离AND 黑码),COLORFF8000;。
通达信指标公式源码 成交量决定买卖指标
万手: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<OPEN,BB*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2));主买:主动买/10000,COLORFF00FF,LINETHICK0;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH -LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,LINETHICK0;差额:主买-主卖,LINETHICK0;预比昨:VOL*(240/FROMOPEN)/REF(V,1),LINETHICK0;STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=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 AND PERIOD=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;持币:IF(SAR(10,2,20)>=H,1,DRAWNULL),CIRCLEDOT,COLORGREEN;持股:IF(SAR(10,2,20)<=L,1,DRAWNULL),CIRCLEDOT,COLORRED;五日平均: MA(V,5)/10000, COLORWHITE;十日平均: MA(V,10)/10000, COLORYELLOW;百日平均: MA(V,100)/10000, COLORYELLOW;。
精准买卖主图指标通达信指标公式源码
K线图的另类呈现,很漂真的指标。
低位出现大红柱可狈极关注。
DRAWGBK(V>1,STRIP(RGB(60,100,255),RGB(180,180,255),1));量:=(CLOSE - LLV(LOW,14)) / (HHV(HIGH,14) - LLV(LOW,14)) * 1.2 * CLOSE; 量1:=EMA(量,3);量2:=EMA(量,6);量3:=EMA(量,9);STICKLINE(量1 >= 量2,量3,量1,8,0),color0000AA;STICKLINE(量1 >= 量2,量3,量1,7,0),color0000BB;STICKLINE(量1 >= 量2,量3,量1,6,0),color0000CC;STICKLINE(量1 >= 量2,量3,量1,5,0),color0000DD;STICKLINE(量1 >= 量2,量3,量1,4,0),color0000EE;STICKLINE(量1 >= 量2,量3,量1,3,0),color0000FF;STICKLINE(量1 <= 量2,量3,量1,8,0),colorFF0000;STICKLINE(量1 <= 量2,量3,量1,7,0),colorFF3300;STICKLINE(量1 <= 量2,量3,量1,6,0),colorFF5500;STICKLINE(量1 <= 量2,量3,量1,5,0),colorFF7700;STICKLINE(量1 <= 量2,量3,量1,4,0),colorFF9900;STICKLINE(量1 <= 量2,量3,量1,3,0),colorFFBB00; STICKLINE(量1 <= 量2,量3,量1,2,0),colorFFDD00; STICKLINE(量1 <= 量2,量3,量1,1,0),colorFFFF00; T1:=量2 >= 量3 AND 量1 < REF(量1,1);T2:=量2 < 量3 AND 量1 > REF(量1,1); STICKLINE(T1,量1,量3,8,0),colorFFBB11; STICKLINE(T1,量1,量3,7,0),colorFFCC22; STICKLINE(T1,量1,量3,5,0),colorFFDD33; STICKLINE(T1,量1,量3,3,0),colorFFEE44; STICKLINE(T1,量1,量3,1,0),colorFFFF55; STICKLINE(T2,量1,量3,10,0),color338FDD; STICKLINE(T2,量1,量3,8,0),colorFF00FF; STICKLINE(T2,量1,量3,1,0),color00DDFF; STICKLINE(T2,量1,量3,8,0),color00AAFF; STICKLINE(T2,量1,量3,6.6,0),color00BBFF; STICKLINE(T2,量1,量3,4.4,0),color00CCFF; STICKLINE(T2,量1,量3,3.3,0),color00DDFF; STICKLINE(T2,量1,量3,2.2,0),color00EEFF; STICKLINE(T2,量1,量3,1,0),color00FFFF;。
最新主力买卖通达信指标公式源码
最新主力买卖通达信指标公式源码通达信是国内广泛使用的炒股软件之一,提供了许多技术指标供投资者使用。
其中一个重要的指标是最新主力买卖指标,也称为资金流向指标。
该指标用于判断市场买卖力量的强弱,帮助投资者做出买卖决策。
首先,计算主力卖出成交量的公式如下:SellVol:REF(VOL,1)*(CLOS>OPEN)其中,REF(VOL,1)表示昨日的成交量,VOL表示当日的成交量,CLOS表示收盘价,OPEN表示开盘价。
公式的意思是,如果今日的收盘价大于开盘价,则认为当日的成交量为主力卖出成交量。
然后,计算主力买入成交量的公式如下:BuyVol:REF(VOL,1)*(CLOS<OPEN)类似地,如果今日的收盘价小于开盘价,则认为当日的成交量为主力买入成交量。
接下来,计算主力买卖比的公式如下:BuySellRatio:EMA(BuyVol,5)/EMA(SellVol,5)其中,EMA表示指数移动平均线,BuyVol和SellVol分别表示主力买入和主力卖出成交量。
该公式计算了主力买入成交量和主力卖出成交量的指数移动平均线,并得到了主力买卖比。
最后,计算主力买卖指标的公式如下:MainForceIndex:HHV(BuySellRatio,30)*100/LLV(BuySellRatio,30)其中,HHV表示最高价,LLV表示最低价。
该公式通过计算主力买卖比的最高值和最低值,并将其乘以100后除以最低值,得到了主力买卖指标。
通过以上公式的计算,可以得到最新主力买卖指标的数值。
当指标数值高于70时,表示市场有较强的买入力量;当指标数值低于30时,表示市场有较强的卖出力量。
投资者可以根据这些指标数值进行买卖决策。
总结起来,通达信最新主力买卖指标的公式源码如下:SellVol:REF(VOL,1)*(CLOS>OPEN)BuyVol:REF(VOL,1)*(CLOS<OPEN)BuySellRatio:EMA(BuyVol,5)/EMA(SellVol,5)MainForceIndex:HHV(BuySellRatio,30)*100/LLV(BuySellRatio,30)以上为公式的源码,投资者可以根据这些公式进行编程实现,方便使用最新主力买卖指标。
成交量指标通达信公式源码
成交量上配有对未来趋势的智能诊断,可以辅助你看盘。
直接上图。
{极品量K形态解盘}DRAWGBK(C>0,RGB(10,100,0),RGB(25,15,0),0,' ',0);TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD =5,240,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 ||SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;成交量:VOL,POINTDOT,COLORYELLOW;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL /2)),POINTDOT,COLORRED;主卖:=IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA* (HIGH-LOW),VOL /2)),COLORCYAN,POINTDOT;STICKLINE(C>=REF(C,1) ,0,VOL,2.2,1),COLORRED;STICKLINE(C<REF(C,1),0,VOL,2.2,1),COLORCYAN;STICKLINE(主买>0,0,主买,2.2,0),COLORRED;资金异动:=VOL/MA(VOL,55)*100,COLORYELLOW;STICKLINE(主卖>0,0,主卖,0.8,0),COLORCYAN;STICKLINE(资金异动>100 ,0,VOL,0.1,0),COLORYELLOW;成交量比%:主买/VOL*100,COLORWHITE,NODRAW;换:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;五换:=SUM(换,5),COLORYELLOW;十换:=SUM(换,10),COLORGREEN;二十换:=SUM(换,20),COLORFFFFFF;三十换:=SUM(换,30),COLORYELLOW;A股:=CAPITAL/1000000,LINETHICK0,COLORWHITE;启:=MA(V,5)COLORMAGENTA,LINETHICK2;洗:=MA(V,35)COLORGREEN,LINETHICK2;异:=MA(V,135)COLORLIBLUE,LINETHICK2;DRAWTEXT(CROSS(启,洗)AND V>洗AND V>异AND 洗<异,V,'★'),COLORMAGENTA; DRAWTEXT(CROSS(启,异)AND V>异AND V>异AND 洗<异,V,'★'),COLORYELLOW;T00:=STRCAT('智能诊断:',EXTERNSTR(0,12));DRAWTEXT_FIX(1,0,0.01,0,T00)COLORFFFFFF;{K线形态解盘}TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1)> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0)); T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1) > REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPENAND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) ANDOPEN<=REF(CLOSE,1)AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2)AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPENAND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1)),1,0));T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));T40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));TS1:=IF(T1=1,0.02+0.02,0.02),NODRAW;TS2:=IF(T2=1,TS1+0.08,TS1),NODRAW;TS3:=IF(T3=1,TS2+0.08,TS2),NODRAW;TS4:=IF(T4=1,TS3+0.08,TS3);TS5:=IF(T5=1,TS4+0.08,TS4);TS6:=IF(T6=1,TS5+0.08,TS5);TS7:=IF(T7=1,TS6+0.08,TS6);TS8:=IF(T8=1,TS7+0.08,TS7);TS9:=IF(T9=1,TS8+0.08,TS8);TS10:=IF(T10=1,TS9+0.08,TS9),NODRAW;TS11:=IF(T11=1,TS10+0.08,TS10);TS12:=IF(T12=1,TS11+0.08,TS11);TS13:=IF(T13=1,TS12+0.08,TS12);TS14:=IF(T14=1,TS13+0.08,TS13);TS15:=IF(T15=1,TS14+0.08,TS14);TS16:=IF(T16=1,TS15+0.08,TS15);TS17:=IF(T17=1,TS16+0.08,TS16);TS18:=IF(T18=1,TS17+0.08,TS17);TS19:=IF(T19=1,TS18+0.08,TS18);TS20:=IF(T20=1,TS19+0.08,TS19);TS21:=IF(T21=1,TS20+0.08,TS20);TS22:=IF(T22=1,TS21+0.08,TS21);TS23:=IF(T23=1,TS22+0.08,TS22);TS24:=IF(T24=1,TS23+0.08,TS23);TS25:=IF(T25=1,TS24+0.08,TS24);TS26:=IF(T26=1,TS25+0.08,TS25);TS27:=IF(T27=1,TS26+0.08,TS26);TS28:=IF(T28=1,TS27+0.08,TS27);TS29:=IF(T29=1,TS28+0.08,TS28);TS30:=IF(T30=1,TS29+0.08,TS29);TS31:=IF(T31=1,TS30+0.08,TS30);TS32:=IF(T32=1,TS31+0.08,TS31);TS33:=IF(T33=1,TS32+0.08,TS32);TS34:=IF(T34=1,TS33+0.08,TS33);TS35:=IF(T35=1,TS34+0.08,TS34);TS36:=IF(T36=1,TS35+0.08,TS35);TS37:=IF(T37=1,TS36+0.08,TS36);TS38:=IF(T38=1,TS37+0.08,TS37);TS39:=IF(T39=1,TS38+0.08,TS38);TS40:=IF(T40=1,TS39+0.08,TS39);TS41:=IF(T41=1,TS36+0.08,TS36);TS42:=IF(T42=1,TS41+0.08,TS41);TS43:=IF(T43=1,TS42+0.08,TS42);DRAWTEXT_FIX(T1=1,0,TS1,0,'早晨之星,见底回升'),COLORFF00FF ; DRAWTEXT_FIX(T2=1,0,TS2,0,'黄昏之星,见顶回落'),COLORFFFF00 ; DRAWTEXT_FIX(T3=1,0,TS3,0,'长十字,重要的警告信号,原趋势停顿或反转'),COLORGREEN ;DRAWTEXT_FIX(T4=1,0,TS4,0,'垂死十字,下跌信号'),COLORFFFF00 ; DRAWTEXT_FIX(T5=1,0,TS5,0,'早晨十字星,上涨信号,见底回升'),COLORFF00FF ; DRAWTEXT_FIX(T6=1,0,TS6,0,'黄昏十字星,趋势停顿或反转,下跌或,见顶回落'),COLORFFFF00 ;DRAWTEXT_FIX(T7=1,0,TS7,0,'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低'),COLORFFFF00 ;DRAWTEXT_FIX(T8=1,0,TS8,0,'倒转锤头构成一个看涨信号,可能见底回升'),COLORFF00FF ;DRAWTEXT_FIX(T9=1,0,TS9,0,'锤头,可能见底回升,如有量配合,信号强烈'),COLOR0000FF ; DRAWTEXT_FIX(T10=1,0,TS10,0,'吊颈,上升行情中见顶回落,顶部出现,见顶信号'),COLORFFFF00 ;DRAWTEXT_FIX(T11=1,0,TS11,0,'穿头破脚,顶部出现,见顶回落信号'),COLORFFFF00 ; DRAWTEXT_FIX(T12=1,0,TS12,0,'乌云盖顶,见顶回落信号'),COLORFFFF00 ; DRAWTEXT_FIX(T13=1,0,TS13,0,'曙光初现,将演化为V型反转或横盘。
通达信指标公式源码绝密买卖点指标
{买卖密码}JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);VAR3:=IF(C<200 ,MA(COST(80),3),2500),NODRAW;VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR55:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR66:=(VAR55 + ((VAR55 * 6) / 100));短买春:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRAW;Q1:=CONST(IF(短买春,0,IF(秋离场,150,IF(红持股,150,IF(急速超跌关注,150,100))))),NODRAW; Q2:=CONST(IF(短买春,80,IF(秋离场,100,IF(红持股,0,IF(急速超跌关注,150,100))))),NODRAW;Q3:=CONST(IF(短买春,0,IF(秋离场,20,IF(红持股,70,IF(急速超跌关注,150,100))))),NODRAW;DD1:=EMA((O+H+L)/3,4)COLORWHITE,NODRAW;DD2:=EMA(C+(H-L)*0.618,3)COLORYELLOW,NODRAW;密码1:DD2+(DD2-DD1)*0.618,NODRAW,COLORWHITE;{明卖}密码2:EMA((O+H+L)/3,4)+((H+L)/2-REF((O+H+L)/3,3))/4,NODRAW;{明买}密码3:=MA(REF(密码1,1),1)*1,COLORLIMAGENTA,NODRAW;{今卖}密码4:=REF(密码2,1),COLORLIMAGENTA,NODRAW;{今买}密码5:=MA(REF(DD2,1),1)*1,COLORLIMAGENTA,NODRAW;{今卖}密码6:=REF(DD1,1),COLORLIMAGENTA,NODRAW;{今买}{黄金买点:=EMA((O+H+L)/3,4)COLORWHITE,NODRAW;黄金卖点:=EMA(C+(H-L)*0.618,3)COLORYELLOW,NODRAW;预测明日卖点:黄金卖点+(黄金卖点-黄金买点)*0.618,NODRAW,COLORWHITE;预测明日买点:EMA((O+H+L)/3,4)+((H+L)/2-REF((O+H+L)/3,3))/4,NODRAW;今卖:MA(REF(预测明日卖点,1),1)*1,COLORLIMAGENTA,NODRAW;今买:REF(预测明日买点,1),COLORLIMAGENTA,NODRAW;}换:IF(CAPITAL>0,V/CAPITAL*100,V),NODRAW;收:=FINANCE(33),NODRAW;流:FINANCE(7)/100000000,NODRAW;TT:=IF(ISLASTBAR,240/FROMOPEN,1);NN:=120;HH:=HHV(V*TT,NN);LL:=LLV(V,NN);最高:=CONST(HH);最低:=CONST(LL);RCC:=最高*0.9-(最高-最低)*0.5;RHL:=RCC;HLMAX:=最高;HLMIN:=最低;HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2*1.3;HLMN4:=(100-0)/1*1.3;P:=最高/120;{顶底摸块}神:=2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1)-(3*HHV(SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/ SMA(V,2,1),2)-2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1));奇:=(2*神+EMA((2*(C+L)/2+(H+C)/2+L+O)/5,2)+2*((EMA((C*2+H+L+O)/5,5)+MA((C*2+H+L+O)/5,13)+MA((C *2+H+L+O)/5,21))/3)+((EMA((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34))/3)+((EMA((C*2+H+L+O)/5,2 1)+MA((C*2+H+L+O)/5,34)+MA((C*2+H+L+O)/5,55))/3))/7;分清:=(FORCAST(HHV((C+L)/2,1),21)+(EMA(((C+L)/2+L+(H+C)/2)/3,55)-(C-EMA(((C+L)/2+L+(H+C)/2)/3, 55))))/2;放心买入:=(((C+L)/2+(H+C)/2+L)/3+(3*(C+H+L+(O+C+L)/3)/4-2*(C+L)/2))/2;强:=(EMA((分清+3*((EMA(放心买入,5)*5+分清)/6+((EMA(奇,5)+EMA(奇,8)+EMA(奇,13))/3))/2)/4,3)/3),POINTDOT,COLOR00FFFF;验证:=((((C+L)/2-LLV(L,24))/(HHV((H+C)/2,24)-LLV(L,24))*1.1*(C+L)/2));续持验证:=EMA((2*(5*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21)))+(((C*2+H)/3+(C*2+H)/3)/2)+EMA(验证,2))/4,2),COLOR555555;AR:=(2*(C+L)/2+REF((C+L)/2,1))/3;BR:=(7*(C+L)/2+6*REF((C+L)/2,1)+5*REF((C+L)/2,2)+4*REF((C+L)/2,3)+3*REF((C+L)/2,4)+2*REF((C+L)/2,5)+REF((C+L)/2,6))/28;VARA2:=LLV(MA(LOW,3),3);VARA3:=HHV(MA(HIGH,3),3);比:=TT;昨V:=REF(V,1);T:=IF(ISLASTBAR,IF(FROMOPEN>60,IF(FROMOPEN-INTPART(FROMOPEN/60)*60=0,1,60/(FROMOPEN-INTPART(FROMOPEN/60)*60)),60/FROMOPEN),1);WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);DRAWBAND(最高,RGB(Q1,Q2,Q3),0,DRAWNULL);买卖差:=买盘-卖盘;STICKLINE(C>=O,0,买盘+卖盘,2.8,1),COLORRED;STICKLINE(C<O,0,买盘+卖盘,2.8,1),COLORFFFF00;STICKLINE(买卖差>=0,0,买盘,2.5,0),COLORRED;STICKLINE(买卖差>=0 AND C>=MA(C,30),0,买盘,3.0,0),COLORRED;STICKLINE(买卖差>=0,0,卖盘,1.1,0),COLOR998800;STICKLINE(买卖差>=0 AND C>=MA(C,30),0,卖盘,1.5,0),COLORDDCC00;STICKLINE(买卖差<0,0,买盘,2.5,0),COLORRED;STICKLINE(买卖差<0 AND C>=MA(C,30),0,买盘,3.0,0),COLORRED;STICKLINE(买卖差<0,0,卖盘,1.1,0),COLOR998800;STICKLINE(买卖差<0 AND C>=MA(C,30),0,卖盘,1.5,0),COLORDDCC00;A1:=REF(CLOSE,1);B1:=(买盘+卖盘)<MA(V,60)/3 ;{B1:=V<MA(V,60)/3 ;}B2:=MA(V,5)/2>V AND V>B1;STICKLINE(B1,0,卖盘,2,0),COLORYELLOW;((80-HLMN3)*HLMN2/HLMN4+HLMN1),COLORCCCCCC,LINETHICK1,DOTLINE;((50-HLMN3)*HLMN2/HLMN4+HLMN1),COLORCCCCCC,LINETHICK1,DOTLINE;((20-HLMN3)*HLMN2/HLMN4+HLMN1),COLORCCCCCC,LINETHICK1,DOTLINE;KA:=(EMA((CLOSE-VARA2)/(VARA3-VARA2)*100,4)-50)*0.5+50;DB:=EMA(0.667*REF(KA,1)+0.333*KA,2);JJ:=3*KA-2*DB;((KA-HLMN3)*HLMN2/HLMN4+HLMN1),COLORFFF111,LINETHICK1;((DB-HLMN3)*HLMN2/HLMN4+HLMN1),COLOR00FF00,LINETHICK1;((JJ-HLMN3)*HLMN2/HLMN4+HLMN1),COLORFF00FF,LINETHICK1;IF(续持验证<强,-5*P,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK1;IF(续持验证>=强,-5*P,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK1;IF(续持验证>= REF(续持验证,1),-15*P,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK1; IF(续持验证< REF(续持验证,1),-15*P,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK1; STICKLINE(1,HLMAX,HLMAX*0.96,3,0),COLORGREEN;红灯买:STICKLINE(密码1>密码3,HLMAX,HLMAX*0.96,3,0),COLORRED;STICKLINE(1,HLMAX*0.98,HLMAX*0.98,3,0),COLORWHITE;STICKLINE(1,HLMAX*0.93,HLMAX*0.89,3,0),COLORRED;绿灯卖:STICKLINE(密码2<=密码4,HLMAX*0.93,HLMAX*0.89,3,0),COLORGREEN; STICKLINE(1,HLMAX*0.91,HLMAX*0.91,3,0),COLORWHITE;操作段1:STICKLINE(密码1>(密码3) AND C>密码 2 OR 密码2>密码4,HLMAX*0.82,HLMAX*0.86,3,0),COLORRED;操作段2:STICKLINE(C>密码 2 AND 密码1>密码3,HLMAX*0.82,HLMAX*0.86,3,0),COLORMAGENTA;操作段3:STICKLINE(密码1<密码 3 AND 密码2>密码4,HLMAX*0.82,HLMAX*0.86,3,0),COLORYELLOW;STICKLINE(密码1>(密码3) AND C>密码2 OR 密码2>密码4 OR C>密码2 AND 密码1>密码3,HLMAX*0.84,HLMAX*0.84,3,0),COLORWHITE;。
【通达信】精确买卖指标公式源码
【通达信】精确买卖指标公式源码DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可} DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);W底选股:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00;DRAWTEXT(A1,-10,'W底'),COLORYELLOW;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,40,'下单'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);低买:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,8,0),COLORYELLOW;DRAWTEXT(低买,33,'低买'),COLORRED;TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) /TTR);辅助线:=((DMM * 100) /TTR);动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);准备:(IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF;(IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(准备,60,'准备'),COLORFF00FF;TYP := (HIGH + LOW + CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;K:=SMA(RSV,3,1);LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*500-250;X:CROSS(CCI,-100) AND K<-100 ;X改成:CROSS(CCI,-100) AND K<-100 AND CROSS(RSI1,-90);MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA34:=EMA(C,34);MA55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA34);L1:=MIN(MIN(MA5,MA13),MA34);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-12,'地量'),COLORRED;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);买点选股:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(买点选股,28,0),COLORYELLOW,LINETHICK2;IF(买点选股,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(买点选股,28,'买点'),COLORYELLOW;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORGREEN,LINETHICK2;IF(FILTER(MR,10),20,0),COLORGREEN,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUANCLOSE:=(DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLO SE,VOL/SUM(VOL,13))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34 ))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUANCLOSE,88,'弱市百发百中'),COLORFFFF00;IF(QUANCLOSE,88,0),COLORFFFF00,LINETHICK2;IF(QUANCLOSE,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,1 00,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;量异动:IF(AA,DD/REF(DD,1),0);STICKLINE(量异动>=0,0,量异动,8,0);STICKLINE(量异动>=0,0,量异动,4,0);选股:DD/REF(DD,1);CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45)AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1)AND SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1),1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃顶:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶 '),COLORGREEN;CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45)AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1)AND SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1),1)COLORBLUE,LINETHICK2;{W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W4 AND COUNT(W4,5)=1; };。
通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标
通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标1 超级指标指标公式:买卖提示非常明显(适合通达信)指标源码如下:M:3 100 60N 3 100 30散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,2,5),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注: STICKLINE(走势-AA6<-65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,4);卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,5);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);2 精准买卖支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3);VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 ORCLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW;STICKLINE(VAR2D>0,O,C,10,0), COLORRED;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)ANDCROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)ANDVAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,15);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) ANDMACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);3 绝世指标GLL:-4;顶:80,COLORFFA500;大顶:100,COLORBLUE;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:SMA(VAR2,5,1),COLORRED;RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:SMA(FATK,3,1),COLORBB24DB;VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);加速: EMA(3*VARB-2*VARC,3),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 AND VAR22,STICK,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;卖出:=CROSS(80,VAR4),STICK,LINETHICK2,COLORGREEN;{波段介入点}A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0)COLORWHITE;。
通达信难得一见的成交量公式-(源码)
通达信难得⼀见的成交量公式-(源码)周换:SUM(V/CAPITAL*100,5),NODRAW,COLORMAGENTA;预测:IF(CURRBARSCOUNT=1 AND PERIOD=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),CIRCLEDOT,COLORGREEN;持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,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 AND VAR12>VAR13 ANDCLOSE>MA(CLOSE,5) AND CLOSE>MA (CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) AND VAR12>=MA(VOL,5),V+5000,'⾼'),COLORGREEN;DRAWTEXT(VAR13>VAR11 AND VAR13>VAR12 AND VARA<-2 ANDCLOSE<MA(CLOSE,30) AND VAR13<MA (VOL,5)/2 AND MA(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;。
通达信指标公式源码 精准买卖点主图指标
高J:IF(CURRBARSCOUNT<=20,REFDATE(HHV(H,30),DATE),DRAWNULL),COLO RWHITE,DOTLINE;低J:IF(CURRBARSCOUNT<=20,REFDATE(LLV(L,30),DATE),DRAWNULL),COLOR WHITE;分割点1:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.382,DRAWNULL),COLORWHITE,DOTLINE;分割点2:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.618,DRAWNULL),COLORWHITE,DOTLINE;P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);DRAWTEXT(P1,分割点1,' 0.382'),COLORYELLOW;DRAWTEXT(P1,分割点2,' 0.618'),COLORYELLOW;DRAWTEXT(P1,低J,' XO'),COLORYELLOW;G:=YEAR AND MONTH AND DAY;G1:=STRCAT(CON2STR(YEAR,0),'年');G2:=STRCAT(CON2STR(MONTH,0),'月');G3:=STRCAT(CON2STR(DAY,0),'日');G4:=STRCAT(' 【',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF(WEEKDAY=5,'星期五',IF(WEEKDAY=6,'星期六','星期日')))))));GA:=STRCAT(STRCAT(STRCAT(G1,G2),STRCAT(G3,G4)),' 】');日期:DRAWTEXT_FIX(G,0.04,0.03,0,GA)COLORGREEN;TRR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1 )-LOW));ATRR:=MA(TRR1,13);VARR1:=REF(CLOSE,1)-REF(ATRR,1);LSX:HHV(VARR1,13),LINETHICK2,COLORWHITE;LSX1:IF(C>=LSX,LSX,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;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);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),2,1),COLORRED;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);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFCC66;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; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORYELLOW;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),2,1.8),COLOR00FF00; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00FFFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00C8FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR10ECFF; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00D900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR93FFD1; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR93FF22; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR24FF22;基础值:=IF(C<REF(C,1) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDL>REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));TOWER:=IF(VAR1A,REF(基础值,1),基础值);DRAWICON(VAR19=1,L*1.005,13);DRAWICON(VAR1A=1,H*1.01,39);DRAWNUMBER(VAR19,L*0.995,TOWER),COLORFFFFFF; DRAWNUMBER(VAR1A,H*1.01,TOWER),COLORGREEN;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
万手: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<OPEN,BB*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2));
主买:主动买/10000,COLORFF00FF,LINETHICK0;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH -LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN,LINETHICK0;
差额:主买-主卖,LINETHICK0;
预比昨:VOL*(240/FROMOPEN)/REF(V,1),LINETHICK0;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=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 AND PERIOD=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;
持币:IF(SAR(10,2,20)>=H,1,DRAWNULL),CIRCLEDOT,COLORGREEN;
持股:IF(SAR(10,2,20)<=L,1,DRAWNULL),CIRCLEDOT,COLORRED;
五日平均: MA(V,5)/10000, COLORWHITE;
十日平均: MA(V,10)/10000, COLORYELLOW;
百日平均: MA(V,100)/10000, COLORYELLOW;。