通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信黄金线主图指标公式

  

LJL07:=(3*C+L+O+H)/6;  

金钱:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+  

16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)  

+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)  

+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+  

4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+  

REF(LJL07,20))/210,COLORGREEN,LINETHICK2;  

银线:EMA(CLOSE,6),COLORFF00FF,LINETHICK2;  

STICKLINE(CROSS(C,银线),H,L,0,0),COLORYELLOW;  

STICKLINE(CROSS(C,银线),C,O,3,0),COLORYELLOW;  

STICKLINE(CROSS(C,银线),C,O,3,0),COLORYELLOW;  

STICKLINE(CROSS(C,银线),L,H,0,0),COLORYELLOW;  

长线趋势:MA(CLOSE,74);  

强弱线:MA(CLOSE,120),COLORRED;  

牛熊线:MA(CLOSE,240),COLORGREEN,LINETHICK1;  

疯牛线:MA(CLOSE,453),COLORYELLOW;  

MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF  

((L+H+2*C)/4,1)),5,1)*100,1)+50;  

G1:=IF(-MMS>95,0,20);  

UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0AND  

G1)+1);  

{明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055;  

后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;  

大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;}  

KS:=(((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13))*(0-100));  

KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);  

趋势线:=EMA(((KS/10)+EMA(CLOSE,10)),3);  

AA:=-100*(趋势线-CLOSE)/趋势线;  

AC:=(EMA(AA,5));  

SSL:=EMA(CLOSE,3);  

MMV:=EMA(((SLOPE(CLOSE,22)*20)+CLOSE),55);  

MM:=MMV;  

{STICKLINE(((SSL>MM)),SSL,MM,0.1,0),COLORRED;}  

SA:=(MM*0.985);  

SS:=(MA(CLOSE,5));  

DD:=(MA(CLOSE,13));  

GG:=(MA(CLOSE,21));  

捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORWHITE;  

VAR2Y:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100);  

VAR3Y:=(((CLOSE-REF(OPEN,29))/REF(OPEN,29))*100);  

VAR4Y:=REF(CLOSE,1);  

VAR5Y:=((SMA(MAX((CLOSE-VAR4Y),0),6,1)/SMA(ABS((CLOSE-VAR4Y)),6,1))*100);  

VAR6Y:=((SMA(MAX((CLOSE-VAR4Y),0),12,1)/SMA(ABS((CLOSE-VAR4Y)),12,1))*  

100);  

VAR7Y:=((SMA(MAX((CLOSE-VAR4Y),0),24,1)/SMA(ABS((CLOSE-VAR4Y)),24,1))*  

100);  

VAR8Y:=(((CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45)))*100);  

VAR9Y:=SMA(VAR8Y,3,1);  

VARAY:=SMA(VAR9Y,3,1);  

VARBY:=((3*VAR9Y)-(2*VARAY));  

VARCY:=(CROSS(VAR5Y,10)AND(VAR3Y<(0-(28*20))));  

VARDY:=((100-CROSS(76,VAR5Y))AND(VAR3Y>(5*20)));  

DRAWICON(((CROSS(76,VAR5Y)AND(VAR3Y>5))),(HIGH*1.01),5),COLORFFFFFF;  

VAREY:=((((CROSS(VAR9Y,VARAY)AND(VARAY<10))AND(VAR3Y<(0-30)))AND  

(VAR2Y>3))*30);  

VARFY:=-((((VARAY<11)AND(VAR5Y<15))AND(VAR3Y<(0-26)))*10);  

DRAWICON((CROSS(VARFY,(0-9))),(LOW*0.998),4);  

能量线:=DMA(((CLOSE+OPEN)/2),(VOL/(SMA(VOL,4,1)*4)));  

上开:=O;  

上收:=C;  

上高:=H;  

上低:=L;  

JJ:=(上开+上高+上低)/3;  

A:=EMA(JJ,4);  

B:REF(A,1),POINTDOT,COLORYELLOW;  

智能黄金线:A,COLORYELLOW,LINETHICK1;  

VA1:=EMA(上收,8);  

VA2:=EMA(上收,20);  

DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止损'),COLORYELLOW;  

DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND智能黄金线>REF(智能黄金线,1),VA1*0.96,'买入'),COLOR00FF00;  

选手A:=MA(上收,3);  

箱顶A:=MA(REF(HHV(上收,6),1),3);  

箱底A:=MA(REF(LLV(上收,3),1),3);  

T1:=MA(上收,20)>=REF(MA(上收,20),1);  

T2:=CROSS(选手A,箱底A)AND箱顶A/箱底A>100/100ANDT1;  

T3:=CROSS(箱顶A,选手A)AND箱顶A/箱底A>100/100;  

选手:=MA(上收,2);  

箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;  

箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;  

T4:=CROSS(选手,箱底)AND箱顶/箱底>110/100;  

T5:=CROSS(箱顶,选手)AND箱顶/箱底>110/100;  

VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;  

VAR2:=SMA(VAR1,3,1);  

VAR3:=SMA(VAR2,3,1);  

VAR4:=SMA(VAR3,3,1);  

DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)ANDVAR3<40ANDUOO>0,箱底,'★'),COLORF00FF0;  

DRAWTEXT(CROSS(VAR4,VAR3)ANDVAR4>75,箱顶*1.03,'减磅'),COLORF0F000;  

VAR111:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);  

VARD:=CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,2);  

VARE:=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARF:=REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR10:=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR11:=REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR12:=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR13:=REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR14:=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR15:=REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR16:=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR17:=REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR18:=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15OR  

VAR16ORVAR17ORVAR18,1)ANDVAR1;  

趋势线1:=FORCAST(CLOSE,7);  

FK:=100*(C-REF(C,1))/REF(C,1);  

PK1:=IF(C<REF(O,1)ANDFK<0,1,0);  

PK2:=IF(C<REF(O,2)ANDFK<0,1,0);  

