Rss & SiteMap

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

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

标题:盘中创日内新高买入,创日内新低卖出

1楼
kakasky 发表于:2016/4/6 12:54:48

请教老师,在1分钟周期内怎么写下面的开仓条件:

在盘中1分钟K线创日内新高时做多,创日内新低时做空,同时前日的收盘价止损。

2楼
jinzhe 发表于:2016/4/6 13:32:45

if h=hhv(h,todaybar) then buy(holding=0,1,marketr);

if l=llv(l,todaybar) then buyshort(holding=0,1,marketr);

 

if enterprice<ref(c,todaybar) then sell(1,0,marketr);

if enterprice>ref(c,todaybar) then sellshort(1,0,marketr);

共2 条记录, 每页显示 10 条, 页签: [1]


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