Rss & SiteMap

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

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

标题:求程序纠错

1楼
dongdong123 发表于:2014/3/7 11:34:13
收盘价大于50根K线的最高价开多单,小于 50根K线的最小价开空单
回抽17个点平仓,不会开单求程序纠错

input:cc(50,10,150,5);

h_1:=hhv(h,enterbars+1);
l_1:=llv(l,enterbars+1);
hh:=hhv(h,cc);
ll:=llv(l,cc);

kd:=c>hh;
kk:=c<ll;

buy(kd and holding=0,1,market);
buyshort(kk and holding=0,1,market);

if l<h_1-17 then sell(1,0,market);
if h>l_1+17 then sellshort(1,0,market);
2楼
jinzhe 发表于:2014/3/7 13:13:24

input:cc(50,10,150,5);


h_1:=hhv(h,enterbars+1);
l_1:=llv(l,enterbars+1);
hh:=hhv(h,cc);
ll:=llv(l,cc);


kd:=h>ref(hh,1);
kk:=l<ref(ll,1);

if h>l_1+17 then sellshort(1,0,market);

buy(kd and holding=0,1,market);

if l<h_1-17 then sell(1,0,market);

buyshort(kk and holding=0,1,market);

 

3楼
dongdong123 发表于:2014/3/7 15:42:38
感谢无所不能的版主
共3 条记录, 每页显示 10 条, 页签: [1]


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