STICKLINE((PK1=0ANDREF(PK1,1)=1ANDPK2=0ANDREF(PK2,1)=1)AND(趋势线  

1>REF(趋势线1,1)OR智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORRED;  

STICKLINE((PK1=0ANDREF(PK1,1)=1ANDPK2=0ANDREF(PK2,1)=1)AND(趋势线  

1>REF(趋势线1,1)OR智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;  

PK3:=(((CLOSE/OPEN)>1.04)AND(CLOSE<(SMA(HIGH,21,2)*1.05)))AND((CLOSE-  

REF(CLOSE,1))>0);  

STICKLINE(PK3AND(趋势线1>REF(趋势线1,1)OR智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;  

STICKLINE(PK3AND(趋势线1>REF(趋势线1,1)OR智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;  

STICKLINE(VAR19AND(趋势线>REF(趋势线1,1)OR智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;  

STICKLINE(VAR19AND(趋势线>REF(趋势线1,1)OR智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;  

买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;  

买进条件:=CROSS(C,买进价)AND买进价>REF(买进价,1);  

STICKLINE(买进条件AND捞钱手>智能黄金线AND智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;  

买线:=EMA(C,2);  

卖线:=EMA(SLOPE(C,21)*20+C,42);  

DRAWTEXT(CROSS(买线,卖线)AND箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF;  

STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;  

STICKLINE(CROSS(买线,卖线),H,L,0.5,0),COLOR00FFFF;  

STICKLINE(CLOSE>OPEN,H,LOW,0.3,0),COLOR9933FF;  

STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0),COLOR66CC33;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLOR009900;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLOR00CC00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLOR33FF00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLOR66FF00;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000CC;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0033FF;  

{修正价格}  

重  

心:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINE  

THICK1;  

GAO:=HHV(C,60)-LLV(C,60);  

RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1);  

指导线:重心+GAO*(RSI-0.5),COLORMAGENTA,LINETHICK1;  

STICKLINE(CROSS(RSI,0.1),指导线,REF(指导线,1),1,0),COLORYELLOW;  

STICKLINE(CROSS(0.9,RSI),指导线,REF(指导线,1),1,0),COLORCYAN;  

{趋势}  

平衡:=EMA(((SLOPE(CLOSE,22)*20)+CLOSE),55);  

红升:IF(重心>=平衡,平衡,DRAWNULL),COLORRED,LINETHICK2;  

蓝降:IF(重心<平衡,平衡,DRAWNULL),COLORBLUE,LINETHICK2;

image.png

二、通达信黄金短线主图指标

  

AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;  

CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;  

BBB:=AAA+2.1*CCC;  

DDD:=AAA+0.72*CCC;  

ZZZ:=IF(CCC>1.88,MA(DDD,3),DDD);  

止赢:ZZZ*1.1,COLORFFCC18;  

了结:ZZZ*1.05,COLORFF18FF;  

回档:ZZZ*0.95,COLOR18FF18;  

反弹:ZZZ*0.9,COLOR18CCFF;  

平衡:ZZZ,COLORFFFFFF;  

DRAWTEXT(ISLASTBAR,止赢,'止赢'),COLORFFCC18;  

DRAWTEXT(ISLASTBAR,了结,'了结'),COLORFF18FF;  

DRAWTEXT(ISLASTBAR,回档,'回档'),COLOR18FF18;  

DRAWTEXT(ISLASTBAR,反弹,'反弹'),COLOR18CCFF;  

DRAWTEXT(ISLASTBAR,平衡,'平衡'),COLORFFFFFF;  

日时转换:=IF(PERIOD=5,120,240);  

QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;  

VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;  

VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;  

VAR3:=(VAR1+VAR2)/2;  

VAR4:=EMA(VAR3,30);  

VAR5:=EMA(VAR3,60);  

VAR6:=EVERY(VAR1&gt;REF(VAR1,1),5)AND  

EVERY(VAR4&gt;REF(VAR4,1),5);  

DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,  

110,30));  

牵引线:VAR1,COLORF29540;  

强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;  

趋势关注:IF(CROSS(VAR1,EMA(VAR1,60))AND  

VAR6,1,0),NODRAW,COLORRED;  

量价关注:IF(CROSS(VAR3,VAR5)AND  

VAR6,1,0),NODRAW,COLORWHITE;  

冲击量:IF(VAR3&gt;VAR5AND  

VAR6,1,0),NODRAW,COLORYELLOW;  

强势区:IF(VAR1&gt;强弱  

线,1,DRAWNULL),NODRAW,COLORRED;  

止损区:IF(VAR1&lt;强弱  

线,1,DRAWNULL),NODRAW,COLORGREEN;  

STICKLINE(QZS&gt;VAR1,QZS,VAR1,1,0),COLORF29540;  

STICKLINE(冲击量=1,QZS,VAR1,1,0),COLOR0F26FB;  

DRAWICON(趋势关注=1,EMA(VAR1,60),13);  

DRAWTEXT(量价关注=1,EMA(VAR1,60),'关注  

'),COLORWHITE;  

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(  

CLOSE,20);  

V2:=(1-7/100)*(DMA(CLOSE,V1));  

V3:=(1+7/100)*(DMA(CLOSE,V1));  

V5:=MA((LOW+HIGH+CLOSE)/3,5);  

支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORC  

C66FF;  

X:=C;  

X1:=(MA(X,3)+MA(X,5)+MA(X,8)+MA(X,13))/4;  

X3:=X1+5*SLOPE(X1,3);  

X4:=EMA(X3,2);  

X5:=EMA(X4,2);  

X6:=(X3+X4+X5)/3;  

X0:=(MA(X6,3)+MA(X6,5)+MA(X6,8)+MA(X6,13))/4;  

J1:=X0+3*STD(X0,10);  

J2:=X0-3*STD(X0,10);  

UO:=MA(X,20);  

UO1:=UO+2*STD(X,20);  

UO2:=UO-2*STD(X,20);  

PO1:=(MA(X,3)+MA(X,5)+MA(X,8)+MA(X,13))/4;  

PO2:=PO1+3*STD(PO1,10);  

PO3:=PO1-3*STD(PO1,10);  

C1:=REF(C,1);  

C2:=HHV(C1,2);  

C3:=LLV(C1,2);  

ET:=HHV(C1,2);  

ET1:=REF(ET,1);  

XB:=LLV(C1,2);  

XB1:=REF(XB,1);  

M:=BARSLAST(C<XBANDC1>=XB1);  

M1:=REF(M,1);  

NN:=BARSLAST(C>ETANDC1<=ET1);  

N1:=REF(NN,1);  

M2:=BARSLAST(M-NN>0ANDM1<=N1)+1;  

N2:=BARSLAST(NN-M>0ANDN1<=M1)+1;  

ET2:=HHV(ET,M2);  

XB2:=LLV(XB,N2);  

A:=IF(M-NN>0ANDM1<=N1,1,IF(NN-M>0ANDN1<=M1,0,2));  

STICKLINE(M-NN>0,C,ET2,6,1),COLOR0099FF;  

STICKLINE(M-NN<0,C,XB2,6,0),COLORCYAN;  

STICKLINE(A=1,C,C2,6,1),COLOR0099FF;  

STICKLINE(A=1,C2,XB2,6,0),COLORCYAN;  

STICKLINE(A=0,C3,C,6,0),COLOR0099FF;  

STICKLINE(A=0,C3,ET2,6,1),COLOR0099FF;  

OPP1:(J1+UO1)/2,COLORFF9966;  

OPP2:(J2+UO2)/2,COLORRED;  

OPP3:(OPP1+OPP2)/2,COLOR500500;

image.png

[源码注释]通达信公式动态翻译结果

当满足条件1时,在横轴0.0纵轴0.02位置书写文字,画红色

当满足条件1时,在横轴0.0纵轴0.08位置书写文字,COLORFFFFFF

当满足条件1时,在横轴0.0纵轴0.14位置书写文字,画绿色

当满足条件1时,在横轴0.0纵轴0.2位置书写文字,画红色

当满足条件1时,在横轴0.0纵轴0.26位置书写文字,画红色

输出多方强度:收盘价的3日指数移动平均,线宽为1,COLORFFFFDD

如果多方强度<2日前的多方强度,返回多方强度,否则返回无效数,COLORFFFFFF

输出空方强度:收盘价的8日指数移动平均,线宽为3,COLORFF00FF

如果空方强度<2日前的空方强度,返回空方强度,否则返回无效数,COLORFF0000

输出多空平衡:收盘价的17日指数移动平均,线宽为4,画红色

如果多空平衡<2日前的多空平衡,返回多空平衡,否则返回无效数,画黄色

输出洗盘线:收盘价的27日指数移动平均,线宽为1,COLOR80FF00

如果洗盘线<1日前的洗盘线,返回洗盘线,否则返回无效数,线宽为1,COLOR408080

当满足条件多方强度上穿空方强度时,在空方强度位置画34号图标

当满足条件空方强度上穿多方强度时,在空方强度位置画35号图标

LC赋值:1日前的收盘价

RSI赋值:(收盘价-LC和0的较大值的6日[1日权重]移动平均)/(收盘价-LC的绝对值的6日[1日权重]移动平均)*100

量赋值:0日前的21日内成交量(手)的最高值日前的收盘价

M1赋值:收盘价的1日简单移动平均

A赋值:成交量(手)>1*1日前的成交量(手) AND (收盘价/1日前的收盘价-1)*100>9.5 AND M1>=量

当满足条件A上穿1时,在最低价*0.98位置画1号图标

当满足条件A时,在最低价*0.93位置书写文字,COLORFF00FF

古道赋值:收盘价的5日简单移动平均,线宽为1,COLOR00FFFF

西风赋值:收盘价的10日简单移动平均,线宽为1,COLORFF00FF

瘦马赋值:收盘价的25日简单移动平均,线宽为1,COLOR0000FF

断肠赋值:收盘价的34日简单移动平均,线宽为1,COLORFFFF00

人在赋值:收盘价的62日简单移动平均,线宽为1,COLORFF0000

天涯赋值:收盘价的99日简单移动平均,线宽为1,COLOR00FF00

荣归故里赋值:收盘价的181日简单移动平均,线宽为1,COLORFFFFFF

VAR1赋值:(开盘价+最低价+最高价+收盘价)/(4)

当满足条件1时,在VAR1和VAR1位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORFF00FF

FA赋值:上次西风上穿古道距今天数 AND 古道上穿西风

FB赋值:FA AND (古道>断肠) AND (西风>断肠) AND (西风>1日前的西风)

当满足条件FB时,在最低价和最低价-0.09位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFFFFFF

当满足条件FB时,在最低价-0.13位置书写文字,COLORFFFFFF

FA1赋值:上次人在上穿瘦马距今天数 AND 瘦马上穿人在

FB1赋值:FA AND (瘦马>天涯) AND (人在>天涯) AND (瘦马>1日前的瘦马)

当满足条件FB时,在最低价和最低价-0.09位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFFFFFF

当满足条件FB时,在最低价-0.13位置书写文字,COLOR00FF00

VARA赋值:((成交额(元))/(成交量(手)))/(100)

VARB赋值:((3)*(最高价)+最低价+开盘价+(2)*(收盘价))/(7)

VARC赋值:((成交额(元)的7日累和)/(VARA))/(100)

VARD赋值:以(成交量(手))/(VARC)为权重VARB的动态移动平均

VARE赋值:((收盘价-VARD)/(VARD))*(100)

VARF赋值:((收盘价-34日内最低价的最低值)/(34日内最高价的最高值-34日内最低价的最低值))*(100)

VARJ赋值:VARE的20日简单移动平均+VARE的20日估算标准差

BIAS18赋值:((收盘价-收盘价的18日简单移动平均)/(收盘价的18日简单移动平均))*(100)

K赋值:VARF的3日[1日权重]移动平均

当满足条件(1日前的BIAS18>=5)ANDCROSS(VARJ,VARE)AND(K>79)时,在最高价+0.1位置书写文字,COLOR00FFFF

推荐阅读:通达信趋势线主图指标公式

LY:=10;

BL:=40;

CJQS:=XMA(CLOSE,LY);

JBQS:=XMA(CLOSE,BL);

N:=REF(JBQS,BL/2+1-

CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);

M:=REF(CJQS,LY/2+1-

CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);

JB 上轨:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-

CURRBARSCOUNT)*POW(N,BL/2+1-

CURRBARSCOUNT)*1.1);

JB 下

轨:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-

CURRBARSCOUNT)*POW(N,BL/2+1-

CURRBARSCOUNT)*0.9);

CJ 上 轨:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-

CURRBARSCOUNT)*POW(M,LY/2+1-

CURRBARSCOUNT)*1.05);

CJ 下 轨:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-

CURRBARSCOUNT)*POW(M,LY/2+1-

CURRBARSCOUNT)*0.95);

DRAWTEXT(OREF(C,1)*1.01;

STICKLINE(TJ,C,O+(C-O)/2,1,0),COLOR00FFFF;

{一穿三:5、10、20}

MA1:=MA(CLOSE,5);

MA2:=MA(CLOSE,10);

MA3:=MA(CLOSE,20);

一穿三:=MA1>O AND MA2>O AND MA3>O AND

MA1OPEN ;

STICKLINE(一穿三,O,O+(C-O)/2,1,0),COLORFF00FF;

AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);

AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);

AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);

BB1:=0;

B1 万元:=DVOL*DCLOSE/100;

B1 差:=B1 万元-REF(B1 万元,1);

B2 万元:=DVOL*DCLOSE/100;

DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,1 20),RGB(0,91 ,0));

