通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信expma买卖指标公式

  

M1:=9;  

M2:=55;  

EXP1:EXPMA(CLOSE,M1);  

EXP2:EXPMA(CLOSE,M2);  

DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.97,'←买吧'),  

LINETHICK2,COLOR00FFFF;  

DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND  

(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1);  

DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2))AND  

(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);  

AZ6:=(3*(SMA((((CLOSE-(LLV(LOW,27)))/  

((HHV(HIGH,27))-(LLV(LOW,27))))*100),5,1)))-(2*(SMA((SMA((((CLOSE-  

(LLV(LOW,27)))/((HHV(HIGH,27))-(LLV(LOW,27))))*100),5,1)),3,1)));  

B7:=(10);  

DRAWTEXT(CROSS(AZ6,B7),L,''),COLOR0000FF;  

VARC:=(ZIG(3,5)>REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND  

(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));  

VARD:=(ZIG(3,5)=REF(ZIG(3,5),2))AND  

(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));  

DRAWTEXT((VARC=1),L,'←追呀'),COLOR0000FF;  

DRAWTEXT((VARD=1),H,'←跑吧'),COLOR00FF00;  

DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORE88300,LINETHICK2;  

MA5:MA(CLOSE,5);  

MA10:MA(CLOSE,10);  

MA30:MA(CLOSE,30);  

MA60:MA(CLOSE,60);  

MA120:MA(CLOSE,120);  

MA250:MA(CLOSE,250),COLORRED;  

E1:EXPMA(CLOSE,17),LINETHICK2;  

E2:EXPMA(CLOSE,50),LINETHICK2;  

E3:EXPMA(CLOSE,12),LINETHICK2;  

EXP1:=EMA(CLOSE,17);  

EXP2:=EMA(CLOSE,17);  

A1:=C>O;{说出票少,会站岗那就改为当天阳线,有需涨停换为C/REF(C,1)>1.099,}  

A2:=LOW>EXP1;  

BOLL:=MA(CLOSE,25);  

A3:=LOW>BOLL;  

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIF,9);  

MACD:=2*(DIF-DEA);  

A4:=CROSS(DIF,DEA);  

A5:=REF(A4,1);  

A6:=COUNT(A5,21)>0;{今天之前3个星期以来曾经金叉}  

停牌:=IF((C=0ORV=0),0,1);  

一字板:=NOT(C=OANDH=L);  

XG:A1ANDA2ANDA3ANDA4ANDA6AND停牌AND一字板;  

cci下穿100出,上穿-100进  

股价上穿趋势线进。  

n:2,90,9;n1:2,100,14;m1m2:2,30,3  

{jc买卖}  

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;  

买:CROSS(J,0)COLORRED;  

卖:CROSS(100,J)COLORYELLOW;  

MA7:MA(C,7),COLOR0000FF;  

MA13:MA(C,13),COLOR0096FF;  

MA21:MA(C,21),COLOR00FF99;  

MA49:MA(C,49),COLORFF00FF;  

A:=BARSCOUNT(CLOSE);  

AH:=HHV(HIGH,200);  

AL:=LLV(LOW,200);  

B0:=(AH-AL)/40;  

B1:=HIGH+B0;  

B2:=LOW-B0;  

DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2.2*B0*1.1,'变盘'),COLORRED;  

DRAWTEXT(IF(CROSS(69,SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100),1,0),HIGH*1.045,'警'),COLORWHITE;  

LC:=REF(CLOSE,1);  

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

DRAWICON(CROSS(RSI,11),L*0.99,3);  

VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;  

DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0ANDEMA(CLOSE,12)/LOW>1.15,5),LOW,'买'),COLORFF00FF;  

VARA:=((AMOUNT)/(VOL))/(100);  

VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);  

VARC:=((SUM(AMOUNT,7))/(VARA))/(100);  

VARD:=DMA(VARB,(VOL)/(VARC));  

VARE:=((CLOSE-VARD)/(VARD))*(100);  

VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);  

VARJ:=MA(VARE,20)+STD(VARE,20);  

BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);  

AA:=SMA(VARF,3,1);  

SS:=(REF(BIAS18,1)>=5)ANDCROSS(VARJ,VARE)AND(AA>79);  

DRAWTEXT((REF(BIAS18,1)>=5)ANDCROSS(VARJ,VARE)AND(AA>SS)ANDCROSS(84,RSI),H*1.028,'卖'),LINETHICK7,COLORGREEN;  

DRAWTEXT(CROSS(84,RSI)ANDCROSS(76,VAR28),H*1.01,'出'),LINETHICK7,COLORYELLOW;  

买线:=EMA(C,2);  

卖线:=EMA(SLOPE(C,13)*21+C,49);  

STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,1.2,0),COLORYELLOW;  

STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,1.2,0),COLORBLUE;  

V1:=EMA(CLOSE,60)-EMA(CLOSE,300);  

V2:=EMA(V1,300);  

V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;  

操盘线:=SMA(V3,2,1),LINETHICK3;  

V5:=SMA(操盘线,2,1);  

DRAWICON(CROSS(操盘线,V5)ANDMA7>REF(MA7,1),L*0.987,5);  

DRAWICON(操盘线<REF(操盘线,1)ANDREF(操盘线,1)>REF(操盘线,2)ANDMA21<REF(MA21,1)ANDREF(操盘线,1)>40ANDCROSS(V5,操盘线),H*1.01,6);  

STICKLINE((REF(BIAS18,1)>=5)ANDCROSS(VARJ,VARE)AND(AA>SS)ANDCROSS(84,RSI)ANDCROSS(76,VAR28),C,O,3,0),COLORGREEN,LINETHICK2;{底位红色}  

STICKLINE(操盘线>REF(操盘线,1)ANDCROSS(操盘线,V5)ANDV5<50ANDMA13<REF(MA13,1),C,O,3,0),COLORMAGENTA,LINETHICK2;{底位红色};

image.png

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