以下是通达信资金趋势指标源码(无源码的请下载附件导入)
STICKLINE(80,100,95,99,0),COLOR3399CC;
STICKLINE(80,0,5,99,0),COLOR3399CC;
筹码空间:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
{TX80:80,POINTDOT COLORYELLOW,LINETHICK4;DX20:20,POINTDOT?COLORGREEN,LINETHICK4;}
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
红色线:EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED,LINETHICK3;
绿色线:EMA(0.667*REF(红色线,1)+0.333*红色线,2),COLORGREEN,LINETHICK3;
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);
VAR6:=(红色线+VAR5)/2;
VAR7:=EMA(0.667*REF(VAR5,1)+0.333*红色线,2);
VAR8:=EMA(VAR6,5);
趋势线:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
DRAWICON(LONGCROSS(绿色线,红色线,0.1),绿色线,2),COLORRED,LINETHICK3;
DRAWICON(LONGCROSS(红色线,绿色线,0.1),红色线,1),COLORGREEN,LINETHICK3;
{吃么吗香或光棍翻脸 GGFL}
VAR10:=HHV(HIGH,9)-LLV(LOW,9);
VAR20:=HHV(HIGH,9)-CLOSE;
VAR30:=CLOSE-LLV(LOW,9);
VAR40:=VAR20/VAR10*100-70;
VAR50:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR60:=(2*CLOSE+HIGH+LOW)/4;
VAR70:=SMA(VAR30/VAR10*100,3,1);
VAR80:=LLV(LOW,34);
VAR90:=SMA(VAR70,3,1)-SMA(VAR40,9,1);
VARA0:=IF(VAR90>100,VAR90-100,0);
VARB0:=HHV(HIGH,34);
VARC0:=EMA((VAR60-VAR80)/(VARB0-VAR80)*100,8);
VARD0:=EMA(VARC0,5);
频约娇媚:STICKLINE(VARC0>0 AND VARC0-VARD0>=0,79,80,1,0),COLORGREEN;
连得龙子:STICKLINE(VARC0>0 AND VARC0-VARD0<0,79,80,1,1),COLORRED;
只赚不赔:STICKLINE(VARC0>0 AND VARC0-VARD0>=0,19,20,1,0),COLORGREEN;
STICKLINE(VARC0>0 AND VARC0-VARD0>=0,49,50,3,0),COLORCYAN;
STICKLINE(VARC0>0 AND VARC0-VARD0<0,49,50,3,1),COLORRED;
吃么吗香:STICKLINE(VARC0>0 AND VARC0-VARD0<0,19,20,1,1),COLORRED;
YXWFYJYC:STICKLINE(VARC0-VARD0>0,VARC0,VARD0,1,1),COLORRED;
YNYSNQHS:STICKLINE(VARC0-VARD0<0,VARC0,VARD0,1,1),COLORCYAN;
1452588509.jpg
|