DRAWBAND(MA(CLOSE,1 0),RGB(200,0,0),MA(CLOSE,20),RGB(0,0,255));

DRAWKLINE(H,O,L,C);

STICKLINE(C>1 .095*REF(C,1 ),C,O,2,0),COLORYELLOW;

STICKLINE(C<0.905*REF(C,1 ),C,O,2,0),COLORWHITE;

MA1 :MA(CLOSE,5),COLORYELLOW;

MA2:MA(CLOSE,1 0),COLORMAGENTA;

MA3:MA(CLOSE,20),COLORBROWN;

MA4:MA(CLOSE,60),COLORGREEN;

MA5:MA(CLOSE,1 21),COLORLIGRAY;

MA6:MA(CLOSE,1 1 9),COLORBLUE;

EE:=(H+L+O+2*C)/5;

CRTP:=EE+(H-L);

CRZL:=2*EE-L;

CRZC:=2*EE-H;

CRFZ:=EE-(H-L);

高:CONST(CRTP),COLORRED;

阻:CONST(CRZL),COLORC7C9FF;

支:CONST(CRZC),COLOR7C9CFF;

反:CONST(CRFZ),COLORDD00DD;

A:MA(C,10)<MA(C,24) AND COUNT(CROSS(MA(C,5),MA(C,10)),10) AND

