金字塔MACD动量突破系统指标
2018年08月16日 [其它公式] 浏览:3297 评论:0
金字塔MACD动量突破系统指标 : runmode:0; input:p(26,20,100,8); input:s(12,5,40,4); input:m(9,2,60,6); variable:myasset=300000; diff:=ema(close,s)-ema(close,p); dea:=ema(diff,m); macd:=2*(diff-dea); entertime:=time>=091000 and time<=145500; exittime:=time>=150000; buycond:=ref(cross(macd,0),1); sellcond:=ref(cross(0,macd),1); if holding=0 then begin if buycond then buy(1,1,limitr,open); end if holding=0 then begin if sellcond then buyshort(1,1,limitr,open); end if holding>0 then begin if exittime then sell(1,holding,limitr,close); if sellcond then begin sell(1,holding,limitr,open),orderqueue; buyshort(1,1,limitr,open),orderqueue; end end if holding<0 then begin if exittime then sellshort(1,holding,limitr,close); if buycond then begin sellshort(1,holding,limitr,open),orderqueue; buy(1,1,limitr,open),orderqueue; end end if exittime then myasset:=asset; 收益:myasset,noaxis,colormagenta; 次数:totaltrade,linethick0; 胜率:percentwin,linethick0; 连亏:maxseqloss,linethick0; 连赢:maxseqwin,linethick0; (编辑:股粉帮) |
相关内容
推荐内容
热点阅读
热评文章
次新绝技股池(包括指标和选股),注意每天都需要...[详细]
通达信大盘、个股主图、副图精准大盘低点、启动点提示(压力支撑、高低点提示)!
【大盘、个股主图、副图】大盘低点、启动点提示(...[详细]
永恒1号每天收盘前15分钟打开股池预警(通达...[详细]
《怎样选择成长股》菲利普.A.费雪pdf下载:...[详细]
大智慧大路888缺口股票池我觉得我做人还...[详细]
通达信黑马基因副图指标公式:{公式名称:HM...[详细]
通达信纵横四海主图指标公式破解源码:{公式名称...[详细]
M60:=MA(C,7);M120:=MA(C...[详细]
跑赢高利贷——股票池终结版,今后不再更新!竞价...[详细]
N:=5;bc:=(IF(C>(H+L+...[详细]