通达信主图
VAR1:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6);
买入:=LLV(VAR1,2)=LLV(VAR1,7) AND COUNT(VAR1<0,2) AND CROSS(VAR1,MA(VAR1,2));
DRAWICON(买入,L,1);
A:=EMA((EMA(CLOSE,6)+EMA(CLOSE,7)+EMA(CLOSE,8))/3,3),COLORYELLOW;
轴线:=EMA(A,4),COLORLIMAGENTA;
A2:=EMA((EMA(CLOSE,23)+EMA(CLOSE,24)+EMA(CLOSE,25))/3,3),COLORYELLOW;
AA:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLORYELLOW;
AAA:=EMA(EMA(EMA(AA,1),2),3);
BB:=EMA((EMA(C,13)+EMA(C,14)+EMA(C,15))/3,3);
CC:=BB-(AA-BB);
CCC:=EMA(EMA(EMA(CC,1),2),3);
开口值1:=HHV(AA,1)/LLV(CC,1)*100-100,NODRAW;
起:EMA(开口值1,5),NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
AA1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLORYELLOW;
AAA1:=EMA(EMA(EMA(AA1,1),2),3);
BBB1:=EMA((EMA(C,23)+EMA(C,24)+EMA(C,25))/3,3);
CC1:=BBB1-(AAA1-BBB1);
CCC1:=EMA(EMA(EMA(CC1,1),2),3);
IF( AAA>轴线 AND AAA>REF(AAA,1),AAA,DRAWNULL),COLORYELLOW,LINETHICK4;
STICKLINE(C/REF(C,1)>1.091,C,O,2,0),COLORFF1CAE;
BDGD:=C=HHV(C,150);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLOR00FF00,POINTDOT,LINETHICK1;
突破:=CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,LINETHICK0;
STICKLINE(GDSJ<=6,高点,高点,8,0),COLORFF00FF;
BDDD:=C=LLV(C,150);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FFFF,POINTDOT,LINETHICK1;
STICKLINE(DDSJ<=6,低点,低点,8,0),COLORWHITE;
BDGD1:=C=HHV(C,30);
GDSJ1:=BARSLAST(FILTER(CROSS(0.8,BDGD1),2))+1;
高点1:REF(C,GDSJ1),COLORRED,POINTDOT,LINETHICK1;
突破1:=CROSS(C,REF(高点1,1)),COLORBLUE,POINTDOT,LINETHICK0;
STICKLINE(GDSJ1<=6,高点1,高点1,8,0),COLORBROWN;
BDDD1:=C=LLV(C,30);
DDSJ1:=BARSLAST(FILTER(CROSS(0.8,BDDD1),2))+1;
低点1:REF(C,DDSJ1),COLORRED,POINTDOT,LINETHICK1;
STICKLINE(DDSJ1<=6,低点1,低点1,8,0),COLORWHITE;
STICKLINE(C/REF(C,1)>1.091,C,O,2,0),COLORFF1CAE;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:100*EMA(EMA((C-1日前的C),6),6)/EMA(EMA((C-1日前的C的绝对值),6),6)
买入赋值:2日内VAR1最低值=7日内VAR1最低值 AND 统计2日满足VAR1<0的天数 AND CROSS(VAR1,VAR1的2日简单移动平均)
当满足条件买入时,在L和1之间画图标
A赋值:EMA((EMA(收盘价,6)+EMA(收盘价,7)+EMA(收盘价,8))/3,3),画黄色
轴线赋值:A的4日指数移动平均,COLORLIMAGENTA
A2:=EMA((EMA(收盘价,23)+EMA(收盘价,24)+EMA(收盘价,25))/3,3),画黄色
AA:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),画黄色
AAA:=AA的1日指数移动平均,2),3)
BB赋值:EMA((EMA(C,13)+EMA(C,14)+EMA(C,15))/3,3)
CC赋值:BB-(AA-BB)
CCC:=CC的1日指数移动平均,2),3)
开口值1赋值:1日内AA最高值/1日内CC最低值*100-100,NODRAW
输出
起:开口值1的5日指数移动平均,NODRAW
DRAWKLINE(最高价,开盘价,最低价,收盘价)
AA1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),画黄色
AAA1:=AA1的1日指数移动平均,2),3)
BBB1:=EMA((EMA(C,23)+EMA(C,24)+EMA(C,25))/3,3)
CC1:=BBB1-(AAA1-BBB1)
CCC1:=CC1的1日指数移动平均,2),3)
IF( AAA>轴线 AND AAA>1日前的AAA,AAA,DRAWNULL),画黄色,LINETHICK4
STICKLINE(C/1日前的C>1.091,C,O,2,0),COLORFF1CAE
BDGD赋值:C=150日内C最高值
GDSJ赋值:上次FILTER(0.8上穿BDGD,2距今天数)+1
输出
高点:GDSJ日前的C,COLOR00FF00,POINTDOT,LINETHICK1
突破赋值:CROSS(C,1日前的高点),COLOR00FFFF,POINTDOT,LINETHICK0
当满足条件GDSJ<=6时,在高点和高点之间画柱状线
BDDD赋值:C=150日内C最低值
DDSJ赋值:上次FILTER(0.8上穿BDDD,2距今天数)+1
输出
低点:DDSJ日前的C,COLOR00FFFF,POINTDOT,LINETHICK1
当满足条件DDSJ<=6时,在低点和低点之间画柱状线
BDGD1:=C=30日内C最高值
GDSJ1:=上次FILTER(0.8上穿BDGD1,2距今天数)+1
高点1:GDSJ1日前的C,画红色,POINTDOT,LINETHICK1
突破1:=CROSS(C,1日前的高点1), 画蓝色,POINTDOT,LINETHICK0
当满足条件GDSJ1<=6时,在高点1和高点1之间画柱状线
BDDD1:=C=30日内C最低值
DDSJ1:=上次FILTER(0.8上穿BDDD1,2距今天数)+1
低点1:DDSJ1日前的C,画红色,POINTDOT,LINETHICK1
当满足条件DDSJ1<=6时,在低点1和低点1之间画柱状线
STICKLINE(C/1日前的C>1.091,C,O,2,0),COLORFF1CAE