老师,帮忙改成一个指标 [文华财经]
-
咨询内容:
M:=DUALVOLUME('M');N:=DUALVOLUME('N');DRAWCOLUMNCHART(N,SCALE>=0.5,M>=0); V1:SCALE*V,NODRAW;V2:(1-SCALE)*V,NODRAW;NBA:=BARSLAST(DATE<>REF(DATE,1))+1;AY:=BACKSET(ISLASTBAR,HHVBARS(V1,NBA)+1),NODRAW;BY:=BACKSET(ISLASTBAR,HHVBARS(V2,NBA)+1),NODRAW;DRAWCOLORKLINE(CROSS(AY,0.5),COLORMAGENTA,0);DRAWCOLORKLINE(CROSS(BY,0.5),COLORCYAN,0);DRAWSL(ISLASTBAR&&NOT(EXIST(C>VALUEWHEN(CROSS(AY,0.5),H),DAYBARPOS)),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),LINETHICK5;//DRAWHORIZONTALLINE(,H,COLORMAGENTA),LINETHICK5;DRAWSL(ISLASTBAR&&NOT(EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS)),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),LINETHICK5;//DRAWHORIZONTALLINE(,L,COLORCYAN),LINETHICK5;DRAWSL(ISLASTBAR&&EXIST(C>VALUEWHEN(CROSS(AY,0.5),H),DAYBARPOS),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),DOT;DRAWSL(ISLASTBAR&&EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),DOT;
N:=DAYBARPOS;X:=LLVBARS(L,N);K1:=IF(X>=1,LLV(L,X),100000);K2:=IF(X<(N-1),REF(LLV(L,REFX1(N-1-X,10000)),X+1),100000);低点:=LLV(L,N);次低点:=MIN(K1,K2);T2:=BACKSET(ISLASTBAR,BARSLAST(L=REFX1(次低点,50))+1);CROSS(T2&&次低点>2000,0.5),ICON(1,'ICO1');
T:=HHVBARS(H,N);B1:=IF(T>=1,HHV(H,T),0);B2:=IF(T<N-1,REF(HHV(H,REFX1(N-1-T,10000)),T+1),0);高点:=HHV(H,N);次高点:=MAX(B1,B2);
G2:=BACKSET(ISLASTBAR,BARSLAST(H=REFX1(次高点,50))+1);CROSS(G2&&次高点>2000,0.5),ICON(1,'ICO1');
和成一个幅图指标,有重复定义
来源:程序化99
-
文华技术人员:
参考:
M:=DUALVOLUME(''; N:=DUALVOLUME(''; DRAWCOLUMNCHART(N,SCALE>=0.5,M>=0); V1:SCALE*V,NODRAW; V2:(1-SCALE)*V,NODRAW; NBA:=BARSLAST(DATE<>REF(DATE,1))+1; AY:=BACKSET(ISLASTBAR,HHVBARS(V1,NBA)+1),NODRAW; BY:=BACKSET(ISLASTBAR,HHVBARS(V2,NBA)+1),NODRAW; DRAWCOLORKLINE(CROSS(AY,0.5),COLORMAGENTA,0); DRAWCOLORKLINE(CROSS(BY,0.5),COLORCYAN,0); DRAWSL(ISLASTBAR&&NOT(EXIST(C>VALUEWHEN(CROSS(AY,0.5),H),DAYBARPOS)),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),LINETHICK5; //DRAWHORIZONTALLINE(,H,COLORMAGENTA),LINETHICK5; DRAWSL(ISLASTBAR&&NOT(EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS)),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),LINETHICK5; //DRAWHORIZONTALLINE(,L,COLORCYAN),LINETHICK5; DRAWSL(ISLASTBAR&&EXIST(C>VALUEWHEN(CROSS(AY,0.5),H),DAYBARPOS),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),DOT; DRAWSL(ISLASTBAR&&EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),DOT;
N1:=DAYBARPOS; X:=LLVBARS(L,N1); K1:=IF(X>=1,LLV(L,X),100000); K2:=IF(X<(N1-1),REF(LLV(L,REFX1(N1-1-X,10000)),X+1),100000); 低点:=LLV(L,N1); 次低点:=MIN(K1,K2); T2:=BACKSET(ISLASTBAR,BARSLAST(L=REFX1(次低点,50))+1); CROSS(T2&&次低点>2000,0.5),ICON(1,'CO1';
T:=HHVBARS(H,N1); B1:=IF(T>=1,HHV(H,T),0); B2:=IF(T<N1-1,REF(HHV(H,REFX1(N1-1-T,10000)),T+1),0); 高点:=HHV(H,N1); 次高点:=MAX(B1,B2);
G2:=BACKSET(ISLASTBAR,BARSLAST(H=REFX1(次高点,50))+1); CROSS(G2&&次高点>2000,0.5),ICON(1,'CO1';
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容