请高手对今日最高价最低价画水平线 [博易POBO]
咨询内容:
早上8:59分-下午3点段的时间里.
对其最高价与最低价各画一条水平线.
有请高手帮忙,多谢!
{WRITTEN BY RIVERSZHAO}
{DRAWKLINE(H,O,L,C);}
ISINDAY:= DATAPERIOD<6;
DBARS:= IF(REF(HOUR,1)=15,1, REF(DBARS,1)+1), LINETHICK0;
DAYH:= IF(DBARS=1, H, MAX(REF(DAYH,1),H));
DAYL:= IF(DBARS=1, L, MIN(REF(DAYL,1),L));
日内最高价: IF(ISINDAY, DAYH, H), LINETHICK0,COLORMAGENTA;
日内最低价: IF(ISINDAY, DAYL, L), LINETHICK0,COLORGREEN;
PARTLINE(ISINDAY, DAYH),COLORMAGENTA;
PARTLINE(ISINDAY, DAYL),COLORGREEN; 本帖最后由riverszhao于2014-12-2922:10编辑
如果想只显示白天不显示晚上的高低线,就下面这样:
显示日内高低线:=1;
{WRITTENBYRIVERSZHAO}
{DRAWKLINE(H,O,L,C);}
ISINDAY:=DATAPERIOD<6;
ISDAYTIME:=BETWEEN(HOUR,9,15);
{DBARS:=IF(REF(HOUR,1)=15,1,REF(DBARS,1)+1),LINETHICK0;}
DBARS:=IF(REF(DAY,1)<>DAYANDREF(HOUR,1)<>9ANDHOUR=9,1,REF(DBARS,1)+1);
DAYH:=IF(DBARS=1,H,MAX(REF(DAYH,1),H));
DAYL:=IF(DBARS=1,L,MIN(REF(DAYL,1),L));
日内最高价:IF(ISINDAY,DAYH,H),LINETHICK0,COLORMAGENTA;
日内最低价:IF(ISINDAY,DAYL,L),LINETHICK0,COLORGREEN;
PARTLINE(ISINDAYANDISDAYTIMEANDDBARS<>1,DAYH),COLORMAGENTA;
PARTLINE(ISINDAYANDISDAYTIMEANDDBARS<>1,DAYL),COLORGREEN;
请高手对今日最高价最低价画水平线
出了夜盘,不会弄了.早上8:59分-下午3点段的时间里.
对其最高价与最低价各画一条水平线.
有请高手帮忙,多谢!
博易技术人员: 显示日内高低线:=1;
{WRITTEN BY RIVERSZHAO}
{DRAWKLINE(H,O,L,C);}
ISINDAY:= DATAPERIOD<6;
DBARS:= IF(REF(HOUR,1)=15,1, REF(DBARS,1)+1), LINETHICK0;
DAYH:= IF(DBARS=1, H, MAX(REF(DAYH,1),H));
DAYL:= IF(DBARS=1, L, MIN(REF(DAYL,1),L));
日内最高价: IF(ISINDAY, DAYH, H), LINETHICK0,COLORMAGENTA;
日内最低价: IF(ISINDAY, DAYL, L), LINETHICK0,COLORGREEN;
PARTLINE(ISINDAY, DAYH),COLORMAGENTA;
PARTLINE(ISINDAY, DAYL),COLORGREEN; 本帖最后由riverszhao于2014-12-2922:10编辑
如果想只显示白天不显示晚上的高低线,就下面这样:
显示日内高低线:=1;
{WRITTENBYRIVERSZHAO}
{DRAWKLINE(H,O,L,C);}
ISINDAY:=DATAPERIOD<6;
ISDAYTIME:=BETWEEN(HOUR,9,15);
{DBARS:=IF(REF(HOUR,1)=15,1,REF(DBARS,1)+1),LINETHICK0;}
DBARS:=IF(REF(DAY,1)<>DAYANDREF(HOUR,1)<>9ANDHOUR=9,1,REF(DBARS,1)+1);
DAYH:=IF(DBARS=1,H,MAX(REF(DAYH,1),H));
DAYL:=IF(DBARS=1,L,MIN(REF(DAYL,1),L));
日内最高价:IF(ISINDAY,DAYH,H),LINETHICK0,COLORMAGENTA;
日内最低价:IF(ISINDAY,DAYL,L),LINETHICK0,COLORGREEN;
PARTLINE(ISINDAYANDISDAYTIMEANDDBARS<>1,DAYH),COLORMAGENTA;
PARTLINE(ISINDAYANDISDAYTIMEANDDBARS<>1,DAYL),COLORGREEN;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容