以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  高低点限时显示  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=95772)

--  作者:展我
--  发布时间:2016/4/2 18:40:01
--  高低点限时显示

请帮助编写高低点限时显示

1、当日有效;

2、只显示前30分钟.

   谢谢!


--  作者:展我
--  发布时间:2016/4/2 18:49:29
--  

指标:

GG:HHV(H,10);
DD:LLV(L,10);


--  作者:jinzhe
--  发布时间:2016/4/5 9:23:44
--  

runmode:0;
h1:=HHV(H,10);
l1:=LLV(L,10);
if time0<=timetot0(opentime(1))+60*30 then  GG:h1;
if time0<=timetot0(opentime(1))+60*30 then  DD:l1;

 


--  作者:展我
--  发布时间:2016/4/5 12:05:56
--  
老师:您好!
      只有日盘的正确;有夜盘的有错。请您看一下。谢谢!

--  作者:jinzhe
--  发布时间:2016/4/5 13:25:24
--  
日夜分别显示前30分钟?
--  作者:展我
--  发布时间:2016/4/5 15:37:20
--  
是的。谢谢老师。
--  作者:jinzhe
--  发布时间:2016/4/5 15:43:40
--  

runmode:0;
h1:=HHV(H,10);
l1:=LLV(L,10);
if time0<=timetot0(opentime(1))+60*30 then  GG:h1;
if time0<=timetot0(opentime(1))+60*30 then  DD:l1;

if time>opentime(2) and time0<=timetot0(opentime(2))+60*30 then  GG1:h1;
if time>opentime(2) and time0<=timetot0(opentime(2))+60*30 then  DD1:l1;