UID60429
积分38
学分
推广 个
预报后涨停 支
阅读权限20
在线时间 小时
注册时间2010-4-4
最后登录1970-1-1
|
换手率:=IF(PERIOD=5,100*VOL/(FINANCE(7)/100),DRAWNULL);
十日累计:=SUM(换手率,10);
A:=BARSLAST(CROSS(十日累计,70)); {金叉1}
A1:=REF(BARSLAST(CROSS(十日累计,70)),A+1);A2:=A+A1; {金叉2}
AA:=REF(BARSLAST(CROSS(十日累计,70)),A2+2);A3:=AA+A2; {金叉3}
AAA:=REF(BARSLAST(CROSS(十日累计,70)),A3+3);A4:=AAA+A3;{金叉4}
B:=BARSLAST(CROSS(70,十日累计)); {死叉1}
B1:=REF(BARSLAST(CROSS(70,十日累计)),B+1);B2:=B+B1; {死叉2}
BB:=REF(BARSLAST(CROSS(70,十日累计)),B2+2);B3:=BB+B2; {死叉3}
BBB:=REF(BARSLAST(CROSS(70,十日累计)),B3+3);B4:=BBB+B3;{死叉4}
{低点周期}
X:=IF(A<B,B-A,B2-A);Y:=IF(A2<B2,B2-A2,B3-A2);
{高点周期}
X1:=IF(A<B,A2-B,A-B);Y1:=IF(A2<B2,A3-B2,A2-B2);Z1:= IF(A3<B3,A4-B3,A3-B3);
LD0:=REF(LLVBARS(O,X+3),A); {低点1}
LD1:=REF(LLVBARS(O,Y+3),A2); {低点2}
LL0:=BACKSET(ISLASTBAR,LD0+A+1); {近低}
LL1:=BACKSET(ISLASTBAR,LD1+A2+1);{前低}
TJ1:=CROSS(LL0,0.5); TJ2:=CROSS(LL1,0.5);
下轨:=DRAWLINE(TJ2,O,TJ1,O,1);
GD0:=REF(HHVBARS(C,X1+3),B); {高点1}
GD1:=REF(HHVBARS(C,Y1+3),B2); {高点2}
GD2:=REF(HHVBARS(C,Z1+3),B3); {高点3}
GG0:=BACKSET(ISLASTBAR,GD0+B+1); {近高}
GG1:=BACKSET(ISLASTBAR,GD1+B2+1); {前高}
GG2:=BACKSET(ISLASTBAR,GD2+B3+1); {前前高}
TJ3:=CROSS(GG0,0.5); TJ4:=CROSS(GG1,0.5);
上轨:=DRAWLINE(TJ4,C,TJ3,C,1);
值1:=LL0>REF(LL0,1);值2:=LL1>REF(LL1,1);
底1:=IF(LL0,REF(LOW,BARSLAST(值1)),DRAWNULL);
底2:=IF(LL1,REF(LOW,BARSLAST(值2)),DRAWNULL);
值3:=GG0>REF(GG0,1);值4:=GG1>REF(GG1,1);值5:=GG2>REF(GG2,1);
DSPT:IF(GG2,REF(C,BARSLAST(值5)),DRAWNULL),COLORRED,LINETHICK2;
DSPS:IF(GG1,REF(C,BARSLAST(值4)),DRAWNULL),COLORGREEN;
DSPF:IF(GG0,REF(C,BARSLAST(值3)),DRAWNULL),COLORFF6633; |
|