现主力指标通达信指标 源码分享 贴图
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;
STICKLINE(Var9<REF(Var9,1),0,Var9*0.08,4,1),color1010FF;
STICKLINE(Var8>REF(Var8,1),0,Var8,4,1),color10FFFF,linethick0;
STICKLINE(Var11>REF(Var11,1),0,Var11,4,1),colorFFF810;
增减力度:Var10*5,colorWHITE;
{股票指标网}
DRAWTEXT(cross(0,增减力度),-0.5,'涨'),Color006EFF;
DRAWTEXT(cross(0,增减力度),-1.8,'啦'),Color006EFF;
drawicon(cross(0,增减力度),1.5,1),COLORWHITE;
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*3,4,0),Color006EFF;
DRAWTEXT(XL3,Var8*2,'买'),Color006EFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
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
STICKLINE(VAR9<1日前的VAR9,0,VAR9*0.08,4,1),COLOR1010FF
STICKLINE(VAR8>1日前的VAR8,0,VAR8,4,1),COLOR10FFFF,LINETHICK0
STICKLINE(VAR11>1日前的VAR11,0,VAR11,4,1),COLORFFF810
输出
增减力度:VAR10*5,画白色
{股票指标网}
DRAWTEXT(0上穿增减力度,-0.5,'涨'),COLOR006EFF
DRAWTEXT(0上穿增减力度,-1.8,'啦'),COLOR006EFF
DRAWICON(0上穿增减力度,1.5,1),画白色
XL1赋值:最低价的2日简单移动平均*0.96
XL2赋值:最低价的26日简单移动平均*0.85
XL3赋值:1日前的XL1当满足条件XL3时,在0和VAR8*3之间画柱状线
当满足条件XL3时,在VAR8*2和'买'位置书写文字