来函数检测结果如下:
该公式没有未来函数
指标源码:
原理解析:
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
}