Rss & SiteMap

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

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

标题:老师好,帮忙编个程序

1楼
yhl99414 发表于:2013/9/10 23:38:56

突破首根k线最高点开多仓3手,突破首根k线最低点开空仓3手。

止盈:1/3止盈33点,止盈后剩下2手设回调止损10点(实质盈利10点);

       1/3止盈44点,止盈后剩下1/3设回调一半止损,或者到收盘平仓。

 

2楼
jinzhe 发表于:2013/9/11 8:41:13

首根k线 指的是当日的第一根k线?

1/3止盈33点的意思是盈利33点后平掉1/3手持仓?

3楼
90也玩期货 发表于:2013/9/11 9:24:37
老师:是的
4楼
90也玩期货 发表于:2013/9/11 9:24:51
不知道这个怎么写,谢谢老师
5楼
90也玩期货 发表于:2013/9/11 9:42:36
老师可以回答我吗

6楼
jinzhe 发表于:2013/9/11 9:44:09

variable:hh=0;
variable:ll=100000;
n:=3;
h_1:valuewhen(todaybar=1,high);
l_1:valuewhen(todaybar=1,low);

if h>h_1 then begin
 buy(holding=0,3,thisclose);
 hh:=h;
end

if h>hh then hh:=h;

if l<l_1 then begin
 buyshort(holding=0,3,thisclose);
 ll:=l;
end

if l<ll then ll:=l;

if c-enterprice>33*mindiff then sell(holding>0,n/3,thisclose);

if enterprice-c>33*mindiff then sellshort(holding<0,n/3,thisclose);

if hh-h>10*mindiff and close-enterprice>10*mindiff then sell(holding>0,n*2/3,thisclose);

if l-ll>10*mindiff and enterprice-close>10*mindiff then sellshort(holding<0,n*2/3,thisclose);

if time=closetime(0) then begin
 sellshort(1,0,thisclose);
 sell(1,0,thisclose);
end

7楼
90也玩期货 发表于:2013/9/11 10:14:40
谢谢老师,辛苦了
8楼
yhl99414 发表于:2013/9/11 14:51:41
90后干嘛来凑热闹?
9楼
jinzhe 发表于:2013/9/11 14:55:32
图片点击可在新窗口打开查看新一代啊这是,未来的主力
10楼
yhl99414 发表于:2013/9/11 17:36:49
老师,针对白银的话,这里有个问题啊就是白银按照21点开始算第一条k线的,能不能把白天的9点开始第一条k线算首根k线??谢谢老师
共29 条记录, 每页显示 10 条, 页签: [1] [2][3]


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