渔家K线主图通达信指标 源码 贴图
VAR2:=MA(ADVANCE-DECLINE,3)/100;
VAR3:=MA(CLOSE,1)*1.01;
VAR4:=MA(OPEN,3)*1.01;
VAR5:=(MA(HIGH,3)+MA(LOW,3)+MA(CLOSE,3)+MA(OPEN,3)+MA(HIGH,2)+MA(LOW,2)+MA(CLOSE,2)+MA(OPEN,2)+HIGH+LOW+OPEN+CLOSE)/12{+VAR2};
VAR6:=IF(VAR4>VAR5,VAR4,VAR5);
VAR7:=IF(VAR4<VAR5,VAR4,VAR5);
VAR8:=2/100;{股票指标网}
下通道:MA(VAR7,3)*(1-VAR8),LINETHICK2,COLORGREEN;
上通道:MA(VAR6,3)*(1+VAR8),LINETHICK2,COLORGREEN;
下支撑通道:EMA(VAR6,8)*(1-VAR8),LINETHICK2,COLORRED;
上压力通道:DMA(VAR7,3)*(1+VAR8),LINETHICK2,COLORYELLOW;
STICKLINE(VAR3>VAR4,VAR4,VAR3,2,0),LINETHICK1 COLORYELLOW;
STICKLINE(VAR3<VAR4,VAR3,VAR4,2,0),LINETHICK1 COLORRED;
STICKLINE(VAR5>VAR4,VAR5,VAR4,2,0)COLORMAGENTA;
STICKLINE(VAR5<VAR4,VAR4,VAR5,2,0)COLORCYAN;
STICKLINE(VAR3>VAR5,VAR5,VAR3,0.01,0)COLORRED;
STICKLINE(VAR3<VAR5,VAR5,VAR3,0.01,0)COLORYELLOW;
V1:=1;{股票指标网}
V4:=HIGH*VOL;
压力与支撑一: EMA((EMA(V4,3)/EMA(VOL,3)+EMA(V4,5)/EMA(VOL,5)+EMA(V4,13)/EMA(VOL,13)+EMA(V4,21)/EMA(VOL,21))/4,1)*V1, COLORRED CIRCLEDOT LINETHICK2;
V2:=CLOSE*VOL;
压力与支撑二: EMA((EMA(V2,3)/EMA(VOL,3)+EMA(V2,5)/EMA(VOL,5)+EMA(V2,13)/EMA(VOL,13)+EMA(V2,21)/EMA(VOL,21))/4,1)*V1, COLORWHITE CIRCLEDOT LINETHICK2;
V3:=OPEN*VOL;
压力与支撑三: EMA((EMA(V3,3)/EMA(VOL,3)+EMA(V3,5)/EMA(VOL,5)+EMA(V3,13)/EMA(VOL,13)+EMA(V3,21)/EMA(VOL,21))/4,1)*V1, COLORBLUE CIRCLEDOT LINETHICK2;
V5:=LOW*VOL;
压力与支撑四: EMA((EMA(V5,3)/EMA(VOL,3)+EMA(V5,5)/EMA(VOL,5)+EMA(V5,13)/EMA(VOL,13)+EMA(V5,21)/EMA(VOL,21))/4,1)*V1, COLORGREEN CIRCLEDOT LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR2赋值:ADVANCE-DECLINE的3日简单移动平均/100
VAR3赋值:收盘价的1日简单移动平均*1.01
VAR4赋值:开盘价的3日简单移动平均*1.01
VAR5赋值:(最高价的3日简单移动平均+最低价的3日简单移动平均+收盘价的3日简单移动平均+开盘价的3日简单移动平均+最高价的2日简单移动平均+最低价的2日简单移动平均+收盘价的2日简单移动平均+开盘价的2日简单移动平均+最高价+最低价+开盘价+收盘价)/12{+VAR2}
如果VAR4>VAR5返回VAR4否则返回VAR5
如果VAR4
VAR8赋值:2/100
输出{股票指标网}
下通道:VAR7的3日简单移动平均*(1-VAR8), 线宽为2,画绿色
输出
上通道:VAR6的3日简单移动平均*(1+VAR8), 线宽为2,画绿色
输出
下支撑通道:VAR6的8日指数移动平均*(1-VAR8), 线宽为2,画红色
输出
上压力通道:DVAR7的3日简单移动平均*(1+VAR8), 线宽为2,画黄色
当满足条件VAR3>VAR4时,在VAR4和VAR3之间画柱状线
当满足条件VAR3当满足条件VAR5>VAR4时,在VAR5和VAR4之间画柱状线
当满足条件VAR5当满足条件VAR3>VAR5时,在VAR5和VAR3之间画柱状线
当满足条件VAR3
V1赋值:1
{股票指标网}
V4赋值:最高价*成交量
输出
压力与支撑一: EMA((EMA(V4,3)/EMA(成交量,3)+EMA(V4,5)/EMA(成交量,5)+EMA(V4,13)/EMA(成交量,13)+EMA(V4,21)/EMA(成交量,21))/4,1)*V1, 画红色 CIRCLEDOT 线宽为2
V2赋值:收盘价*成交量
输出
压力与支撑二: EMA((EMA(V2,3)/EMA(成交量,3)+EMA(V2,5)/EMA(成交量,5)+EMA(V2,13)/EMA(成交量,13)+EMA(V2,21)/EMA(成交量,21))/4,1)*V1, 画白色 CIRCLEDOT 线宽为2
V3赋值:开盘价*成交量
输出
压力与支撑三: EMA((EMA(V3,3)/EMA(成交量,3)+EMA(V3,5)/EMA(成交量,5)+EMA(V3,13)/EMA(成交量,13)+EMA(V3,21)/EMA(成交量,21))/4,1)*V1, 画蓝色 CIRCLEDOT 线宽为2
V5赋值:最低价*成交量
输出
压力与支撑四: EMA((EMA(V5,3)/EMA(成交量,3)+EMA(V5,5)/EMA(成交量,5)+EMA(V5,13)/EMA(成交量,13)+EMA(V5,21)/EMA(成交量,21))/4,1)*V1, 画绿色 CIRCLEDOT 线宽为2