软件名称:[B]通达信风险控制指标公式[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2017-07-09 00:46:06
软件简介:
{A2}
V1:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
V2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
IF(MA(CLOSE,17)<V2,V2,MA(CLOSE,17))COLORFF00FF,LINETHICK2;
MA10:MA(CLOSE,10),COLORWHITE;
MA30:MA(CLOSE,30),COLOR00FF00,LINETHICK2;
MA55:MA(C,55);
STICKLINE(MA10>=REF(MA10,1),MA10,REF(MA10,1),8,1)COLORRED,LINETHICK2;
STICKLINE(MA10<REF(MA10,1),MA10,REF(MA10,1),8,1)COLORFF9900,LINETHICK2;
A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));
B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));
DRAWTEXT(B1>0,LOW-0.02,'底背离'),COLOR00FFFF;{底背离}
C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF"(12,26,9),C1+1)>"MACD.DIF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9));
DRAWTEXT(D1>0,H+0.16,'顶背离'),COLOR00FF00;{顶背离}
{风险控制}
MSD:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE;
风险区:80,COLORFF85FF;
安全区:20,COLORYELLOW;
天线:100,COLORFFFF00,LINETHICK2;
地线:=0,LINETHICK2 COLOR6699FF;
强弱线:50,COLORGREEN,POINTDOT;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF(VAR9>100,VAR9-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
趋势值:VAR13,COLORRED;
STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;
STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;
VARK1:=EMA(HHV(HIGH,500),21);
VARK2:=EMA(HHV(HIGH,250),21);
VARK3:=EMA(HHV(HIGH,90),21);
VARK4:=EMA(LLV(LOW,500),21);
VARK5:=EMA(LLV(LOW,250),21);
VARK:=EMA(LLV(LOW,90),21);
VARK7:=EMA((VARK4*0.96+VARK5*0.96+VARK*0.96+VARK1*0.558+VARK2*0.558+VARK3*0.558)/6,21);
VARK8:=EMA((VARK4*1.25+VARK5*1.23+VARK*1.2+VARK1*0.55+VARK2*0.55+VARK3*0.65)/6,21);
VARK9:=EMA((VARK4*1.3+VARK5*1.3+VARK*1.3+VARK1*0.68+VARK2*0.68+VARK3*0.68)/6,21);
VARKA:=EMA((VARK7*3+VARK8*2+VARK9)/6*1.738,21);
VARKB:=REF(LOW,1);
VARKC:=SMA(ABS(LOW-VARKB),3,1)/SMA(MAX(LOW-VARKB,0),3,1)*100;
VARKD:=EMA(IF(CLOSE*1.35<=VARKA,VARKC*10,VARKC/10),3);
VARKE:=LLV(LOW,30);
VARKF:=HHV(VARKD,30);
VARK10:=IF(MA(CLOSE,58),1,0);
火焰山: EMA(IF(LOW<=VARKE,(VARKD+VARKF*2)/2,0),3)/618*VARK10;
火焰: STICKLINE(火焰山>0,0,火焰山,4,1);
今量: 火焰山;
STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF;
STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF;
STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF;
STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF;
STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;
{VOL净量累和}
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=买量+卖量,LINETHICK0;
净量:=买量-卖量,LINETHICK0;
五日净量:SUM(净量,5),LINETHICK2,COLORFFFFFF;
十日净量:SUM(净量,10),LINETHICK2,COLOR007800;
二十日净量:SUM(净量,20),LINETHICK2,COLOR0000AD;
六十日净量:SUM(净量,60),LINETHICK2,COLORFF0000;
0;
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
YE6:=SUM((YE1*YE5),1);
YE7:=SUM((YE2*YE5),1);
YE8:=SUM((YE3*YE5),1);
YE9:=SUM((YE4*YE5),1);
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,2.5,0),COLOR0000AA;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,1.7,0),COLOR0000CC;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,0.9,0),COLOR0000DD;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,0.04,0),COLOR0000FF;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),2.5,0),COLOR998855;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),1.7,0),COLORBBAA77;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),0.9,0),COLORDDCC99;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),0.04,0),COLORFFEEBB;
买盘:=(YE9+YE8);{www.70822.com}
卖盘:=(YE6+YE7)*(-1);
买卖差:=(YE9+YE8)-(YE6+YE7);
STICKLINE(买卖差>0,0,买卖差,2.5,0),COLOR00AAAA;
STICKLINE(买卖差>0,0,买卖差,1.7,0),COLOR00CCCC;
STICKLINE(买卖差>0,0,买卖差,0.9,0),COLOR00EEEE;
STICKLINE(买卖差>0,0,买卖差,0.04,0),COLOR00FFFF;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
[url=http://www.70822.com/soft/sort013/sort05/down-113795.html]通达信风险控制指标公式[/url]