请老师把这个修改成成交量画框 [文华财经]
-
咨询内容:
15FOO:"MIN$15$O",CIRCLEDOT,COLORCYAN,NODRAW;
15FN:CROSS(MOD(MINUTE,15)=0,0.5),NODRAW;
N:=BARSLAST(CROSS(15FN,0.5))+1;
NN:=MINUTE,NODRAW;
D:=MOD(NN,15)=0;
QO:=VALUEWHEN(D,O),DASH;
QC:=VALUEWHEN(D,REF(C,1)),DASH;
N1:=BARSLAST(HOUR<>REF(HOUR,1))+1;
T:=REFX1(MOD(NN,15)=0,1);
DRAWSL(T,HHV(H,SUMBARS(T,2)-1),0,-SUMBARS(T,2)+2,0,COLORGRAY);
DRAWSL(T,LLV(L,SUMBARS(T,2)-1),0,-SUMBARS(T,2)+2,0,COLORGRAY);
DRAWLINE(T,HHV(H,SUMBARS(T,2)-1),T,LLV(L,SUMBARS(T,2)-1),COLORGRAY);
DRAWLINE3(T,HHV(H,SUMBARS(T,2)-1),SUMBARS(T,2)-2,T,LLV(L,SUMBARS(T,2)-1),SUMBARS(T,2)-2,0),COLORGRAY;
OO:=VALUEWHEN(DAYBARPOS=1,O);
AA:PERIOD<>8,NODRAW;
DRAWLINE3(AA&& (REFX(DAYBARPOS=1,1)),HHV(H,DAYBARPOS),BARSLAST(DAYBARPOS=1),AA&&(REFX(DAYBARPOS=1,1)),LLV(L,DAYBARPOS),BARSLAST(DAYBARPOS=1),0),COLORGRAY;
DRAWLINE(AA&&(REFX(DAYBARPOS=1,1)),HHV(H,DAYBARPOS),AA&&(REFX(DAYBARPOS=1,1)),LLV(L,DAYBARPOS),COLORGRAY);
DRAWSL(AA&&(REFX(DAYBARPOS=1,1)),HHV(H,DAYBARPOS),0,-BARSLAST(DAYBARPOS=1),0,COLORGRAY);
DRAWSL(AA&&(REFX(DAYBARPOS=1,1)),LLV(L,DAYBARPOS),0,-BARSLAST(DAYBARPOS=1),0,COLORGRAY);
NN1:BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1,NODRAW;
OO1:=VALUEWHEN(NN1=1,O);
DRAWSL((REFX(NN1=1,1)||ISLASTBAR)&&PERIOD=8,HHV(H,NN1),0,-BARSLAST(NN1=1),0,COLORGRAY);
DRAWSL((REFX(NN1=1,1)||ISLASTBAR)&&PERIOD=8,LLV(L,NN1),0,-BARSLAST(NN1=1),0,COLORGRAY); 请老师把这个修改成成交量画框,框的高度以15根K线的成交量做高度 宽度就是15根K线 谢谢来源:程序化99
-
文华技术人员:
参考
VOL,VOLSTICK;
15FOO:"MIN$15$O",CIRCLEDOT,COLORCYAN,NODRAW;
15FN:CROSS(MOD(MINUTE,15)=0,0.5),NODRAW;
N:=BARSLAST(CROSS(15FN,0.5))+1;
NN:=MINUTE,NODRAW;
D:=MOD(NN,15)=0;
QO:=VALUEWHEN(D,O),DASH;
QC:=VALUEWHEN(D,REF(C,1)),DASH;
N1:=BARSLAST(HOUR<>REF(HOUR,1))+1;
T:=REFX1(MOD(NN,15)=0,1);
DRAWSL(T,HHV(V,SUMBARS(T,2)-1),0,-SUMBARS(T,2)+2,0,COLORGRAY);
DRAWSL(T,0,0,-SUMBARS(T,2)+2,0,COLORGRAY);
DRAWLINE(T,HHV(V,SUMBARS(T,2)-1),T,0,COLORGRAY);
DRAWLINE3(T,HHV(V,SUMBARS(T,2)-1),SUMBARS(T,2)-2,T,0,SUMBARS(T,2)-2,0),COLORGRAY;
OO:=VALUEWHEN(DAYBARPOS=1,O);
AA:PERIOD<>8,NODRAW;
DRAWLINE3(AA&& (REFX(DAYBARPOS=1,1)),HHV(V,DAYBARPOS),BARSLAST(DAYBARPOS=1),AA&&(REFX(DAYBARPOS=1,1)),0,BARSLAST(DAYBARPOS=1),0),COLORGRAY;
DRAWLINE(AA&&(REFX(DAYBARPOS=1,1)),HHV(V,DAYBARPOS),AA&&(REFX(DAYBARPOS=1,1)),0,COLORGRAY);
DRAWSL(AA&&(REFX(DAYBARPOS=1,1)),HHV(V,DAYBARPOS),0,-BARSLAST(DAYBARPOS=1),0,COLORGRAY);
DRAWSL(AA&&(REFX(DAYBARPOS=1,1)),0,0,-BARSLAST(DAYBARPOS=1),0,COLORGRAY);
NN1:BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1,NODRAW;
OO1:=VALUEWHEN(NN1=1,O);
DRAWSL((REFX(NN1=1,1)||ISLASTBAR)&&PERIOD=8,HHV(H,NN1),0,-BARSLAST(NN1=1),0,COLORGRAY);
DRAWSL((REFX(NN1=1,1)||ISLASTBAR)&&PERIOD=8,LLV(L,NN1),0,-BARSLAST(NN1=1),0,COLORGRAY);来源: WWW.CXH99.COM
-
文华客服:
你好老师 能否叫上边的方框变成黄色框 谢谢
-
网友回复:
参考
VOL,VOLSTICK;
15FOO:"MIN$15$O",CIRCLEDOT,COLORCYAN,NODRAW;
15FN:CROSS(MOD(MINUTE,15)=0,0.5),NODRAW;
N:=BARSLAST(CROSS(15FN,0.5))+1;
NN:=MINUTE,NODRAW;
D:=MOD(NN,15)=0;
QO:=VALUEWHEN(D,O),DASH;
QC:=VALUEWHEN(D,REF(C,1)),DASH;
N1:=BARSLAST(HOUR<>REF(HOUR,1))+1;
T:=REFX1(MOD(NN,15)=0,1);
DRAWSL(T,HHV(V,SUMBARS(T,2)-1),0,-SUMBARS(T,2)+2,0,COLORYELLOW);
DRAWSL(T,0,0,-SUMBARS(T,2)+2,0,COLORYELLOW);
DRAWLINE(T,HHV(V,SUMBARS(T,2)-1),T,0,COLORYELLOW);
DRAWLINE3(T,HHV(V,SUMBARS(T,2)-1),SUMBARS(T,2)-2,T,0,SUMBARS(T,2)-2,0),COLORYELLOW;
OO:=VALUEWHEN(DAYBARPOS=1,O);
AA:PERIOD<>8,NODRAW;
DRAWLINE3(AA&& (REFX(DAYBARPOS=1,1)),HHV(V,DAYBARPOS),BARSLAST(DAYBARPOS=1),AA&&(REFX(DAYBARPOS=1,1)),0,BARSLAST(DAYBARPOS=1),0),COLORYELLOW;
DRAWLINE(AA&&(REFX(DAYBARPOS=1,1)),HHV(V,DAYBARPOS),AA&&(REFX(DAYBARPOS=1,1)),0,COLORYELLOW);
DRAWSL(AA&&(REFX(DAYBARPOS=1,1)),HHV(V,DAYBARPOS),0,-BARSLAST(DAYBARPOS=1),0,COLORYELLOW);
DRAWSL(AA&&(REFX(DAYBARPOS=1,1)),0,0,-BARSLAST(DAYBARPOS=1),0,COLORYELLOW);
NN1:BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1,NODRAW;
OO1:=VALUEWHEN(NN1=1,O);
DRAWSL((REFX(NN1=1,1)||ISLASTBAR)&&PERIOD=8,HHV(H,NN1),0,-BARSLAST(NN1=1),0,COLORYELLOW);
DRAWSL((REFX(NN1=1,1)||ISLASTBAR)&&PERIOD=8,LLV(L,NN1),0,-BARSLAST(NN1=1),0,COLORYELLOW);
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容