Rss & SiteMap

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

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

标题:以下帮我写一下,谢谢!

1楼
zkh1010 发表于:2015/2/10 11:10:17

本策略有加仓和均线过虑具体如下:

开空条件:

1、价格在股指日线20日均线下方

2、1分钟K线5周期向下交30周期均线时开仓做空1手

加仓:

1、当盈利的情况下,出现连续三根阴线,则加空1手

2、当盈利的情况下,出现下降三法形态,则加空1手(如图)

平仓条件:

1、首次开仓止损6个点

2、不管第一次加仓还是第二次加仓,加仓后止损移到开仓均价

3、收盘清仓时间为15:12图片点击可在新窗口打开查看

2楼
jinzhe 发表于:2015/2/10 11:12:39
处理中请稍等
3楼
jinzhe 发表于:2015/2/10 11:19:26

tt:=time<151200;
ma5:=ma(c,5);
ma30:=ma(c,30);
mm:=stkindi('','ma.ma1(20)',0,6);
if cross(ma30,ma5) and l<mm then buyshort(holding=0,1,marketr);

if holding=-1 and openprofit>0 and all(isdown,3) then buyshort(1,1,marketr);

if holding=-2 and openprofit>0 and 向下法则 then buyshort(1,1,marketr);

if holding=-1 and h>enterprice+6*mindiff then sellshort(1,0,marketr);
if holding<-1 and h>=AVGENTERPRICE then sellshort(1,0,marketr);

if time>=151200 then sellshort(1,0,marketr);

 

 

需要用户对于上图里面的向下法则做更多的说明

4楼
zkh1010 发表于:2015/2/10 12:18:23
谢谢!
共4 条记录, 每页显示 10 条, 页签: [1]


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