多空对照(通达信公式 副图 源码 测试图)

[复制链接]
查看38 | 回复0 | 2022-6-27 16:20:19 | 显示全部楼层 |阅读模式

 多空对照

RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100; 
短多:SMA(RSV,3,1),COLORRED,LINETHICK1; 
短空:SMA(短多,3,1),COLORYELLOW,LINETHICK1; 
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; 
中多:SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;
中空:SMA(中多,10,1),COLORGREEN,LINETHICK1;
DRAWBAND(中多,RGB(055,50,34),中空,RGB(100,100,50));
DRAWBAND(短多,RGB(255,50,34),短空,RGB(0,91,0));
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
长强势区:=IF((EVERY(短多>=REF(短多,1),1)AND 短多<短空),5,0)COLOR0000FF,LINETHICK3;
 
长强势区1:=IF((EVERY(中多>=REF(中多,1),1)AND 中多<18),5,0)COLOR0000FF,LINETHICK3;
 
长强势区11:=IF((EVERY(中多<=REF(中多,1),1)AND 中多>85),5,0)COLOR0000FF,LINETHICK3;
 
长强势区2:=IF((EVERY(短多<=REF(短多,1),1)AND 短多>短空),5,0)COLOR0000FF,LINETHICK3;
 
 
 
 
VAR1 := REF(OPEN,1);
VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;
VAR3:= REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
VAR5:= REF(HIGH,1);
VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;
VAR7:= REF(LOW,1);
VAR9:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;
VAR8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;
VAR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
VAR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR12:=EMA(VAR11,8)*10<-26;
VAR13:=IF(VAR8 AND MA(VAR10,5)<50 AND VAR12,30,0);
开盘值:=VAR2;
收盘值:=VAR4;
最高值:=VAR6;
最低值:=VAR9;
入顶:=80,LINETHICK1,COLORGREEN;
入底:=20,LINETHICK1 COLORMAGENTA;
大波:CROSS(收盘值,入底),COLORRED;
STICKLINE(IF(大波,150,0),25,0,8,0),COLORRED;
DRAWTEXT(大波,45.5,'←大波'),COLORRED;
 
 
 
RSV庄:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K庄:=SMA(RSV庄,3,1);
D庄:=SMA(K庄,3,1);
J庄:=3*K庄-2*D庄;
X庄:=LLV(J庄,2)=LLV(J庄,8);
中波:CROSS(J庄,REF(J庄+0.01,1)) AND X庄 AND J庄<19,COLORWHITE;
STICKLINE(IF(中波,150,0),30,0,4,0),COLORMAGENTA;
DRAWTEXT(中波,35,'←中波'),COLORWHITE;
 
YY:=55;
WL:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
WLT:=MA(WL,89);
WLT1:=CROSS(WL,WLT);
WLT11:=CROSS(WL,-10);
WLT2:=FILTER(WLT1,8);
T1:=WLT11 OR WLT2;
T2:=REF("KDJ.J",1)<0 AND "KDJ.J">0;
LV:=MA(C,24);
HR0:=HHV(HIGH,YY);
HRY0:=LLV(LOW,YY);
HRY110:=HR0*HRY0;
HRY330:=SQRT(HRY110);
NS1:=C>HRY330 AND HRY330 >=REF(HRY330,1) AND C>LV;
T3:=WLT2 OR WL>WLT;
XG1:=T1 AND NS1;
XG2:=T1 AND T3;
超短波:XG1 OR XG2 OR T2;
STICKLINE(IF(超短波,150,0),10,0,4,0),COLORYELLOW;
DRAWTEXT(超短波,10,'←超短'),COLORYELLOW;
 

20211252382567112.png

20211252382567112.png

20211252381248079.rar

3.74 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

20211252381248079.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则