通达信绝佳买卖
VAR1:=CLOSE-REF(CLOSE,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
VAR3:=CROSS(EMA(CLOSE,19),EMA(CLOSE,7));
VAR4:=CROSS(EMA(CLOSE,7),EMA(CLOSE,19));
VAR5:=LOW=LLV(LOW,BARSLAST(VAR3)+1);
VAR6:=LLV(LOW,BARSLAST(VAR3)+1);
VAR7:=HIGH=HHV(HIGH,BARSLAST(VAR4)+1);
VAR8:=HHV(HIGH,BARSLAST(VAR4)+1);
VAR9:=DRAWLINE(VAR5,VAR6,VAR7,VAR8,0);
VAR10:=HIGH=HHV(HIGH,BARSLAST(VAR4)+1);
VAR11:=HHV(HIGH,BARSLAST(VAR4)+1);
VAR12:=LOW=LLV(LOW,BARSLAST(VAR3)+1);
VAR13:=LLV(LOW,BARSLAST(VAR3)+1);
VAR14:=DRAWLINE(VAR10,VAR11,VAR12,VAR13,0);
VAR15:=LLV(VAR2,2)=LLV(VAR2,7);
VAR16:=COUNT(VAR2<0,2);
VAR17:=CROSS(VAR2,MA(VAR2,2));
VAR18:=REF(VAR14,1)<REF(VAR14,2);
VAR19:=VAR9>REF(VAR14,1);
{股票指标网}
买进:VAR15 AND VAR16 AND VAR17 AND VAR18 AND VAR19;
VAR20:=IF(VAR9<REF(VAR9,1) AND VAR14=VAR9,1,0);
VAR21:=IF(VAR14<REF(VAR14,1) AND VAR14=VAR9,1,0);
持股:IF(VAR14<REF(VAR14,1) AND VAR14<VAR9,23,0),STICK,COLOR000088,LINETHICK3;
STICKLINE(VAR14<REF(VAR14,1),0,35,2,0),COLOR006600;
堪称卖绝:IF(REF(VAR20,1)=0 AND VAR20>=1,60,0),STICK,COLORCYAN,LINETHICK5;
买一绝:IF(REF(VAR21,1)=0 AND VAR21>=1,60,0),STICK,COLORRED,LINETHICK3;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:收盘价-1日前的收盘价
VAR2赋值:100*VAR1的6日指数移动平均,6)/EMA(EMA(VAR1的绝对值,6),6)
VAR3赋值:CROSS(收盘价的19日指数移动平均,收盘价的7日指数移动平均)
VAR4赋值:CROSS(收盘价的7日指数移动平均,收盘价的19日指数移动平均)
VAR5赋值:最低价=LLV(最低价,上次VAR3距今天数+1)
VAR6赋值:LLV(最低价,上次VAR3距今天数+1)
VAR7赋值:最高价=HHV(最高价,上次VAR4距今天数+1)
VAR8赋值:HHV(最高价,上次VAR4距今天数+1)
VAR9赋值:DRAWLINE(VAR5,VAR6,VAR7,VAR8,0)
VAR10:=最高价=HHV(最高价,上次VAR4距今天数+1)
VAR11:=HHV(最高价,上次VAR4距今天数+1)
VAR12:=最低价=LLV(最低价,上次VAR3距今天数+1)
VAR13:=LLV(最低价,上次VAR3距今天数+1)
VAR14:=DRAWLINE(VAR10,VAR11,VAR12,VAR13,0)
VAR15:=2日内VAR2最低值=7日内VAR2最低值
VAR16:=统计2日满足VAR2<0的天数
VAR17:=CROSS(VAR2,VAR2的2日简单移动平均)
VAR18:=1日前的VAR14<2日前的VAR14
VAR19:=VAR9>1日前的VAR14
输出
{股票指标网}
买进:VAR15 AND VAR16 AND VAR17 AND VAR18 AND VAR19
VAR20:=IF(VAR9<1日前的VAR9 AND VAR14=VAR9,1,0)
VAR21:=IF(VAR14<1日前的VAR14 AND VAR14=VAR9,1,0)
输出持股:IF(VAR14<1日前的VAR14 AND VAR14
STICKLINE(VAR14<1日前的VAR14,0,35,2,0),COLOR006600
输出堪称卖绝:IF(1日前的VAR20=0 AND VAR20>=1,60,0),STICK,画青色,LINETHICK5
输出买一绝:IF(1日前的VAR21=0 AND VAR21>=1,60,0),STICK,画红色, 线宽为3