博易大师软件分钟k线图用:有夜盘的能用,有日盘的分时图里显示不正确,麻烦老师帮助修该一下,能够通用 [博易POBO]
咨询内容:
AH:=STKCALC('',6,'REF(H,1)');
AL:=STKCALC('',6,'REF(L,1)');
AHL:=STKCALC('',6,'REF((H+L)/2,1)');
AO:=STKCALC('',6,'REF(O,1)');
AC:=STKCALC('',6,'REF(C,1)');
A1:=BARSLAST(A);
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND A1>=0,AH,ISLASTBAR,AH,1),LINETHICK2,COLOR808000;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND A1>=0,AL,ISLASTBAR,AL,1),LINETHICK2,COLOR0000FF;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND A1>=0,AHL,ISLASTBAR,AHL,1),LINETHICK2,COLORFFFF80;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND A1>=0,AO,ISLASTBAR,AO,1),LINETHICK2,COLOR80FF00;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND A1>=0,AC,ISLASTBAR,AC,1),LINETHICK2,COLOR80FFFF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AH,AH,2),ALIGN(0),VALIGN(2),COLOR808000;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AH,' 昨高'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR808000;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AL,AL,2),ALIGN(0),VALIGN(2),COLOR0000FF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AL,' 昨低'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR0000FF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AHL,AHL,2),ALIGN(0),VALIGN(2),COLORFFFF80;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AHL,' 昨1/2'),FONTSIZE(9),VALIGN(2),ALIGN0,COLORFFFF80;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AO,AO,2),ALIGN(0),VALIGN(2),COLOR80FF00;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AO,' 昨开'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FF00;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AC,AC,2),ALIGN(0),VALIGN(2),COLOR80FFFF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AC,' 昨收 '),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FFFF;
DRAWKLINE(H,O,L,C);
A:=STKCALC('',6,'ISLASTBAR');
AH:=STKCALC('',6,'REF(H,1)');
AL:=STKCALC('',6,'REF(L,1)');
AHL:=STKCALC('',6,'REF((H+L)/2,1)');
AO:=STKCALC('',6,'REF(O,1)');
AC:=STKCALC('',6,'REF(C,1)');
A1:=BARSLAST(A);
B1:=REF(HOUR,1)=15 AND HOUR<>15;
B11:= DATE=CURRENTDATE;
B2:=B1 AND B11;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND B2,REF(AH,1),ISLASTBAR,AH,1),LINETHICK2,COLOR808000;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND B2,AL,ISLASTBAR,AL,1),LINETHICK2,COLOR0000FF;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND B2,AHL,ISLASTBAR,AHL,1),LINETHICK2,COLORFFFF80;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND B2,AO,ISLASTBAR,AO,1),LINETHICK2,COLOR80FF00;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND B2,AC,ISLASTBAR,AC,1),LINETHICK2,COLOR80FFFF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AH,AH,2),ALIGN(0),VALIGN(2),COLOR808000;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AH,' 昨高'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR808000;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AL,AL,2),ALIGN(0),VALIGN(2),COLOR0000FF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AL,' 昨低'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR0000FF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AHL,AHL,2),ALIGN(0),VALIGN(2),COLORFFFF80;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AHL,' 昨1/2'),FONTSIZE(9),VALIGN(2),ALIGN0,COLORFFFF80;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AO,AO,2),ALIGN(0),VALIGN(2),COLOR80FF00;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AO,' 昨开'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FF00;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AC,AC,2),ALIGN(0),VALIGN(2),COLOR80FFFF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AC,' 昨收 '),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FFFF;
DRAWKLINE(H,O,L,C); 谢谢老师,真麻烦.......无语咋就不能通用哪,跨周期调用函数STKCALC('',6,'C')搞的鬼吧 来源 程序化久久网
博易大师软件分钟k线图用:有夜盘的能用,有日盘的分时图里显示不正确,麻烦老师帮助修该一下,能够通用
A:=STKCALC('',6,'ISLASTBAR');AH:=STKCALC('',6,'REF(H,1)');
AL:=STKCALC('',6,'REF(L,1)');
AHL:=STKCALC('',6,'REF((H+L)/2,1)');
AO:=STKCALC('',6,'REF(O,1)');
AC:=STKCALC('',6,'REF(C,1)');
A1:=BARSLAST(A);
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND A1>=0,AH,ISLASTBAR,AH,1),LINETHICK2,COLOR808000;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND A1>=0,AL,ISLASTBAR,AL,1),LINETHICK2,COLOR0000FF;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND A1>=0,AHL,ISLASTBAR,AHL,1),LINETHICK2,COLORFFFF80;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND A1>=0,AO,ISLASTBAR,AO,1),LINETHICK2,COLOR80FF00;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND A1>=0,AC,ISLASTBAR,AC,1),LINETHICK2,COLOR80FFFF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AH,AH,2),ALIGN(0),VALIGN(2),COLOR808000;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AH,' 昨高'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR808000;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AL,AL,2),ALIGN(0),VALIGN(2),COLOR0000FF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AL,' 昨低'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR0000FF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AHL,AHL,2),ALIGN(0),VALIGN(2),COLORFFFF80;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AHL,' 昨1/2'),FONTSIZE(9),VALIGN(2),ALIGN0,COLORFFFF80;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AO,AO,2),ALIGN(0),VALIGN(2),COLOR80FF00;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AO,' 昨开'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FF00;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AC,AC,2),ALIGN(0),VALIGN(2),COLOR80FFFF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AC,' 昨收 '),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FFFF;
DRAWKLINE(H,O,L,C);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 以下为白盘有效,建议白盘和夜盘品种分别调用A:=STKCALC('',6,'ISLASTBAR');
AH:=STKCALC('',6,'REF(H,1)');
AL:=STKCALC('',6,'REF(L,1)');
AHL:=STKCALC('',6,'REF((H+L)/2,1)');
AO:=STKCALC('',6,'REF(O,1)');
AC:=STKCALC('',6,'REF(C,1)');
A1:=BARSLAST(A);
B1:=REF(HOUR,1)=15 AND HOUR<>15;
B11:= DATE=CURRENTDATE;
B2:=B1 AND B11;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND B2,REF(AH,1),ISLASTBAR,AH,1),LINETHICK2,COLOR808000;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND B2,AL,ISLASTBAR,AL,1),LINETHICK2,COLOR0000FF;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13) AND B2,AHL,ISLASTBAR,AHL,1),LINETHICK2,COLORFFFF80;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND B2,AO,ISLASTBAR,AO,1),LINETHICK2,COLOR80FF00;
DRAWLINE((DATAPERIOD<6 OR DATAPERIOD=13)AND B2,AC,ISLASTBAR,AC,1),LINETHICK2,COLOR80FFFF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AH,AH,2),ALIGN(0),VALIGN(2),COLOR808000;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AH,' 昨高'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR808000;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AL,AL,2),ALIGN(0),VALIGN(2),COLOR0000FF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AL,' 昨低'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR0000FF;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AHL,AHL,2),ALIGN(0),VALIGN(2),COLORFFFF80;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AHL,' 昨1/2'),FONTSIZE(9),VALIGN(2),ALIGN0,COLORFFFF80;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AO,AO,2),ALIGN(0),VALIGN(2),COLOR80FF00;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AO,' 昨开'),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FF00;
DRAWNUMBER((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR,AC,AC,2),ALIGN(0),VALIGN(2),COLOR80FFFF;
DRAWTEXT((DATAPERIOD<6 OR DATAPERIOD=13) AND ISLASTBAR, AC,' 昨收 '),FONTSIZE(9),VALIGN(2),ALIGN0,COLOR80FFFF;
DRAWKLINE(H,O,L,C); 谢谢老师,真麻烦.......无语咋就不能通用哪,跨周期调用函数STKCALC('',6,'C')搞的鬼吧 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容