以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 以下帮我写一下,谢谢! (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=75520) |
-- 作者: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 |
-- 作者:jinzhe -- 发布时间:2015/2/10 11:12:39 -- 处理中请稍等 |
-- 作者:jinzhe -- 发布时间:2015/2/10 11:19:26 -- tt:=time<151200; 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 time>=151200 then sellshort(1,0,marketr);
需要用户对于上图里面的向下法则做更多的说明 |
-- 作者:zkh1010 -- 发布时间:2015/2/10 12:18:23 -- 谢谢! |