Rss & SiteMap

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

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

标题:请老师帮我编写公式

1楼
a6997568q 发表于:2015/10/8 8:38:15
请老师帮我编写公式
30秒周期
3日线金叉100日线做多。止损跌破开多这个K线的最低点。止盈最高价回撤百分之30.
3日线死叉100日线做空。止损开突破空这个K线的最高点。止盈最低价回撤百分之30
2楼
jinzhe 发表于:2015/10/8 9:22:34

ma3:=ma(c,3);
ma100:=ma(c,100);

if cross(ma3,ma100) then buy(holding=0,1,thisclose);

if l<valuewhen(enterbars=0,l) and holding>0 and enterbars>0 then sell(1,0,market);

if l<=hhv(h,enterbars+1)*0.7 then sell(1,0,market);

if cross(ma100,ma3) then buyshort(holding=0,1,thisclose);
if h>valuewhen(enterbars=0,h) and holding<0 and enterbars>0 then sellshort(1,0,market);
if h>=llv(l,enterbars+1)*1.3 then sellshort(1,0,market);

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


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