有了此主图做T就是爽分时T0
AF1:=1;
TT:=BARSLAST(HOUR=9 AND MINUTE=(30+AF1))+1;
均价:=AMOUNT/VOL/100,COLORYELLOW;
价位:=C,COLORWHITE,LINETHICK4;
盘整:=IF(HOUR>9 AND RANGE(HHV(C,60)/LLV(C,60),1,1.02),C,DRAWNULL),COLORRED,LINETHICK2;
V1:=V;
HH:=C>REF(C,1) AND C/均价>(1+0.03);
LL:=C<REF(C,1) AND C/均价<(1-0.03);
HH1:=CROSS(SUM(HH,0),0.5);
LL1:=CROSS(SUM(LL,0),0.5);
SS1:=SUM(HH1,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH1)),0.5);
BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);
CS1:CONST(SUM(IF(SS1,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;
CB1:CONST(SUM(IF(BB1,REF(C,1),DRAWNULL),0)),COLORMAGENTA,LINETHICK2;
HH2:=CROSS(SUM(HH AND C>CS1*1.03,0),0.5);
LL2:=CROSS(SUM(LL AND C<CB1*0.97,0),0.5);
SS2:=SUM(HH2,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH2)),0.5);
BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);
CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;
CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORMAGENTA,LINETHICK1;
DRAWICON(HH1 OR HH2,C*1.01,16);
DRAWICON(LL1 OR LL2,C*0.99,18);
DRAWICON(BB1 OR BB2,REF(C,1)*0.99,22);
DRAWICON(SS1 OR SS2,REF(C,1)*1.01,21);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AF1赋值:1
TT赋值:上次HOUR=9 AND MINUTE=(30+AF1距今天数)+1
均价赋值:成交额/成交量/100,COLORYELLOW
价位赋值:C,画白色,LINETHICK4
盘整赋值:IF(HOUR>9 AND RANGE(60日内C最高值/60日内C最低值,1,1.02),C,DRAWNULL),画红色, 线宽为2
V1赋值:V
HH赋值:C>1日前的C AND C/均价>(1+0.03)
LL赋值:C<1日前的C AND C/均价<(1-0.03)
HH1:=CROSS(0的HH日累和,0.5)
LL1:=CROSS(0的LL日累和,0.5)
SS1赋值:0的HH1日累和*CROSS(COUNT(C<1日前的C,上次HH1距今天数),0.5)
BB1赋值:0的LL1日累和*CROSS(COUNT(C>1日前的C,上次LL1距今天数),0.5)
输出CS1:CONST(SUM(IF(SS1,1日前的C,DRAWNULL),0)),画绿色, 线宽为2
输出CB1:CONST(SUM(IF(BB1,1日前的C,DRAWNULL),0)),画洋红色, 线宽为2
HH2:=CROSS(0的HH AND C>CS1*1.03日累和,0.5)
LL2:=CROSS(0的LL AND C
SS2赋值:0的HH2日累和*CROSS(COUNT(C<1日前的C,上次HH2距今天数),0.5)
BB2赋值:0的LL2日累和*CROSS(COUNT(C>1日前的C,上次LL2距今天数),0.5)
输出CS2:CONST(SUM(IF(SS2,1日前的C,DRAWNULL),0)),画绿色,LINETHICK1
输出CB2:CONST(SUM(IF(BB2,1日前的C,DRAWNULL),0)),画洋红色,LINETHICK1
当满足条件HH1 OR HH2时,在C*1.01和16之间画图标
当满足条件LL1 OR LL2时,在C*0.99和18之间画图标
DRAWICON(BB1 OR BB2,1日前的C*0.99,22)
DRAWICON(SS1 OR SS2,1日前的C*1.01,21)