决策之王主图红色持股蓝色持币通达信公式 主图 源码附图
XX:=(HHV(C,10)-LLV(C,10))*0.999;
V1:=IF((C>(LLV(C,10)+XX) OR C>LLV(C,10)*1.1) AND C=HHV(C,5) AND C>REF(C,1),1,0);
{比10日低点高一定幅度,是五日高点}
V2:=IF((C<(HHV(C,10)-XX) OR C<HHV(C,10)*0.9) AND C=LLV(C,5) AND C<REF(C,1),1,0);
V3:=IF(V1=1,1,IF(V2=1,0,2));
MR:=V3=1 AND REF(V3,1)!=1;
MC:=V3=0 AND REF(V3,1)!=0;
V4:=IF(BARSLAST(MR)>BARSLAST(MC),0,1);
STICKLINE(V4=1 ,CLOSE,OPEN,2,0)COLORRED;
STICKLINE(V4=1 AND REF(V4,1)=1 AND C<HHV(C,10)*0.97 AND C>HHV(C,10)*0.93
AND C<LLV(C,10)*1.15,CLOSE,OPEN,2,0)COLORYELLOW;{黄s回调买入提示}
STICKLINE(V4=0 ,CLOSE,OPEN,2,0)COLORGREEN;
DRAWICON(V4=1 AND REF(V4,1)=0 ,L*0.99,1);
DRAWICON(V4=0 AND REF(V4,1)=1 ,H*1.01,2);
{=1持股,=0持币?}
{STICKLINE((V4 = 0) AND CLOSE >= OPEN,CLOSE,OPEN,8,1),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE >= OPEN,CLOSE,HIGH,0.001,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE >= OPEN,LOW,OPEN,0.001,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE < OPEN,CLOSE,OPEN,8,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE < OPEN,CLOSE,LOW,0.001,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE < OPEN,HIGH,OPEN,0.001,0),COLORF0F000;
STICKLINE((V4 = 1) AND CLOSE >= OPEN,CLOSE,OPEN,8,1),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE >= OPEN,CLOSE,HIGH,0.001,1),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE >= OPEN,LOW,OPEN,0.001,1),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE < OPEN,CLOSE,OPEN,7,1),LINETHICK3,COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE < OPEN,CLOSE,OPEN,7,0),COLORF0F000;
STICKLINE((V4 = 1) AND CLOSE < OPEN,HIGH,OPEN,0.001,0),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE < OPEN,CLOSE,LOW,0.001,0),COLOR0000FF;
};
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
XX赋值:(10日内C最高值-10日内C最低值)*0.999
V1赋值:IF((C>(10日内C最低值+XX) OR C>10日内C最低值*1.1) AND C=5日内C最高值 AND C>1日前的C,1,0)
{比10日低点高一定幅度,是五日高点}
V2赋值:IF((C<(10日内C最高值-XX) OR C<10日内C最高值*0.9) AND C=5日内C最低值 AND C<1日前的C,1,0)
V3赋值:IF(V1=1,1,IF(V2=1,0,2))
MR赋值:V3=1 AND 1日前的V3!=1
MC赋值:V3=0 AND 1日前的V3!=0
V4赋值:IF(上次MR距今天数>BARSLAST(MC),0,1)
当满足条件V4=1 时,在收盘价和开盘价之间画柱状线
STICKLINE(V4=1 AND 1日前的V4=1 AND C<10日内C最高值*0.97 AND C>10日内C最高值*0.93
AND C<10日内C最低值*1.15,收盘价,开盘价,2,0)画黄色
当满足条件V4=0 时,在收盘价和开盘价之间画柱状线
DRAWICON(V4=1 AND 1日前的V4=0 ,L*0.99,1)
DRAWICON(V4=0 AND 1日前的V4=1 ,H*1.01,2)
{=1持股,=0持币?}
{STICKLINE((V4 = 0) AND 收盘价 >= 开盘价,收盘价,开盘价,8,1),COLORF0F000
STICKLINE((V4 = 0) AND 收盘价 >= 开盘价,收盘价,最高价,0.001,0),COLORF0F000
STICKLINE((V4 = 0) AND 收盘价 >= 开盘价,最低价,开盘价,0.001,0),COLORF0F000
STICKLINE((V4 = 0) AND 收盘价 < 开盘价,收盘价,开盘价,8,0),COLORF0F000
STICKLINE((V4 = 0) AND 收盘价 < 开盘价,收盘价,最低价,0.001,0),COLORF0F000
STICKLINE((V4 = 0) AND 收盘价 < 开盘价,最高价,开盘价,0.001,0),COLORF0F000
STICKLINE((V4 = 1) AND 收盘价 >= 开盘价,收盘价,开盘价,8,1),COLOR0000FF
STICKLINE((V4 = 1) AND 收盘价 >= 开盘价,收盘价,最高价,0.001,1),COLOR0000FF
STICKLINE((V4 = 1) AND 收盘价 >= 开盘价,最低价,开盘价,0.001,1),COLOR0000FF
STICKLINE((V4 = 1) AND 收盘价 < 开盘价,收盘价,开盘价,7,1), 线宽为3,COLOR0000FF
STICKLINE((V4 = 1) AND 收盘价 < 开盘价,收盘价,开盘价,7,0),COLORF0F000
STICKLINE((V4 = 1) AND 收盘价 < 开盘价,最高价,开盘价,0.001,0),COLOR0000FF
STICKLINE((V4 = 1) AND 收盘价 < 开盘价,收盘价,最低价,0.001,0),COLOR0000FF
}