EXPMA与MA对比
简单易看的买卖指标
主升浪
A:EMA(C,21)COLORBLUE,LINETHICK3;
B:=A
IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;
AA:=EMA(C,3) > EMA(C,21);
BB:=EMA(C,3) < EMA(C,21);
CC:= EMA(C,3) > EMA(C,8);
CC1:=EMA(C,3) < EMA(C,8);
DD:=CLOSE
STICKLINE(AA,H,L,0,0),COLOR007FFF;
STICKLINE(AA,O,C,3,1),COLOR007FFF;
STICKLINE(AA AND DD,O,C,3,0),COLOR007FFF;
STICKLINE(BB,H,L,0,0),COLORGREEN;
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE(BB AND CC,H,L,0,1),COLORF00FF0;
STICKLINE(BB AND CC,O,C,3,1),COLORF00FF0;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORF00FF0;
STICKLINE(AA AND CC1,H,L,0,0),COLORBLUE;
STICKLINE(AA AND CC1,O,C,3,1),COLORBLUE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORBLUE;
买线:=MA(CLOSE,9),LINETHICK2;
卖线:=MA(CLOSE,20);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L-0.1,'建仓')COLORYELLOW;
DRAWTEXT(SEL,H+0.1,'空仓');
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AAA:= A2 AND A3;
DRAWTEXT(AAA,H*1.05,'卖点'),COLORWHITE;
EMA13:=EMA(C,13),COLOR0000FF,LINETHICK2;
EMA34:=EMA(C,34),COLORYELLOW;
EMA55:=EMA(C,55),COLORFF00FF;
EMA120:=EMA(C,120),COLORFFCC66;
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
DRAWTEXT(AR6,L-0.09,'启动'),COLORYELLOW;
STICKLINE(AR6,H,L,3,0),LINETHICK2,COLORYELLOW;
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND (REF(C,1)
BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'上升'),COLOR00C5FF;
STICKLINE(BR4 ANDFILTER(BR4,10),O,C,3,1),LINETHICK2,COLOR00C5FF;
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
STICKLINE(CR6,O,C,3,1),LINETHICK2,COLORF00FF0;
DRAWTEXT(CR6,L-0.09,'涨升'),COLORF00FF0;
DR1:=EMA13>EMA34 AND EMA34
DR2:=BARSLAST(CROSS(C,EMA55) );
DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND CEMA55 ANDBETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;
DR7:= DR1 AND DR5 AND DR6 ;
DR8:=DR7 AND FILTER(DR7 ,10);
DRAWTEXT(DR8,L-0.09,'出击'),COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) ANDCROSS(EMA34,EMA55);
DRAWTEXT(ER,L-0.09,'金叉'),COLOR0099FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) ANDCROSS(EMA13,EMA34);
DRAWTEXT(FR,L-0.09,'加仓'),COLORWHITE;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
GR2:=EMA13>EMA34 AND EMA34>EMA55 ANDEMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND GR7,H+0.13,'了结'),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) ANDEMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) ANDCROSS(C,EMA55);
DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.3,'推进'),COLORFFC8FF;
STICKLINE(HR2 ANDFILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:=CROSS(VAR3,0.9);
压力:= REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),2,1),COLOREA91B5,LINETHICK3;
支撑:= REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR00B4FF;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),2,1),COLOR00B4FF,LINETHICK3;
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) *100);
ARSV:=SMA(下档线,3,1);
AK:=SMA(ARSV,3,1);
AD:=((3 * ARSV) - (2 * AK));
AJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) *100);
ARSV24:=SMA(AJ12,3,1);
AK24:=SMA(ARSV24,3,1);
AD24:=((3 * ARSV24) - (2 * AK24));
撑:=IF(CROSS(AD24,AD),HIGH,REF(HIGH,BARSLAST(CROSS(AD24,AD))));
撑压位:=IF(ISLASTBAR ,撑,DRAWNULL);
底底:=LLV(HIGH,30);
底:=IF(ISLASTBAR ,底底,DRAWNULL);
STICKLINE(ISLASTBAR ,撑压位,撑压位,100,1),LINETHICK1,COLORFFFFFF;
STICKLINE(ISLASTBAR ,底,底,80,1),COLOR00FF00,LINETHICK1;
动态翻译:
输出A:收盘价的21日指数移动平均画蓝色,线宽为3
B赋值:A<昨日A
如果B-1,返回A,否则返回无效数画红色,线宽为3
AA赋值:收盘价的3日指数移动平均 > 收盘价的21日指数移动平均
BB赋值:收盘价的3日指数移动平均 < 收盘价的21日指数移动平均
CC赋值: 收盘价的3日指数移动平均 > 收盘价的8日指数移动平均
CC1赋值:收盘价的3日指数移动平均 < 收盘价的8日指数移动平均
DD赋值:收阴线
当满足条件AA时,在最高价和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR007FFF
当满足条件AA时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,COLOR007FFF
当满足条件AAANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR007FFF
当满足条件BB时,在最高价和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,画绿色
当满足条件BB时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,画绿色
当满足条件BBANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色
当满足条件BBANDCC时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,COLORF00FF0
当满足条件BBANDCC时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,COLORF00FF0
当满足条件BBANDCCANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORF00FF0
当满足条件AAANDCC1时,在最高价和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,画蓝色
当满足条件AAANDCC1时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,画蓝色
当满足条件AAANDCC1ANDDD时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,画蓝色
买线赋值:收盘价的9日简单移动平均,线宽为2
卖线赋值:收盘价的20日简单移动平均
BU赋值:买线上穿卖线
SEL赋值:卖线上穿买线
当满足条件BU时,在最低价-0.1位置书写文字画黄色
当满足条件SEL时,在最高价+0.1位置书写文字
A2赋值:(收盘价-昨收)/昨收*100<1.02
A3赋值:最高价>收盘价的5日简单移动平均*1.12
AAA赋值: A2 AND A3
当满足条件AAA时,在最高价*1.05位置书写文字,画白色
EMA13赋值:收盘价的13日指数移动平均,COLOR0000FF,线宽为2
EMA34赋值:收盘价的34日指数移动平均,画黄色
EMA55赋值:收盘价的55日指数移动平均,COLORFF00FF
EMA120赋值:收盘价的120日指数移动平均,COLORFFCC66
AR1赋值:EMA55>EMA34 AND EMA34>EMA13
AR2赋值:上次(收盘价-EMA13)/EMA13*100<-6距今天数
AR3赋值:EMA13>=2日前的EMA13
AR4赋值:统计AR2日中满足收盘价上穿EMA13的天数=1
AR5赋值:AR1 AND AR2 AND AR3 AND AR4
AR6赋值:AR5 AND AR5的10日过滤
当满足条件AR6时,在最低价-0.09位置书写文字,画黄色
当满足条件AR6时,在最高价和最低价位置之间画柱状线,宽度为3,0不为0则画空心柱.,线宽为2,画黄色
BR1赋值:统计5日中满足(收盘价-昨收)/昨收*100位于0和5之间的天数=5
BR2赋值:(EMA13-EMA34)+(EMA34-EMA55)的绝对值/收盘价<0.2
BR3赋值:收盘价>EMA55 AND (昨收<昨日EMA55 OR 2日前的收盘价<2日前的EMA55 OR3日前的收盘价<3日前的EMA55 OR 4日前的收盘价<4日前的EMA55 OR5日前的收盘价<5日前的EMA55)
BR4赋值:BR1 AND BR2 AND BR3
当满足条件BR4ANDFILTER(BR4,10)时,在最低价-0.09位置书写文字,COLOR00C5FF
当满足条件BR4ANDFILTER(BR4,10)时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,线宽为2,COLOR00C5FF
CR1赋值:(收盘价-昨收)/昨收*100>0.5
CR2赋值:成交量(手)>成交量(手)的5日简单移动平均*0.6
CR3赋值:统计3日中满足EMA13上穿EMA55的天数=1
CR4赋值:EMA34-EMA55的绝对值/EMA55<0.03
CR5赋值:EMA55<=EMA120 AND EMA55>=昨日EMA55
CR6赋值:CR1ANDCR2ANDCR3ANDCR4ANDCR5的2日过滤
当满足条件CR6时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,线宽为2,COLORF00FF0
当满足条件CR6时,在最低价-0.09位置书写文字,COLORF00FF0
DR1赋值:EMA13>EMA34 AND EMA34DR2赋值:上次收盘价上穿EMA55距今天数
DR3赋值:最高价=DR2日内最高价的最高值
DR4赋值:上次DR3距今天数
DR5赋值:统计DR4日中满足开盘价>CANDC<昨收ANDC>EMA55ANDBETWEEN((收盘价-EMA55)/EMA55,0,0.02)的天数=1
DR6赋值:收盘价>昨收
DR7赋值: DR1 AND DR5 AND DR6
DR8赋值:DR7 AND DR7的10日过滤
当满足条件DR8时,在最低价-0.09位置书写文字,COLORD6BA63
ER赋值:上次昨日EMA55上穿EMA34距今天数 AND EMA34上穿EMA55
当满足条件ER时,在最低价-0.09位置书写文字,COLOR0099FF
FR赋值:上次昨日EMA34上穿EMA13距今天数 AND EMA13上穿EMA34
当满足条件FR时,在最低价-0.09位置书写文字,画白色
GR1赋值:上次"乖离率的BIAS2"(6,13,24)位于0和5之间距今天数
GR2赋值:EMA13>EMA34 AND EMA34>EMA55 AND EMA13>昨日EMA13
GR3赋值:统计GR1日中满足"乖离率的BIAS2"(6,13,24)>10ANDH=GR1日内最高价的最高值的天数
GR4赋值:最高价=GR1日内最高价的最高值
GR5赋值:"平滑异同平均的MACD"(12,26,9)<昨日"平滑异同平均的MACD"(12,26,9)
GR6赋值:GR2 AND GR3 AND GR4
GR7赋值:GR2 AND GR3 AND GR4 AND GR5
当满足条件GR6ANDGR7时,在最高价+0.13位置书写文字,COLOR00FF00
HR2赋值:EMA13>=3日前的EMA13 AND EMA34>=昨日EMA34 ANDEMA55>=昨日EMA55 AND 收盘价上穿EMA13 AND 收盘价上穿EMA34 AND收盘价上穿EMA55
当满足条件HR2ANDFILTER(HR2,10)时,在最低价-0.3位置书写文字,COLORFFC8FF
当满足条件HR2ANDFILTER(HR2,10)时,在开盘价和收盘价位置之间画柱状线,宽度为3,1不为0则画空心柱.,线宽为2,COLORFFC8FF
VAR1赋值:若2日前的最高价=5日内最高价的最高值则将最近3周期置为1
VAR2赋值:VAR1上穿0.9
VAR3赋值:若2日前的最低价=5日内最低价的最低值则将最近3周期置为1
VAR4赋值:VAR3上穿0.9
压力赋值: 上次VAR2距今天数日前的最高价, POINTDOT,COLOREA91B5
当满足条件收盘价时,在上次VAR2距今天数日前的最高价和上次VAR2距今天数日前的最高价位置之间画柱状线,宽度为2,1不为0则画空心柱.,COLOREA91B5,线宽为3
支撑赋值: 上次VAR4距今天数日前的最低价, POINTDOT,COLOR00B4FF
当满足条件收盘价时,在上次VAR4距今天数日前的最低价和上次VAR4距今天数日前的最低价位置之间画柱状线,宽度为2,1不为0则画空心柱.,COLOR00B4FF,线宽为3
下档线赋值:(((收盘价 - 13日内最低价的最低值) / (13日内最高价的最高值 - 13日内最低价的最低值)) *100)
ARSV赋值:下档线的3日[1日权重]移动平均
AK赋值:ARSV的3日[1日权重]移动平均
AD赋值:((3 * ARSV) - (2 * AK))
AJ12赋值:(((收盘价 - 55日内最低价的最低值) / (55日内最高价的最高值 - 55日内最低价的最低值)) *100)
ARSV24赋值:AJ12的3日[1日权重]移动平均
AK24赋值:ARSV24的3日[1日权重]移动平均
AD24赋值:((3 * ARSV24) - (2 * AK24))
撑赋值:如果AD24上穿AD,返回最高价,否则返回上次AD24上穿AD距今天数日前的最高价
撑压位赋值:如果是否最后一个周期,返回撑,否则返回无效数
底底赋值:30日内最高价的最低值
底赋值:如果是否最后一个周期,返回底底,否则返回无效数
当满足条件是否最后一个周期时,在撑压位和撑压位位置之间画柱状线,宽度为100,1不为0则画空心柱.,线宽为1,COLORFFFFFF
当满足条件是否最后一个周期时,在底和底位置之间画柱状线,宽度为80,1不为0则画空心柱.,COLOR00FF00,线宽为1
彩云飘带
快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF;
慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF;
DRAWBAND(慢线,RGB(500,180,280),快线,RGB(500,280,180));
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1)COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1)COLORRED,LINETHICK2;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
STARDAY:=IF(DDCS2
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;
N1:=7;
LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW,LINETHICK1;
魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00;
魔王:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),1,X),COLOR00FF00;
TJ0:=X=魔王;
TJ1:=X=魔鬼;
TJ2:=X
TJ3:=X>REF(1,X);
JRS1:=DRAWICON(TJ1 AND TJ2,X,1);
JRS2:=DRAWICON(TJ0 AND TJ3,X,2);
DRAWICON(FILTER(JRS1>0,1),L*0.99,1);
DRAWICON(FILTER(JRS2>0,1),H*1.01,2);
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 ORVAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),2,1),COLORLIRED;
VARD:=CLOSE
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 VAR13OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLORCYAN;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0) , COLORCYAN;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,1),COLORLIRED;
{TOWER}
基础值:=IF(CREF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)))NODRAW;
TOWER:IF(VAR1A,REF(基础值,1),基础值)NODRAW;
动态翻译:
获利行踪
VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) -LLV(LOW,15)))*(100);
VAR2:=REVERSE(VAR1);
VAR3:=SMA(VAR1,5,1);
K:=SMA(VAR3,3,1);
D:=SMA(K,3,1);
STICKLINE((K <= D),100,0,8,0),COLOR2B5500;
STICKLINE((K >= D),100,0,8 ,0 ),COLOR005555;
高线:
80,COLOR0000FF,POINTDOT;
中线:
50,COLOR10CCFF,POINTDOT;
低线:
20,COLOR40FF00,POINTDOT;
{WWW.GUPANG.COM 股旁网_通达信股票指标公式}
DRAWTEXT(CROSS(K,D) AND (D < 18),15,'买'),COLOR00FFFF;
DRAWTEXT(CROSS(D,K) AND (D > 75),85,'卖'),COLORFFFFFF;
STICKLINE((K >= D),K,D,2,0 ),COLORYELLOW;
STICKLINE((K >= D),K,D,1.5 ,0 ),COLORYELLOW;
STICKLINE((K >= D),K,D,1,0 ),COLORYELLOW;
STICKLINE((K >= D),K,D,0,0),COLORYELLOW;
STICKLINE((K <= D),K,D,2,0),COLORGREEN;
STICKLINE((K <= D),K,D,1.5,0),COLORGREEN;
STICKLINE((K <= D),K,D,1,0),COLORGREEN;
STICKLINE((K <= D),K,D,0,0),COLORGREEN;
100,POINTDOT,COLORFFFFFF,LINETHICK5;
动态翻译:
VAR1赋值:((收盘价 - 15日内最低价的最低值)/(15日内最高价的最高值 -15日内最低价的最低值))*(100)
VAR2赋值:VAR1的相反数
VAR3赋值:VAR1的5日[1日权重]移动平均
K赋值:VAR3的3日[1日权重]移动平均
D赋值:K的3日[1日权重]移动平均
当满足条件(K<=D)时,在100和0位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR2B5500
当满足条件(K>=D)时,在100和0位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR005555
输出高线:80,COLOR0000FF,POINTDOT
输出中线:50,COLOR10CCFF,POINTDOT
输出低线:20,COLOR40FF00,POINTDOT
当满足条件K上穿DAND(D<18)时,在15位置书写文字,COLOR00FFFF
当满足条件D上穿KAND(D>75)时,在85位置书写文字,COLORFFFFFF
当满足条件(K>=D)时,在K和D位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
当满足条件(K>=D)时,在K和D位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画黄色
当满足条件(K>=D)时,在K和D位置之间画柱状线,宽度为1,0不为0则画空心柱.,画黄色
当满足条件(K>=D)时,在K和D位置之间画柱状线,宽度为0,0不为0则画空心柱.,画黄色
当满足条件(K<=D)时,在K和D位置之间画柱状线,宽度为2,0不为0则画空心柱.,画绿色
当满足条件(K<=D)时,在K和D位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画绿色
当满足条件(K<=D)时,在K和D位置之间画柱状线,宽度为1,0不为0则画空心柱.,画绿色
当满足条件(K<=D)时,在K和D位置之间画柱状线,宽度为0,0不为0则画空心柱.,画绿色
100,POINTDOT,COLORFFFFFF,线宽为5