6K看盘”西北瑶风版“主图 源码 贴图 通达信
T1:=IF(PERIOD=1,BARSLAST(TIME2=095000),DRAWNULL);
T2:=IF(PERIOD=1,BARSLAST(TIME2=094500),DRAWNULL);
T3:=IF(PERIOD=1,BARSLAST(TIME2=100000),DRAWNULL);
C2:=REF(C,T2);
C3:=REF(C,T3);
ZF:=(C3-C2)/C2*100;
XF:=REFX(ZF,2);
HH:=HHV(H,3);
LL:=LLV(L,3);
XH:=REFX(HH,2);
XL:=REFX(LL,2);
XC:=REFX(C,2);
DRAWLINE(T1=0 AND O<XC,XH,T3=0 AND C>REF(O,T1),HH,0),DOTLINE,COLORMAGENTA;
DRAWLINE(T1=0 AND O>XC,XH,T3=0 AND C<REF(O,T1),HH,0),DOTLINE,COLORGREEN;
DRAWLINE(T1=0 AND O=XC,XH,T3=0 AND C=REF(O,T1),HH,0),DOTLINE,COLORWHITE;
DRAWLINE(T1=0 AND O<XC,XL,T3=0 AND C>REF(O,T1),LL,0),DOTLINE,COLORMAGENTA;
DRAWLINE(T1=0 AND O>XC,XL,T3=0 AND C<REF(O,T1),LL,0),DOTLINE,COLORGREEN;
DRAWLINE(T1=0 AND O=XC,XL,T3=0 AND C=REF(O,T1),LL,0),DOTLINE,COLORWHITE;
STICKLINE(T1=0 AND O<XC,XH,XL,0,-1),COLORMAGENTA;
STICKLINE(T3=0 AND C>REF(O,T1),HH,LL,0,-1),COLORMAGENTA;
STICKLINE(T1=0 AND O>XC,XH,XL,0,-1),COLORGREEN;
STICKLINE(T3=0 AND C<REF(O,T1),HH,LL,0,-1),COLORGREEN;
STICKLINE(T1=0 AND O=XC,XH,XL,0,-1),COLORWHITE;
STICKLINE(T3=0 AND C=REF(O,T1),HH,LL,0,-1),COLORWHITE;
DRAWTEXT(T1=0,XH*1.005,VARCAT(VARCAT('三K涨跌幅:',VAR2STR(XF,2)),'%'))COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:REFX
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
T1赋值:IF(PERIOD=1,上次TIME2=095000距今天数,DRAWNULL)
T2赋值:IF(PERIOD=1,上次TIME2=094500距今天数,DRAWNULL)
T3赋值:IF(PERIOD=1,上次TIME2=100000距今天数,DRAWNULL)
C2赋值:T2日前的C
C3赋值:T3日前的C
ZF赋值:(C3-C2)/C2*100
XF赋值:REFX(ZF,2)
HH赋值:3日内H最高值
LL赋值:3日内L最低值
XH赋值:REFX(HH,2)
XL赋值:REFX(LL,2)
XC赋值:REFX(C,2)
DRAWLINE(T1=0 AND OT1日前的O,HH,0),DOTLINE,画洋红色
DRAWLINE(T1=0 AND O>XC,XH,T3=0 AND C
DRAWLINE(T1=0 AND O=XC,XH,T3=0 AND C=T1日前的O,HH,0),DOTLINE,画白色
DRAWLINE(T1=0 AND OT1日前的O,LL,0),DOTLINE,画洋红色
DRAWLINE(T1=0 AND O>XC,XL,T3=0 AND C
DRAWLINE(T1=0 AND O=XC,XL,T3=0 AND C=T1日前的O,LL,0),DOTLINE,画白色
当满足条件T1=0 AND O
STICKLINE(T3=0 AND C>T1日前的O,HH,LL,0,-1),画洋红色
当满足条件T1=0 AND O>XC时,在XH和XL之间画柱状线
STICKLINE(T3=0 AND C当满足条件T1=0 AND O=XC时,在XH和XL之间画柱状线
STICKLINE(T3=0 AND C=T1日前的O,HH,LL,0,-1),画白色
DRAWTEXT(T1=0,XH*1.005,VARCAT(VARCAT('三K涨跌幅:',VAR2STR(XF,2)),'%'))画黄色