REF(L,1)<REF(MA(C,10),1) AND REF(C,1)<REF(MA(C,5),1) AND C>REF(H,1) AND

REF(C,1)<REF(H,2) AND COUNT(MA(C,10)>REF(MA(C,10),1),5)>1,NODRAW;

B:MA(C,10)>MA(C,24) AND REF(L,1)<REF(MA(C,24),1)*1.01 AND C>REF(H,1) AND

REF(C,1)<REF(H,2) AND REF(C,1)<REF(H,2),NODRAW;

DRAWICON(A,L-0.10,16);

DRAWICON(B,L-0.10,17);

三妹:MA(CLOSE,3);

四姨:EXPMA(CLOSE,40);

十三妹:MA(C,13),COLOR00FFFF,LINETHICK2;

涨:IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLORRED,LIN

ETHICK2;

平:IF(MA(CLOSE,13)=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLOR00FFFF,

LINETHICK3;

跌:IF(MA(CLOSE,13)<REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLORGREEN,L

INETHICK2;

HH:=LLV(L,7)*1.13-0.03;

STICKLINE(H>=HH,H,H*1.005,1,0),COLOR00FFFF;

TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);

TT1:=REF(EMA(TT2,3),1);

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3*K-2*D;

LC:=REF(CLOSE,1);

RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3,1)) * 100);

