通达信五彩通道主图(通达信)
Var2:=REF(CLOSE-OPEN, 2);
Var3:=REF(CLOSE, 1);
Var4:=REF(CLOSE, 2);
Var5:=REF(CLOSE, 3);
Var6:=REF(CLOSE, 4);
Var7:=MAX(MAX(MAX(CLOSE, Var3), Var4), Var5);
Var8:=MIN(MIN(MIN(CLOSE, Var3), Var4), Var5);
红持股1:STICKLINE(CLOSE=Var7 AND (Var3>=Var4 OR Var3>=Var5) OR Var3=Var7 AND (Var4=Var8 OR Var5=Var8) AND CLOSE>=Var4 OR Var4=Var7 AND Var5=Var8 AND CLOSE>=Var3 OR Var5=Var7 AND CLOSE>=Var3 AND CLOSE>=Var4,Var3,CLOSE,5,1), COLORRED;
红持股:红持股1,colorred;
品红变盘:STICKLINE(CLOSE=Var7 AND Var3=Var8, Var4, CLOSE, 5, 1), COLORff00ff;{MAGENTA;}
黄下跌:STICKLINE(CLOSE=Var8 AND (Var3<Var4 OR Var3<Var5) OR Var3=Var8 AND (Var4=Var7 OR Var5=Var7) AND CLOSE<Var4 OR Var4=Var8 AND Var5=Var7 AND CLOSE<Var3 OR Var5=Var8 AND CLOSE<Var3 AND CLOSE<Var4,Var3,CLOSE,5,0),COLOryellow;
绿买:STICKLINE(Var3=Var7 AND CLOSE=Var8, Var4, CLOSE, 5, 0), COLOR00ff00;{GREEN;}
STICKLINE(Var3=Var8 AND CLOSE>=Var4 OR (Var4=Var8 AND Var3<=Var5 OR Var5=Var8 AND Var3<=Var4) AND Var4<Var6 AND CLOSE>=Var3, Var3, Var4, 5, 0), COLOR00ff00;{GREEN;}
蓝卖:STICKLINE(Var3=Var7 AND CLOSE<Var4 OR (Var4=Var7 AND Var3>Var5 OR Var5=Var7 AND Var3>Var4) AND Var4>=Var6 AND CLOSE<Var3, Var3, Var4, 5, 1), COLORBLUE;
Var9:=SAR(5, 1, 5);
Var10:=EMA(CLOSE, 30);
Var11:=IF(CLOSE>450, 8, IF(CLOSE>=20 AND CLOSE<150, 0.200, IF(CLOSE<20 AND CLOSE>=10, 0.070, IF(CLOSE<10, 0.030, 0.070))));
变色龙:STICKLINE(CLOSE>Var9, Var10, Var10+Var11,6,0), COLORff00ff;
STICKLINE(CLOSE<Var9, Var10, Var10-Var11, 6, 0),COLORffcc66;
STICKLINE(CROSS(CLOSE, Var9), Var10, Var10-Var11,6,0);
STICKLINE(CROSS(Var9, CLOSE), Var10, Var10+Var11,6,0),COLORFF0066;
Var22:=MA(LLV(CLOSE,9)*1.1,14)*1;
Var33:=MA(HHV(CLOSE,26)*0.9,14)*1;
Var55:=EMA((HIGH+LOW+CLOSE)/3,3);
VarB:=AMOUNT/(100*VOL);
VarC:=MA(VarB,34);
VarD:=MA(CLOSE,26);
通道: (VarD+VarC)/2, pointdot, coloryellow;
阻力: VarD+2*STD(CLOSE,34),LINETHICK2 , COLORGREEN;
支持: (VarD-2*STD(CLOSE,26)),LINETHICK2 , colorgreen;
VarE:=MA(WINNER(CLOSE),34)*100;
警: DRAWTEXT(VarE>60 AND HIGH>阻力,HIGH,'★警'), COLORYELLOW;
突破:DRAWTEXT(VarE<15 AND CROSS(Var55,通道),LOW,'★突破'), colorwhite;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR2赋值: 2日前的收盘价-开盘价
VAR3赋值: 1日前的收盘价
VAR4赋值: 2日前的收盘价
VAR5赋值: 3日前的收盘价
VAR6赋值: 4日前的收盘价
VAR7赋值:收盘价和 VAR3较大值, VAR4), VAR5)
VAR8赋值:收盘价和 VAR3的较小值, VAR4), VAR5)
输出
红持股1:STICKLINE(收盘价=VAR7 AND (VAR3>=VAR4 OR VAR3>=VAR5) OR VAR3=VAR7 AND (VAR4=VAR8 OR VAR5=VAR8) AND 收盘价>=VAR4 OR VAR4=VAR7 AND VAR5=VAR8 AND 收盘价>=VAR3 OR VAR5=VAR7 AND 收盘价>=VAR3 AND 收盘价>=VAR4,VAR3,收盘价,5,1), 画红色
输出
红持股:红持股1,画红色
当满足条件收盘价=VAR7 AND VAR3=VAR8时,在 VAR4和 收盘价之间画柱状线
{MAGENTA
输出}
黄下跌:STICKLINE(收盘价=VAR8 AND (VAR3当满足条件VAR3=VAR7 AND 收盘价=VAR8时,在 VAR4和 收盘价之间画柱状线
{GREEN
}
STICKLINE(VAR3=VAR8 AND 收盘价>=VAR4 OR (VAR4=VAR8 AND VAR3<=VAR5 OR VAR5=VAR8 AND VAR3<=VAR4) AND VAR4=VAR3, VAR3, VAR4, 5, 0), COLOR00FF00
{GREEN
输出}
蓝卖:STICKLINE(VAR3=VAR7 AND 收盘价VAR5 OR VAR5=VAR7 AND VAR3>VAR4) AND VAR4>=VAR6 AND 收盘价
VAR9赋值:SAR(5, 1, 5)
VAR10赋值:收盘价的 30日指数移动平均
VAR11赋值:IF(收盘价>450, 8, IF(收盘价>=20 AND 收盘价<150, 0.200, IF(收盘价<20 AND 收盘价>=10, 0.070, IF(收盘价<10, 0.030, 0.070))))
当满足条件收盘价>VAR9时,在 VAR10和 VAR10+VAR11之间画柱状线
当满足条件收盘价
STICKLINE(收盘价上穿 VAR9, VAR10, VAR10-VAR11,6,0)
STICKLINE(VAR9上穿 收盘价, VAR10, VAR10+VAR11,6,0),COLORFF0066
VAR22赋值:9日内收盘价最低值*1.1的14日简单移动平均*1
VAR33赋值:26日内收盘价最高值*0.9的14日简单移动平均*1
VAR55:=EMA((最高价+最低价+收盘价)/3,3)
VARB赋值:成交额/(100*成交量)
VARC赋值:VARB的34日简单移动平均
VARD赋值:收盘价的26日简单移动平均
输出
通道: (VARD+VARC)/2, POINTDOT, 画黄色
输出
阻力: VARD+2*收盘价的34估算标准差, 线宽为2 , 画绿色
输出
支持: (VARD-2*收盘价的26估算标准差), 线宽为2 , 画绿色
VARE赋值:MA(收盘价计算的获利盘比例,34)*100
当满足条件VARE>60 AND 最高价>阻力时,在最高价和'★警'位置书写文字
输出
突破:DRAWTEXT(VARE<15 AND VAR55上穿通道,最低价,'★突破'), 画白色