通达信多头加仓副图公式

[复制链接]
查看27 | 回复0 | 2022-7-24 07:01:38 | 显示全部楼层 |阅读模式

 

AA:=REF(CLOSE,1);
 BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;
 HHH:=BBB-LLV(BBB,10);
 SS:=(MA(HHH,2)*3+HHH*13)/16;
 短线买点:=IF(SS>13,MA(SS,2),SS)/6,COLOR00FF00;
 短线出击:IF(CROSS(短线买点,1) AND (短线买点<30),50,0),COLORRED,STICK,LINETHICK2;
 VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
红线:EMA((VA-VB)/(VC-VB)*27,5),COLORRED;
绿线:EMA(红线,3),COLORFFFF00;
DRAWTEXT(CROSS(短线买点,1) AND (短线买点<30),45,' 5%'),COLORYELLOW;
 V1:=MA(C,3)=HHV(MA(C,3),7);
 V2:=MA(C,3)>MA(C,5);
 V3:=MA(V,5)>MA(V,10)*1.01;
 V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
 LC20:=REF(CLOSE,1);
 RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
STICKLINE(CROSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;
 VAR3A:=3;
 VAR2A:=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);
 MTM:=C-REF(C,1);
 DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
 YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
 XX:=((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100)* 5);
 B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) ) * 100) * 5);
 B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) ) * 100) * 5);
 B003:=(((XX + B001) / 2) - (B002 ));
 B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) - LLV(LOW,34)));
 B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) - LLV(LOW,42)));
 B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) - LLV(LOW,72)));
 B007:=EMA((((B004 + B005) / 2) - B006),6);
 B008:=REF(CLOSE,1);
B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);
 B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);
 B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);
 多头:EMA(((((B009 + B010) / 2) - B011) * 5),6);
 空头:((((0 - 1) * ((B007 + B003) + 多头)) / 3) * 1.5);
 多均:EMA(多头,4);
 空均:EMA(空头,4);
 加仓:IF(FILTER(YXF=1,5) AND 多头>多均 AND 红线>绿线 ,30,0),COLORLIBLUE,LINETHICK3;
 加仓0:IF(FILTER(YXF=1,5) AND CROSS(RSI20,11) AND 短线出击>0 AND 红线>绿线 AND 多头>多均 AND 空头>空均,20,-10),COLORRED,LINETHICK3;

 

回复

使用道具 举报

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

本版积分规则