Rss & SiteMap

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

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

标题:[求助]布林带的改编

1楼
金诚 发表于:2013/9/4 22:33:35

MID :  MA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);

以上是金字塔自带的布林带公式  想把它改成 突破UPPER就开多  突破LOWER就开空 怎么编写,麻烦会的人帮个忙!谢谢!平仓就是回调到MID这条线   谢谢!

2楼
jinzhe 发表于:2013/9/5 9:07:52

MID :  MA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);

 

 

if cross(c,upper) then buy(holding=0,1,market);

 

if cross(lower,c) then buyshort(holding=0,1,market);

 

if ref(c>mid,1) and c<mid then sell(1,0,market);

 

if ref(c<mid,1)  and c>mid then sellshort(1,0,market);

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


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