以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 老师帮编写个语句 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=58228) |
-- 作者:长赌飘血 -- 发布时间:2013/10/31 14:38:57 -- 请问插件接口中如何取得主数据缓冲区指针? 星期一和星期五开仓,其他时间不开仓怎么编写?谢谢 |
-- 作者:jinzhe -- 发布时间:2013/10/31 14:49:16 -- 开仓日期:= weekday=1 or weekday=5; |
-- 作者:长赌飘血 -- 发布时间:2013/10/31 15:12:34 -- 不行啊,加上去后其他时间还是开仓 |
-- 作者:jinzhe -- 发布时间:2013/10/31 15:21:28 -- 不会的,截图说明一下 |
-- 作者:长赌飘血 -- 发布时间:2013/10/31 15:25:34 -- 麻烦你干脆帮我写好吧,我是新手,什么都不会 input:n1(32,6,50,1); W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50; if W1>45 AND REF(ANY(W1>45,9),1) then begin if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose); if W1<-45 AND REF(ANY(W1<-45,9),1) then begin if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose); |
-- 作者:jinzhe -- 发布时间:2013/10/31 15:27:43 -- 开仓日期:= weekday=1 or weekday=5; W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50; if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose); if W1<-45 AND REF(ANY(W1<-45,9),1) and 开仓日期 then begin if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose); |
-- 作者:长赌飘血 -- 发布时间:2013/10/31 15:29:58 -- 非常感谢 |
-- 作者:长赌飘血 -- 发布时间:2013/10/31 15:39:56 -- 加上止损为什么就没有信号了? 开仓日期:= weekday=1 or weekday=5; if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose); if c>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);
IF C>REF(H,ENTERBARS)+3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN |
-- 作者:jinzhe -- 发布时间:2013/10/31 15:43:13 -- 说明在这两天没有止损条件满足的情况 你按键盘向下的箭头,多显示点数据 |
-- 作者:长赌飘血 -- 发布时间:2013/10/31 15:45:07 -- 编译都通不过 |