公式网 股票指标公式源码分享 登录 注册
公式指标平网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 其他公式 > 金字塔公式 > 正文 → 正文

金字塔MACD动量突破主图源码

发布时间:2016/2/24 6:51:59  浏览次数:

金字塔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;

金字塔MACD动量突破主图源码

资源下载链接   资源大小:unknow

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZX.COM.CN ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识