[求助]求版主给改个指标 [通达信]
-
咨询内容:
请求版主或论坛高手帮忙改个指标,通达信所用。谢谢!!VAR1:=EMA(LOW,1);VAR2:=EMA(HIGH,2);VAR3:=EMA(CLOSE,2);VAR4:=(VAR3-LLV(VAR1,9))/(HHV(VAR2,9)-LLV(VAR1,9))*100;VAR5:=SMA(VAR4,3,1);Y:SMA(VAR5,3,1),COLORRED;Y1:=SMA(Y,3,1);VAR6:=(HHV(VAR2,9)-VAR3)/(HHV(VAR2,9)-LLV(VAR1,9))*100;YI: SMA(VAR6,3,1),COLORYELLOW;Y2:=SMA(YI,3,1);VAR7:=REF(VAR3,1);VAR8:=SMA(MAX(VAR3-VAR7,0),13,1)/SMA(ABS(VAR3-VAR7),13,1)*100;VARB:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;VARC:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;VARD:=CLOSE*100/MA(CLOSE,10)-100;VARE:=IFELSE(VARB>10,10,VARB);VARF:=IFELSE(VARE<-10,-10,VARE);VAR10:=IFELSE(VARC>10,10,VARC);VAR11:=IFELSE(VAR10<-10,-10,VAR10);VAR12:=REF(VARB,1);VAR13:=100*(VAR3-REF(VAR3,1))/REF(VAR3,1);VAR15:=REF(CLOSE,1);VAR16:=100*(CLOSE-VAR15)/CLOSE;VAR17:=MA(VAR13,3);VAR18:=MA(VAR16,3);VAR19:=(3*CLOSE+VAR1+OPEN+HIGH)/6;VAR1A:=(20*VAR19+19*REF(VAR19,1)+18*REF(VAR19,2)+17*REF(VAR19,3)+16*REF(VAR19,4)+15*REF(VAR19,5)+14*REF(VAR19,6)+13*REF(VAR19,7)+12*REF(VAR19,8)+11*REF(VAR19,9)+10*REF(VAR19,10)+9*REF(VAR19,11)+8*REF(VAR19,12)+7*REF(VAR19,13)+6*REF(VAR19,14)+5*REF(VAR19,15)+4*REF(VAR19,16)+3*REF(VAR19,17)+2*REF(VAR19,18)+REF(VAR19,20))/210;VAR1B:=MA(VAR1A,12);VAR1C:=EMA(VAR1A,5);VAR1D:=ABS(VAR1A-VAR1B);VAR1E:=REF(VAR3,1)*0.015;VAR1F:=REF(CLOSE,1);VAR26:=MA(CLOSE,26);VAR27:=VAR26+2*STD(VAR3,26);VAR28:=VAR26-2*STD(VAR3,26);VAR29:=VAR26+2*STD(REF(VAR3,1),26);VAR2A:=VAR26-2*STD(REF(VAR3,1),26);D1:=EMA(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),5);D2:=REF(D1,1);STICKLINE(D1>=REF(D1,1),D1,D2,COLORRED,0);STICKLINE(D1<REF(D1,1),D1,D2,COLORCYAN,0);QR:SMA(MAX(VAR3-VAR7,0),5,1)/SMA(ABS(VAR3-VAR7),5,1)*100,COLORLIGHTGREEN;A:20,COLORCYAN;B:80,COLORLIGHTBLUE;D:0,COLORWHITE;E:100,COLORWHITE;
-
通达信技术部:
VAR1:=EMA(LOW,1);
VAR2:=EMA(HIGH,2);
VAR3:=EMA(CLOSE,2);
VAR4:=(VAR3-LLV(VAR1,9))/(HHV(VAR2,9)-LLV(VAR1,9))*100;
VAR5:=SMA(VAR4,3,1);
Y:SMA(VAR5,3,1),COLORRED;
Y1:=SMA(Y,3,1);
VAR6:=(HHV(VAR2,9)-VAR3)/(HHV(VAR2,9)-LLV(VAR1,9))*100;
YI: SMA(VAR6,3,1),COLORYELLOW;
Y2:=SMA(YI,3,1);
VAR7:=REF(VAR3,1);
VAR8:=SMA(MAX(VAR3-VAR7,0),13,1)/SMA(ABS(VAR3-VAR7),13,1)*100;
VARB:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;
VARC:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;
VARD:=CLOSE*100/MA(CLOSE,10)-100;
VARE:=IF(VARB>10,10,VARB);
VARF:=IF(VARE<-10,-10,VARE);
VAR10:=IF(VARC>10,10,VARC);
VAR11:=IF(VAR10<-10,-10,VAR10);
VAR12:=REF(VARB,1);
VAR13:=100*(VAR3-REF(VAR3,1))/REF(VAR3,1);
VAR15:=REF(CLOSE,1);
VAR16:=100*(CLOSE-VAR15)/CLOSE;
VAR17:=MA(VAR13,3);
VAR18:=MA(VAR16,3);
VAR19:=(3*CLOSE+VAR1+OPEN+HIGH)/6;
VAR1A:=(20*VAR19+19*REF(VAR19,1)+18*REF(VAR19,2)+17*REF(VAR19,3)+16*REF(VAR19,4)+15*REF(VAR19,5)+14*REF(VAR19,6)+13*REF(VAR19,7)+12*REF(VAR19,8)+11*REF(VAR19,9)+10*REF(VAR19,10)+9*REF(VAR19,11)+8*REF(VAR19,12)+7*REF(VAR19,13)+6*REF(VAR19,14)+5*REF(VAR19,15)+4*REF(VAR19,16)+3*REF(VAR19,17)+2*REF(VAR19,18)+REF(VAR19,20))/210;
VAR1B:=MA(VAR1A,12);
VAR1C:=EMA(VAR1A,5);
VAR1D:=ABS(VAR1A-VAR1B);
VAR1E:=REF(VAR3,1)*0.015;
VAR1F:=REF(CLOSE,1);
VAR26:=MA(CLOSE,26);
VAR27:=VAR26+2*STD(VAR3,26);
VAR28:=VAR26-2*STD(VAR3,26);
VAR29:=VAR26+2*STD(REF(VAR3,1),26);
VAR2A:=VAR26-2*STD(REF(VAR3,1),26);
D1:=EMA(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),5);
D2:=REF(D1,1);
STICKLINE(D1>=REF(D1,1),D1,D2,2,0),COLORRED;
STICKLINE(D1<REF(D1,1),D1,D2,2,0),COLORCYAN;
QR:SMA(MAX(VAR3-VAR7,0),5,1)/SMA(ABS(VAR3-VAR7),5,1)*100,COLORLIGREEN;
A:20,COLORCYAN;
B:80,COLORLIBLUE;
D:0,COLORWHITE;
E:100,COLORWHITE;公式学习网址
http://tdx.com.cn/dispbbs.asp?boardid=12&Id=282467
http://tdx.com.cn/dispbbs.asp?boardid=47&Id=255723
上面的是实战的 照着写一些应该学的快些 下面网址偏理论
其实主要是自己ctrl+F 公式管理器里面 新建 插入函数
这个系统自带的东西 多看看 多用用 多实践
http://help.tdx.com.cn/book.asp 红宝书全系列
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容