Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共8 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:新手问题

1楼
rocgan 发表于:2014/8/25 9:19:29

DK1:=D1>= D2 AND D3 >= D4 AND D5 >= D6 ;
//多开
DP1:=(D1< D2 AND D3< D4) OR  (D1< D2 AND D5< D6) OR (D3< D4 AND D5< D6);
//多平
 
KK1:=D1< D2 AND D3< D4 AND D5< D6;
//空开 
KP1:=(D1>= D2 AND D3 >= D4) OR (D1>= D2 AND D5 >= D6) OR (D3 >= D4 AND D5 >= D6);
//空平

 

DK1,BK;//买入开仓
DP1 ,SP;//平仓

KK1,SK;//卖出开仓
KP1 ,BP;//平仓

 

怎么改为新函数 指令价成交

2楼
jinzhe 发表于:2014/8/25 9:20:30

金字塔里面开多为buy,平多为sell,开空为buyshort,平空为sellshort

照着函数说明先自行修改一下试试

[此贴子已经被作者于2014/8/25 9:20:46编辑过]
3楼
rocgan 发表于:2014/8/25 9:35:28

buy(dk1,1,limitr);

sell(dp1,1,limitr);
buyshort(kk1,1,limitr);
sellshort(kp1,1,limitr);

这样吗

4楼
rocgan 发表于:2014/8/25 9:36:43
过滤信号 怎么写?
5楼
pyd 发表于:2014/8/25 9:42:37

limitr后边要写限定的价格,顺序是先平后开,用holding过滤

sell(dp1 and holding>0,1,limitr,c);
buyshort(kk1 and holding=0,1,limitr,c);
sellshort(kp1 and holding<0,1,limitr,c);
buy(dk1 and holding=0,1,limitr,o);

6楼
rocgan 发表于:2014/8/25 9:52:00

谢谢

请问这个是不是 出现连续信号时不再投入

7楼
rocgan 发表于:2014/8/25 9:54:22
出现信号 时的价格 是MARKET吗
8楼
pyd 发表于:2014/8/25 9:59:08

价格根据你自己的需要写

金字塔图表交易的交易指令详解

http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=52160

 

共8 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.05078 s, 3 queries.