JGDDE不见主力持仓就不进通达信公式 副图 源码附图
N:=10;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(10);
VAR11:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
STICKLINE(VAR12<REF(VAR12,1),0,VAR12*0.08,4,1),COLOR10E410;
{减仓:IF(VAR12<REF(VAR12,1),VAR12,0),COLOR10E410,LINETHICK0;}
STICKLINE(VAR9<REF(VAR9,1),0,VAR9*0.5,4,1),COLOR1010FF;
增仓:IF(VAR9<REF(VAR9,1),VAR9*0.2,0),COLORFFAAFF,LINETHICK0;
STICKLINE(VAR8>REF(VAR8,1),0,VAR8*5,4,1),COLOR10FFFF,LINETHICK0;
主力进场:=IF(VAR8>REF(VAR8,1),VAR8*8,0),COLOR10FFFF,LINETHICK0;
STICKLINE(VAR11>REF(VAR11,1),0,VAR11*5,4,1),COLORFFF810;
洗盘:=IF(VAR11>REF(VAR11,1),VAR11*8,0),COLORFFF810,LINETHICK4;
主力持仓:LOW,COLORFF10FF,LINETHICK0;
增减力度:VAR10*5,COLORWHITE,LINETHICK2;
增减MA:MA(增减力度,N),COLORRED ,LINETHICK2;
{股票指标网WWW.}
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
STICKLINE(XL3,0,VAR8*15,4,0),COLOR006EFF;
DRAWTEXT(XL3,VAR8*6,'买'),COLOR006EFF;
A买:DRAWICON(XL3,VAR8*3,4),COLOR9000F5;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:10
VAR2赋值:1日前的最低价
VAR3赋值:SMA(最低价-VAR2的绝对值,13,1)/SMA(最低价-VAR2和0较大值,13,1)*100
如果收盘价*1.2返回VAR3*13否则返回VAR3/13
VAR5赋值:34日内最低价最低值
VAR6赋值:34日内VAR4最高值
VAR7赋值:IF(56日内最低价最低值,1,0)
VAR8赋值:EMA(IF(最低价<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7
VAR9赋值:收盘价的5日指数移动平均
VAR10赋值:(收盘价-收盘价的34日简单移动平均)/收盘价的34日简单移动平均*(10)
VAR11赋值:EMA(IF(最低价<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1)
VAR12赋值:收盘价的5日指数移动平均*(-1)
STICKLINE(VAR12<1日前的VAR12,0,VAR12*0.08,4,1),COLOR10E410
输出{减仓:IF(VAR12<1日前的VAR12,VAR12,0),COLOR10E410,LINETHICK0
}
STICKLINE(VAR9<1日前的VAR9,0,VAR9*0.5,4,1),COLOR1010FF
输出增仓:IF(VAR9<1日前的VAR9,VAR9*0.2,0),COLORFFAAFF,LINETHICK0
STICKLINE(VAR8>1日前的VAR8,0,VAR8*5,4,1),COLOR10FFFF,LINETHICK0
主力进场赋值:IF(VAR8>1日前的VAR8,VAR8*8,0),COLOR10FFFF,LINETHICK0
STICKLINE(VAR11>1日前的VAR11,0,VAR11*5,4,1),COLORFFF810
洗盘赋值:IF(VAR11>1日前的VAR11,VAR11*8,0),COLORFFF810,LINETHICK4
输出主力持仓:最低价,COLORFF10FF,LINETHICK0
输出增减力度:VAR10*5,画白色,LINETHICK2
输出增减MA:增减力度的N日简单移动平均,画红色 ,LINETHICK2
{股票指标网WWW.}
XL1赋值:最低价的2日简单移动平均*0.96
XL2赋值:最低价的26日简单移动平均*0.85
XL3赋值:1日前的XL1当满足条件XL3时,在0和VAR8*15之间画柱状线
当满足条件XL3时,在VAR8*6和'买'位置书写文字
当满足条件XL3时,在VAR8*3和4之间画图标