公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

陶氏指标TWXC

2013-8-23 17:05| 发布者: admin| 查看: 95| 评论: 0

{陶氏指标TWXC}
n:=37;{参数}
MM:="MACD.MACD"(12,26,9);
P:=IF(MM,SMA(EMA(CLOSE,12)-EMA(CLOSE,26),3,1),0);
TSX:IF(MM,((P-MA(P,N))*(100))/((1.5)*(AVEDEV(P,N))),0),COLORFF00FF;
MTC:IF(MM,MA(TSX,5),0),COLORFFFFFF;
X1:=HHV(TSX,7);
X2:=LLV(TSX,7);
STICKLINE((REF(TSX,1)=X2),TSX,TSX+66,1,0),COLOR0000FF;
STICKLINE((REF(TSX,1)=X1),TSX,TSX-66,1,0),COLOR00FF00;
TSXA:IF(MM,((P-MA(P,7))*(100))/((1.5)*(AVEDEV(P,7))),0),COLOR00FF00;
MTSXA:IF(MM,MA(TSXA,5),0),COLOR00FFFF;
TC:TSX-MTC,COLORSTICK,COLOR00FF00;
80,POINTDOT,LINETHICK2,COLOR00AA00;
(-80),POINTDOT,LINETHICK2,COLOR00AA00;
XG1:CROSS(TSX,MA(TSX,2));
XG2:CROSS(TSXA,MTSXA);

{-----股票软件下载网-------}
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF((VAR2>0) AND (VAR2>VAR3),VAR2,0),25);
VAR5:=SUM(IF((VAR3>0) AND (VAR3>VAR2),VAR3,0),25);
VAR6:=((VAR4)*(100))/(VAR1);
VAR7:=((VAR5)*(100))/(VAR1);
VAR8:=MA(((ABS(VAR7-VAR6))/(VAR7+VAR6))*(100),15);
VAR9:=(VAR8+REF(VAR8,15))/(2);
A:=(VAR7>VAR6) AND (VAR7>25) AND (VAR6<25);
B:(ZIG(3,(50)/(5)))*(100),COLORFFFFFF,LINETHICK0;
G:MA(B,2),LINETHICK0,COLOR00FFFF;
D:=(CROSS(B,G))*(1000);
W:=(CROSS(G,B))*(1000);
E:=REF(INDEXC,1);
F:=(SMA(MAX(INDEXC-E,0),3,1))/(SMA(ABS(INDEXC-E),3,1));
VAR10:=F AND (F<8);
VAR11:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND (VAR13<20);
MM:=A AND D AND VAR10 AND VAR14;
DRAWTEXT((W=1000),(B)*(1.05),'卖'),COLOR00FF00;
DRAWTEXT((D=1000),(B)*(1.05),'买'),COLOR0000FF;

{-----88GS-----}
T1:=CLOSE-LLV(LOW,N);
T2:=(HHV(HIGH,N)-LLV(LOW,N));
T3:=(CLOSE-LLV(LOW,N));
T4:=(HHV(HIGH,N)-LLV(LOW,N));
T5:=SMA(T3/T4*100,5,1);
T6:=SMA(T1/T2*100,5,1);
T7:=SMA(T5,3,1);
TSXX:T6*3-T7*2,COLORFF00FF;
TSXAA:100-TSXX,COLOR00FFFF;
高位线:80,COLOR00FFFF;
低位线:20,COLORFF00FF;
见底信号:IF((TSXX<10),30,0),COLOR00FF00;
买入信号:IF(CROSS(TSXX,10),50,0),COLORFFFFFF;
95,COLOR0000FF;


鲜花

握手

雷人

路过

鸡蛋
返回顶部