五分钟周期幅图显示60分钟周期K线5分钟显60分钟幅图
T:=BARSLAST(DAY!=REF(DAY,1));
HH:=HHV(H,12);
LL:=LLV(L,12);
DRAWLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),O,T=11 AND C<REF(O,T),REF(O,T),0),COLORCYAN;
DRAWLINE(T=0 AND O<REFX(C,BARSNEXT(T=11)),O,T=11 AND C>REF(O,T),REF(O,T),0),COLORRED;
DRAWLINE(T=0 AND O=REFX(C,BARSNEXT(T=11)),O,T=11 AND C=REF(O,T),REF(O,T),0),COLORWHITE;
DRAWLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C<REF(O,T),C,0),COLORCYAN;
DRAWLINE(T=0 AND O<REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C>REF(O,T),C,0),COLORRED;
DRAWLINE(T=0 AND O=REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C=REF(O,T),C,0),COLORWHITE;
STICKLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),O,0,0),COLORCYAN;
STICKLINE(T=0 AND O<REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),O,0,0),COLORRED;
STICKLINE(T=11 AND C<REF(O,T),REF(O,T),C,0,0),COLORCYAN;
STICKLINE(T=11 AND C>REF(O,T),REF(O,T),C,0,0),COLORRED;
STICKLINE(T=6 AND REF(O,T)>REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORCYAN;
STICKLINE(T=6 AND REF(O,T)<REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORRED;
STICKLINE(T=6 AND REF(O,T)=REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORWHITE;
STICKLINE(T=6,REF(O,T),REFX(C,BARSNEXT(T=11)),0,0),COLORBLACK;
T1:=BARSLAST(T=12);
DRAWLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),O,T=23 AND C<REF(O,T1),REF(O,T1),0),COLORCYAN;
DRAWLINE(T=12 AND O<REFX(C,BARSNEXT(T=23)),O,T=23 AND C>REF(O,T1),REF(O,T1),0),COLORRED;
DRAWLINE(T=12 AND O=REFX(C,BARSNEXT(T=23)),O,T=23 AND C=REF(O,T1),REF(O,T1),0),COLORWHITE;
DRAWLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C<REF(O,T1),C,0),COLORCYAN;
DRAWLINE(T=12 AND O<REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C>REF(O,T1),C,0),COLORRED;
DRAWLINE(T=12 AND O=REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C=REF(O,T1),C,0),COLORWHITE;
STICKLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),O,0,0),COLORCYAN;
STICKLINE(T=12 AND O<REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),O,0,0),COLORRED;
STICKLINE(T=23 AND C<REF(O,T1),REF(O,T1),C,0,0),COLORCYAN;
STICKLINE(T=23 AND C>REF(O,T1),REF(O,T1),C,0,0),COLORRED;
STICKLINE(T=18 AND REF(O,T1)>REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORCYAN;
STICKLINE(T=18 AND REF(O,T1)<REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORRED;
STICKLINE(T=18 AND REF(O,T1)=REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORWHITE;
STICKLINE(T=18,REF(O,T1),REFX(C,BARSNEXT(T=23)),0,0),COLORBLACK;
T2:=BARSLAST(T=24);
DRAWLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),O,T=35 AND C<REF(O,T2),REF(O,T2),0),COLORCYAN;
DRAWLINE(T=24 AND O<REFX(C,BARSNEXT(T=35)),O,T=35 AND C>REF(O,T2),REF(O,T2),0),COLORRED;
DRAWLINE(T=24 AND O=REFX(C,BARSNEXT(T=35)),O,T=35 AND C=REF(O,T2),REF(O,T2),0),COLORWHITE;
DRAWLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C<REF(O,T2),C,0),COLORCYAN;
DRAWLINE(T=24 AND O<REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C>REF(O,T2),C,0),COLORRED;
DRAWLINE(T=24 AND O=REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C=REF(O,T2),C,0),COLORWHITE;
STICKLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),O,0,0),COLORCYAN;
STICKLINE(T=24 AND O<REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),O,0,0),COLORRED;
STICKLINE(T=35 AND C<REF(O,T2),REF(O,T2),C,0,0),COLORCYAN;
STICKLINE(T=35 AND C>REF(O,T2),REF(O,T2),C,0,0),COLORRED;
STICKLINE(T=30 AND REF(O,T2)>REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORCYAN;
STICKLINE(T=30 AND REF(O,T2)<REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORRED;
STICKLINE(T=30 AND REF(O,T2)=REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORWHITE;
STICKLINE(T=30,REF(O,T2),REFX(C,BARSNEXT(T=35)),0,0),COLORBLACK;
T3:=BARSLAST(T=36);
DRAWLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),O,T=47 AND C<REF(O,T3),REF(O,T3),0),COLORCYAN;
DRAWLINE(T=36 AND O<REFX(C,BARSNEXT(T=47)),O,T=47 AND C>REF(O,T3),REF(O,T3),0),COLORRED;
DRAWLINE(T=36 AND O=REFX(C,BARSNEXT(T=47)),O,T=47 AND C=REF(O,T3),REF(O,T3),0),COLORWHITE;
DRAWLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C<REF(O,T3),C,0),COLORCYAN;
DRAWLINE(T=36 AND O<REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C>REF(O,T3),C,0),COLORRED;
DRAWLINE(T=36 AND O=REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C=REF(O,T3),C,0),COLORWHITE;
STICKLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),O,0,0),COLORCYAN;
STICKLINE(T=36 AND O<REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),O,0,0),COLORRED;
STICKLINE(T=47 AND C<REF(O,T3),REF(O,T3),C,0,0),COLORCYAN;
STICKLINE(T=47 AND C>REF(O,T3),REF(O,T3),C,0,0),COLORRED;
STICKLINE(T=42 AND REF(O,T3)>REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORCYAN;
STICKLINE(T=42 AND REF(O,T3)<REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORRED;
STICKLINE(T=42 AND REF(O,T3)=REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORWHITE;
STICKLINE(T=42,REF(O,T3),REFX(C,BARSNEXT(T=47)),0,0),COLORBLACK;
未来函数检测结果如下:
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
T赋值:上次DAY!=1日前的DAY距今天数
HH赋值:12日内H最高值
LL赋值:12日内L最低值
DRAWLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),O,T=11 AND C
DRAWLINE(T=0 AND OT日前的O,T日前的O,0),画红色
DRAWLINE(T=0 AND O=REFX(C,BARSNEXT(T=11)),O,T=11 AND C=T日前的O,T日前的O,0),COLORWHITE
DRAWLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C
DRAWLINE(T=0 AND OT日前的O,C,0),画红色
DRAWLINE(T=0 AND O=REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C=T日前的O,C,0),COLORWHITE
STICKLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),O,0,0),画青色
STICKLINE(T=0 AND O
STICKLINE(T=11 AND C
STICKLINE(T=11 AND C>T日前的O,T日前的O,C,0,0),画红色
STICKLINE(T=6 AND T日前的O>REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),画青色
STICKLINE(T=6 AND T日前的O
STICKLINE(T=6 AND T日前的O=REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORWHITE
STICKLINE(T=6,T日前的O,REFX(C,BARSNEXT(T=11)),0,0),COLORBLACK
T1:=上次T=12距今天数
DRAWLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),O,T=23 AND C
DRAWLINE(T=12 AND OT1日前的O,T1日前的O,0),画红色
DRAWLINE(T=12 AND O=REFX(C,BARSNEXT(T=23)),O,T=23 AND C=T1日前的O,T1日前的O,0),COLORWHITE
DRAWLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C
DRAWLINE(T=12 AND OT1日前的O,C,0),画红色
DRAWLINE(T=12 AND O=REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C=T1日前的O,C,0),COLORWHITE
STICKLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),O,0,0),画青色
STICKLINE(T=12 AND O
STICKLINE(T=23 AND C
STICKLINE(T=23 AND C>T1日前的O,T1日前的O,C,0,0),画红色
STICKLINE(T=18 AND T1日前的O>REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),画青色
STICKLINE(T=18 AND T1日前的O
STICKLINE(T=18 AND T1日前的O=REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORWHITE
STICKLINE(T=18,T1日前的O,REFX(C,BARSNEXT(T=23)),0,0),COLORBLACK
T2:=上次T=24距今天数
DRAWLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),O,T=35 AND C
DRAWLINE(T=24 AND OT2日前的O,T2日前的O,0),画红色
DRAWLINE(T=24 AND O=REFX(C,BARSNEXT(T=35)),O,T=35 AND C=T2日前的O,T2日前的O,0),COLORWHITE
DRAWLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C
DRAWLINE(T=24 AND OT2日前的O,C,0),画红色
DRAWLINE(T=24 AND O=REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C=T2日前的O,C,0),COLORWHITE
STICKLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),O,0,0),画青色
STICKLINE(T=24 AND O
STICKLINE(T=35 AND C
STICKLINE(T=35 AND C>T2日前的O,T2日前的O,C,0,0),画红色
STICKLINE(T=30 AND T2日前的O>REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),画青色
STICKLINE(T=30 AND T2日前的O
STICKLINE(T=30 AND T2日前的O=REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORWHITE
STICKLINE(T=30,T2日前的O,REFX(C,BARSNEXT(T=35)),0,0),COLORBLACK
T3:=上次T=36距今天数
DRAWLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),O,T=47 AND C
DRAWLINE(T=36 AND OT3日前的O,T3日前的O,0),画红色
DRAWLINE(T=36 AND O=REFX(C,BARSNEXT(T=47)),O,T=47 AND C=T3日前的O,T3日前的O,0),COLORWHITE
DRAWLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C
DRAWLINE(T=36 AND OT3日前的O,C,0),画红色
DRAWLINE(T=36 AND O=REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C=T3日前的O,C,0),COLORWHITE
STICKLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),O,0,0),画青色
STICKLINE(T=36 AND O
STICKLINE(T=47 AND C
STICKLINE(T=47 AND C>T3日前的O,T3日前的O,C,0,0),画红色
STICKLINE(T=42 AND T3日前的O>REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),画青色
STICKLINE(T=42 AND T3日前的O
STICKLINE(T=42 AND T3日前的O=REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORWHITE
STICKLINE(T=42,T3日前的O,REFX(C,BARSNEXT(T=47)),0,0),COLORBLACK