Rss & SiteMap

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

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

标题:关于开仓价

1楼
jianfen 发表于:2015/8/25 11:30:28
enterprice在固定时间间隔模式下,取的是当根K先的收盘价还是真正的信号出现时的价格,在实盘中好像是当根K线的收盘价,我需要信号出现时的真正开仓价,用什么函数?
2楼
jinzhe 发表于:2015/8/25 13:10:07
图表里面获取不了实际的开仓价,enterprice获取的是信号价格
3楼
jianfen 发表于:2015/8/25 13:16:26
固定轮询模型,enterprice获得的是出信号时的收盘价,还是触发信号时的价格?实盘中,我观察的是收盘价。如何得到触发信号时的价格。
4楼
jinzhe 发表于:2015/8/25 13:18:53

你下单用的是什么价位?

5楼
jianfen 发表于:2015/8/25 13:20:12
//交易系统
variable:bj=0;
if bj=0 and holding=0 and 开多条件 then begin
    buy(1,1,THISCLOSE);
    bj:=1;
end
 
if bj=0 and holding=0 and 开空条件 then begin
    buyshort(1,1,THISCLOSE);
    bj:=1;
end
 
if bj=1 and holding=0 and 开多条件 and exitbars>0 then begin
    buy(1,1,THISCLOSE);
    end
 
if bj=1 and holding=0 and 开空条件 and exitbars>0 then begin
    buyshort(1,1,THISCLOSE);
   end
 
if 平多条件 and holding>0 and enterbars>0 then sell(1,1,THISCLOSE);
if 平空条件 and holding<0 and enterbars>0 then sellshort(1,1,THISCLOSE);
6楼
jinzhe 发表于:2015/8/25 13:25:34
那么就是获取不了,你用的是thisclose,获取的只能是当根k线的收盘价
7楼
jianfen 发表于:2015/8/25 13:27:23
那要如何改?你怎么不一次性回答了。
8楼
jianfen 发表于:2015/8/25 13:29:48
把指令价改成MARKET可以不?
9楼
jinzhe 发表于:2015/8/25 13:36:05
我说的是获取不了
10楼
jianfen 发表于:2015/8/25 13:38:05
。。。。。怎么可能获取不了。你想想。
共11 条记录, 每页显示 10 条, 页签: [1] [2]


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