游资吸筹通达信公式 和谐源码分享 K线图
VAR1:=(MA((EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137*0.3+LOW*0.7+HIGH)/2,4)+MA((HHV(LOW,3)+LLV(HIGH,3))/2,2))/2;
VAR2:=(((EMA(EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137,13)-EMA(EMA(EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137,13),7))/EMA(EMA(EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137,13),7)*10+MA((HHV(LOW,3)+LLV(HIGH,3))/2,2))*0.99+MA((HHV(LOW,3)+LLV(HIGH,2))/2,2))/2;
VAR3:=LLV(REF(1.5*REF(MA(CLOSE,6),1)-0.5*(MA(CLOSE,6)*1.013),1),17)*0.98;
VAR4:=SLOPE(VAR1,7)*1.78+(VAR1*0.63+VAR2*0.37);
STICKLINE(VAR3>VAR4,VAR3/20,0,3,1),COLORDD3311;
STICKLINE(VAR3>VAR4,0.5,VAR3/20,3,(-1)),COLORLIMAGENTA;
STICKLINE(VAR3>VAR4,0.5,VAR3/20,2,(-1)),COLORLIMAGENTA;
STICKLINE(VAR3>VAR4,0.5,VAR3/20,1,(-1)),COLORLIMAGENTA;
STICKLINE(VAR3>VAR4,0.5,VAR3/20,0,(-1)),COLORLIMAGENTA;
VAR5:=CLOSE/REF(LLV(LOW,21),5)<1;
VAR6:=IF(VAR5,1,0);
{股票指标网}
STICKLINE(VAR3>VAR4 AND VAR6,0.5,0,2,0),COLORRED;
VAR7:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,3,1);
VAR10:=3*VAR8-2*VAR9;
VAR11:=VAR8<22 AND VAR10<2 AND REF(VAR10,1)>2;
STICKLINE(VAR3>VAR4 AND VAR11,0,0.2,3,0),COLORYELLOW;
NOTEXT动态底:EMA(IF(LOW<=LLV(LOW,30),SMA(ABS(LOW-REF(LOW,1)),30,1)/SMA(MAX(LOW-REF(LOW,1),0),30,1),0),3)*0.1,STICK,COLORYELLOW,LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(MA((EMA(((收盘价+最高价)/2-18日内最低价最低值)/(18日内最高价最高值-18日内最低价最低值)*(最低价*0.173),7)+最低价*0.9137*0.3+最低价*0.7+最高价)/2,4)+MA((3日内最低价最高值+3日内最高价最低值)/2,2))/2
VAR2赋值:(((EMA(EMA(((收盘价+最高价)/2-18日内最低价最低值)/(18日内最高价最高值-18日内最低价最低值)*(最低价*0.173),7)+最低价*0.9137,13)-EMA(EMA(EMA(((收盘价+最高价)/2-18日内最低价最低值)/(18日内最高价最高值-18日内最低价最低值)*(最低价*0.173),7)+最低价*0.9137,13),7))/EMA(EMA(EMA(((收盘价+最高价)/2-18日内最低价最低值)/(18日内最高价最高值-18日内最低价最低值)*(最低价*0.173),7)+最低价*0.9137,13),7)*10+MA((3日内最低价最高值+3日内最高价最低值)/2,2))*0.99+MA((3日内最低价最高值+2日内最高价最低值)/2,2))/2
VAR3赋值:LLV(REF(1.5*REF(收盘价的6日简单移动平均,1)-0.5*(收盘价的6日简单移动平均*1.013),1),17)*0.98
VAR4赋值:SLOPE(VAR1,7)*1.78+(VAR1*0.63+VAR2*0.37)
当满足条件VAR3>VAR4时,在VAR3/20和0之间画柱状线
STICKLINE(VAR3>VAR4,0.5,VAR3/20,3,(-1)),COLORLIMAGENTA
STICKLINE(VAR3>VAR4,0.5,VAR3/20,2,(-1)),COLORLIMAGENTA
STICKLINE(VAR3>VAR4,0.5,VAR3/20,1,(-1)),COLORLIMAGENTA
STICKLINE(VAR3>VAR4,0.5,VAR3/20,0,(-1)),COLORLIMAGENTA
VAR5赋值:收盘价/REF(21日内最低价最低值,5)<1
如果VAR5返回1否则返回0
当满足条件VAR3>VAR4 AND VAR6时,在0.5和0之间画柱状线
VAR7赋值:(收盘价-19日内最低价最低值)/(19日内最高价最高值-19日内最低价最低值)*100
VAR7的3日[1日权重]移动平均
VAR8的3日[1日权重]移动平均
VAR10:=3*VAR8-2*VAR9
VAR11:=VAR8<22 AND VAR10<2 AND 1日前的VAR10>2
当满足条件VAR3>VAR4 AND VAR11时,在0和0.2之间画柱状线
输出NOTEXT动态底:EMA(IF(最低价<=30日内最低价最低值,SMA(最低价-1日前的最低价的绝对值,30,1)/SMA(最低价-1日前的最低价和0较大值,30,1),0),3)*0.1,STICK,画黄色, 线宽为2