Rss & SiteMap

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

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

标题:请求编写下,谢谢

1楼
shawaverage 发表于:2015/1/28 17:20:38
我的思路是日内交易

做多条件:如果开盘5分钟后,高开状态(今开盘大于昨收盘) 
平仓条件:跟踪止损30个最小变动价,未被触发止损,则收盘前5分钟平

做空,反之同理。


特殊情况,如果高开幅度比例大于3%,则逆势操作,即为满足开盘5分钟后,高开状态(今开盘大于昨收盘)做空,反之同理,做多。

2楼
jinzhe 发表于:2015/1/29 8:52:04
反之同理这个请详细说明一下
3楼
shawaverage 发表于:2015/1/30 9:27:20
我的思路是日内交易

做多条件:如果开盘5分钟后,高开状态(今开盘大于昨收盘) 
平仓条件:跟踪止损30个最小变动价,未被触发止损,则收盘前5分钟平

做空条件:如果开盘5分钟后,低开状态(今开盘小于昨收盘)
平仓条件:跟踪止损30个最小变动价,未被触发止损,则收盘前5分钟平


特殊情况,如果高开幅度比例大于3%,则逆势操作,即为满足开盘5分钟后,高开状态(今开盘大于昨收盘)做空,反之同理,做多。


另外关于跟踪止损平仓,另外一种想法就是直接跟踪止损开盘价的固定比例,如1%。这两种想法可否帮忙编写下。3q
4楼
pyd 发表于:2015/1/30 9:33:18
用在哪个品种?哪个周期上?
[此贴子已经被作者于2015/1/30 9:35:26编辑过]
5楼
shawaverage 发表于:2015/1/30 9:44:35
任意品种,日线级别以下周期,我主要想在5分钟上进行
6楼
pyd 发表于:2015/1/30 10:23:08
一天开仓次数有吗?否则开盘5分钟后满足条件一直在开仓。
7楼
shawaverage 发表于:2015/1/30 10:53:20
只开一次即可。。如果可以的话,允许两次。
8楼
pyd 发表于:2015/1/30 11:12:45

VARIABLE:n=0,m=0;
oo:VALUEWHEN(todaybar=1,o);
cc:VALUEWHEN(todaybar=1,ref(c,1));
if date<>ref(date,1) then begin
 n:=0,
 m:=0;
 end

if time>=090500 and oo>cc and n=0 then begin
buy(holding=0,1,market);
n:=1;
end
if time>090500 and oo<cc and m=0 then begin
 buyshort(holding=0,1,market);
 m:=1;
 end
//跟踪止损30个最小变动价
ll:llv(l,enterbars+1);
hh:hhv(h,enterbars+1);
if h-ll>=30*mindiff then sell(holding>0,holding,market);
if hh-l>=30*mindiff then sellshort(holding<0,holding,market);

//高开幅度比例大于3%开仓
if time>90500 and n=0 and (cc-oo)/oo>=0.3 then begin
 buy(holding=0,1,market);
 n:=1;
 end
if time>090500 and m=0 and  (oo-cc)/oo>=0.3 then begin
buyshort(holding=0,1,market);
m:=1;
end


//开盘价的1%跟踪止损
if h-ll>=0.01*oo then sell(holding>0,holding,market);
if hh-l>=0.01*oo then sellshort(holding<0,holding,market);

//收盘前5分钟平仓
if time>=145500 then begin
 sell(holding>0,holding,market);
 sellshort(holding<0,holding,market);
 end
 

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


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