- 相关简介: 今日股市
- 内容标签: 操盘手公式网,股票公式,选股公式,独家内参,早盘必读,热点概念,炒股学习,股票软
- 浏览次数:
- 运行环境: Win10,Win8,Win7,WinXP
- 文章作者: 操盘手公式网
- 文章来源: www.stock87.com
- 加入时间: 2018-09-14 22:41:46
- 解压密码: www.stock87.com(请仔细输入!复制无效!)
金字塔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;
版权保护: 本文由「操盘手公式网」编辑发布 转载请注明出处
- 西水股份股票〈西水股份股票最新消息〉
- 贵州茅台股票〈贵州茅台股票历史价格一览表〉
- 股票600346〈恒力股票600346〉
- 西山煤电股票〈西山煤电股票000983〉
- 股票600098〈股票6000980〉
- 股票600326〈股票600326现在什么位置〉
- 股票600063〈股票600063皖维高新〉
- 股票600010〈包钢股票600010〉
- 股票000509〈股票000509行情〉
- 紫金矿业股票〈紫金矿业股票行情〉
- 疏肝益阳胶囊有哪些功效与作用〈疏肝益阳胶囊有哪些功效与作用及副作用〉
- 紫金矿业〈紫金矿业股票代码〉
- 格力电器股票〈格力电器股票行情〉
- 岷江水电股票〈岷江水电股票行情今天最新消息〉
- 中国平安股票〈中国平安股票最近老是下跌怎么回事〉
- 二三四五股票〈二三四五股票行情〉
- 三一重工股票〈三一重工股票股〉
- 601166股票〈601166股票股吧〉
- 601618股票〈601618股票股吧〉
- 002522股票〈002522股票价格手机东方财富网〉