取消未来函数

03-08 19:45发布

去掉未来函数N4:=BARSLAST(DATE<>REF(DATE,1))+1;

NN4:=SUMBARS(DATE<>REF(DATE,1),2);
ZV4:=REF(SUM(V,N4),N4);
VV4:=SUM(V,N4);
C4:=IF(REFX1(N4=1,1)&&VV4>ZV4,1,0);
LL4:=HHV(H,N4);
HH4:=LLV(L,N4);
Q8:=VALUEWHEN(C4, HH4)>REF(VALUEWHEN(C4, HH4),BARSLAST(C4)+1)&&VALUEWHEN(C4, LL4)>REF(VALUEWHEN(C4, LL4),BARSLAST(C4)+1);
Q4:=VALUEWHEN(C4, HH4)
Q5:=VALUEWHEN(C4, HH4)>REF(VALUEWHEN(C4, HH4),BARSLAST(C4)+1)&&VALUEWHEN(C4, LL4)REF(VALUEWHEN(C4, LL4),BARSLAST(C4)+1);
X:=ISLASTBAR||REFX(DAYBARPOS=1,1);
DRAWSL(X,VALUEWHEN(C4, HH4),0,-DAYBARPOS+1,0,COLORYELLOW),DOT;
DRAWSL(X,VALUEWHEN(C4, LL4),0,-DAYBARPOS+1,0,COLORYELLOW),DOT;

DRAWSL(X&&C>REF(HHV(H,DAYBARPOS),DAYBARPOS),VALUEWHEN(C4, HH4),0,-DAYBARPOS+1,0,COLORRED),DOT;
DRAWSL(X&&C>REF(HHV(H,DAYBARPOS),DAYBARPOS),VALUEWHEN(C4, LL4),0,-DAYBARPOS+1,0,COLORRED),DOT;

DRAWSL(X&&C
DRAWSL(X&&C

DRAWKLINE1(H,O,L,C);

去掉未来函数N4:=BARSLAST(DATE<>REF(DATE,1))+1;
NN4:=SUMBARS(DATE<>REF(DATE,1),2);
ZV4:=REF(SUM(V,N4),N4);
VV4:=SUM(V,N4);
C4:=IF(REFX1(N4=1,1)&&VV4>ZV4,1,0);
LL4:=HHV(H,N4);
HH4:=LLV(L,N4);
Q8:=VALUEWHEN(C4, HH4)>REF(VALUEWHEN(C4, HH4),BARSLAST(C4)+1)&&VALUEWHEN(C4, LL4)>REF(VALUEWHEN(C4, LL4),BARSLAST(C4)+1);
Q4:=VALUEWHEN(C4, HH4)
Q5:=VALUEWHEN(C4, HH4)>REF(VALUEWHEN(C4, HH4),BARSLAST(C4)+1)&&VALUEWHEN(C4, LL4)REF(VALUEWHEN(C4, LL4),BARSLAST(C4)+1);
X:=ISLASTBAR||REFX(DAYBARPOS=1,1);
DRAWSL(X,VALUEWHEN(C4, HH4),0,-DAYBARPOS+1,0,COLORYELLOW),DOT;
DRAWSL(X,VALUEWHEN(C4, LL4),0,-DAYBARPOS+1,0,COLORYELLOW),DOT;

DRAWSL(X&&C>REF(HHV(H,DAYBARPOS),DAYBARPOS),VALUEWHEN(C4, HH4),0,-DAYBARPOS+1,0,COLORRED),DOT;
DRAWSL(X&&C>REF(HHV(H,DAYBARPOS),DAYBARPOS),VALUEWHEN(C4, LL4),0,-DAYBARPOS+1,0,COLORRED),DOT;

DRAWSL(X&&C
DRAWSL(X&&C

DRAWKLINE1(H,O,L,C);

付费偷看设置
发送
9条回答
文华解答
2楼-- · 03-08 20:54
参考:
N4:=BARSLAST(DATE<>REF(DATE,1))+1;
NN4:=SUMBARS(DATE<>REF(DATE,1),2);
ZV4:=REF(SUM(V,N4),N4);
VV4:=SUM(V,N4);
C4:=IF(DAYBARPOS=REF(DAYBARPOS,DAYBARPOS)&&VV4>ZV4,1,0);
LL4:=HHV(H,N4);
HH4:=LLV(L,N4);
Q8:=VALUEWHEN(C4,HH4)>REF(VALUEWHEN(C4, HH4),BARSLAST(C4)+1)&&VALUEWHEN(C4, LL4)>REF(VALUEWHEN(C4, LL4),BARSLAST(C4)+1);
Q4:=VALUEWHEN(C4,HH4)
Q5:=VALUEWHEN(C4,HH4)>REF(VALUEWHEN(C4, HH4),BARSLAST(C4)+1)&&VALUEWHEN(C4, LL4)REF(VALUEWHEN(C4, LL4),BARSLAST(C4)+1);
X:=ISLASTBAR||DAYBARPOS=REF(DAYBARPOS,DAYBARPOS);
DRAWSL(X,VALUEWHEN(C4, HH4),0,-DAYBARPOS+1,0,COLORYELLOW),DOT;
DRAWSL(X,VALUEWHEN(C4, LL4),0,-DAYBARPOS+1,0,COLORYELLOW),DOT;

DRAWSL(X&&C>REF(HHV(H,DAYBARPOS),DAYBARPOS),VALUEWHEN(C4, HH4),0,-DAYBARPOS+1,0,COLORRED),DOT;
DRAWSL(X&&C>REF(HHV(H,DAYBARPOS),DAYBARPOS),VALUEWHEN(C4, LL4),0,-DAYBARPOS+1,0,COLORRED),DOT;

DRAWSL(X&&C
DRAWSL(X&&C

DRAWKLINE1(H,O,L,C);

文华向前进
3楼-- · 03-08 21:14
老师,这个怎么在日线上不显示啊
文华解答
4楼-- · 03-08 21:34
1楼的指标思路只能在日线以下周期查看效果。
文华向前进
5楼-- · 03-08 21:54
编写一下,在任何级别都能用
文华解答
6楼-- · 03-08 22:15
改不了的,1楼就是日内的思路,所以只能加载在日线以下周期使用。
文华向前进
7楼-- · 03-08 22:34
老师,这个压力和支撑没有未来函数,能用于实盘指导吗