Re: [请益] HTS powerlanguage盘中时间设定触发问题

楼主: IanLi (IanLi)   2015-04-27 20:38:56
※ 引述《davidtt (davidtt)》之铭言:
: 请问高手,
: 我正用日盛的HTS 4000在写程式选股,目前希望每半小时(30分k)替我找出一些标的,
: 于是我程式这样下:
我没用HTS过只能给你经验
: if date <> date[1] then
: if time >= 093000 and time < 100000 then
这种条件式是9:30到10点前跑A程式段
: if condition1 then
: drawpoint(topside,"9点半",5,5)
: end if
: end if
: if time >=100000 and time <103000 then
这种条件式是10点到10:30前点跑B程式段
: if condition2 then
: drawpoint(topside,"10点",5,5)
: end if
: end if
: .........到收盘为止
: end if
上述与与原命题半小时不相符
若要每半小时一种是写switch不然就for条件式或多个if条件式
看HTS支援怎样的功能
: 不过程式并无法如期在各个时间点触发,不知是否有高手告诉我是哪里出错了?!
: 是时间函数吗?感恩!
没程式难说
建议用些print来测能进哪个循环
此外
但除非有现成函式库不然你要自己处里K线的资料
若要做型态你要想办法暂存之前的资料来判断
以上还是看有没有高手直接解题吧

Links booklink

Contact Us: admin [ a t ] ucptt.com