FF:=EMA(CLOSE,3);

AA1:=AMOUNT/VOL;

BB1:=L<AA1*0.9;

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L<MA(C,5)*0.921;

EE1:=VOL<MA(V,5)*1.5;

FF1:=BB1 AND CC1 AND DD1 AND EE1;

F:=100*(C-REF(C,1))/REF(C,1);

P1:=IF(C<REF(O,1) AND F<0,1,0);

P2:=IF(C<REF(O,2) AND F<0,1,0);

TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;

TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;

STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;

日跌:L*0.989,NODRAW,COLORFF00FF;

今小昨:=IF(C<REF(O,1) AND F<0,1,0);

P11:=今小昨;

今小前:=IF(C<REF(O,2) AND F<0,1,0);

P22:=今小前;

DL:=P11=1 AND REF(P11,1)=0 AND P22=1 AND REF(P22,1)=0;

STICKLINE(DL,O,C,0.1,0),COLORAAAAAA;

BB :=MAX(C,O)-(REF(MAX(C,O),2)-MAX(C,O))/2;

买点:=(H-(REF(H,2)-H)/2);

AA:MAX(BB,买点),NODRAW,COLORFF00FF;

STICKLINE(C<O AND F<-3 AND F>-5,C+(O-C)/3,C+(O-C)/3,2.5,0),COLORRED;

STICKLINE(C<O AND F<-3 AND F>-5,C+2*(O-C)/3,C+2*(O-C)/3,2.5,0),COLORRED;

STICKLINE(C<O AND F<=-5 AND F>-7,C+(O-C)/2,C+(O-C)/2,2.5,0),COLORYELLOW;

STICKLINE(C<O AND F<=-7 AND F>-10,C+2*(O-C)/3,C+(O-C)/3,2.5,1),COLORYELLOW;

STICKLINE(C<O AND F<=-9.9,O,C,2.5,0),COLOR00FF00;

STICKLINE(C>O AND F>2.9 AND F<5,O+(C-O)/3,O+(C-O)/3,2.5,0),COLORYELLOW;

STICKLINE(C>O AND F>2.9 AND F<5,O+2*(C-O)/3,O+2*(C-O)/3,2.5,0),COLORYELLOW;

STICKLINE(C>O AND F>=5 AND F<7,O+(C-O)/2,O+(C-O)/2,2.5,0),COLORYELLOW;

STICKLINE(C>O AND F>=7 ,O+2*(C-O)/3,O+(C-O)/3,2.5,1),COLORYELLOW;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。