以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 请看看问题在哪里2 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=8802) |
-- 作者:tonybig -- 发布时间:2011/11/4 12:03:36 -- 请看看问题在哪里2 请看看问题在哪里,用在1分钟图上 图中显示多处白色无效开仓图标。
runmode:0; pre30dayshigh:=ref(hhv(h,30),1); pre30dayslow:=ref(llv(l,30),1);
stdrange:=std(c,30); //偏差 centraline:(pre30dayshigh+pre30dayslow)/2; //中轨 uperband:centraline+stdrange; //上轨
enterlongcond:=h>=uperband; //开多 exitlongcond:=ref(c,1)<=centraline; //多头止损
//止损 [此贴子已经被作者于2011-11-4 12:04:21编辑过]
|
-- 作者:26327756l -- 发布时间:2011/11/4 13:45:43 -- 没有看到白色无效开仓图标 |
-- 作者:tonybig -- 发布时间:2011/11/4 13:47:48 -- 我加载在任何1分钟周期上就会有啊 |
-- 作者:fly -- 发布时间:2011/11/4 13:50:07 -- //有不懂的,对照函数列表好好看看. //请您逐字逐句的看看每一句的区别.---之前工作人员帮您写了个策略的,您肯定是没仔细看,这个策略犯了很多低级错误,希望下次发帖,不要再出现.
runmode:0; pre30dayshigh:=ref(hhv(h,30),1);
stdrange:=std(c,30); //偏差
enterlongcond:=h>=uperband and time>093000 and time<145800; //开多
if enterlongcond and centraline>=ref(centraline,1) then
//仓位止损 |
-- 作者:tonybig -- 发布时间:2011/11/4 14:16:56 -- 谢谢回复, 技术是一点一点堆积的嘛~~ 相信很快会熟练的。 |