Rss & SiteMap

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

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

标题:请老师编写个模型

1楼
qihuoxiaozi 发表于:2012/12/24 14:17:31

请教下,有个思路,不知道能否编写出来

以开盘价为中心,距离开盘价上下10个点,或者上下10个整数倍个点做多。盈利10个点平仓


 

比如pta是8200开盘,8190买多,8180买多。。。。希望用在分时图上

请老师帮忙实现!

2楼
jinzhe 发表于:2012/12/24 14:34:39

o1:=valuewhen(date<>ref(date,1),o);

tbuy(tholding=0,1,lmt,01-10,0);

tsell(tholding>0 and c-tenterprice>10,0,mkt)

3楼
qihuoxiaozi 发表于:2012/12/24 16:22:07
老师,不显示信号啊
4楼
jinzhe 发表于:2012/12/24 16:23:26

o1:=valuewhen(date<>ref(date,1),o);

buy(holding=0,1,limitr,01-10);

sell(holding>0 and c-enterprice>10,0,market);

5楼
qihuoxiaozi 发表于:2012/12/24 16:41:23
请老师加个条件,10分钟之内同一点位开仓只能开一次
共5 条记录, 每页显示 10 条, 页签: [1]


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