- 相关简介: 今日股市
- 内容标签: 操盘手公式网,股票公式,选股公式,独家内参,早盘必读,热点概念,炒股学习,股票软
- 浏览次数:
- 运行环境: 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;
版权保护: 本文由「操盘手公式网」编辑发布 转载请注明出处
|
- 上证指数年k线图(上证指数20年k线图)
- 沪指大盘 上证指数今日行情
- 今日上证指数新浪财经(今日上证指数是多少新浪财经)
- 上证指数十年走势图(上证指数十年走势图 百度)
- 今天上证指数收盘是多少(今天上证指数收盘多少点2020.8-11)
- 深证指数和上证指数(深证指数和上证指数走势向下反应)
- 上证指数行情数(上证指数行情数据解释)
- 上证指数30年走势图(2023年上证指数走势图)
- 大盘指数上证指数今天(今日大盘最新走势)
- 上证指数000001新浪财经(上证指数新浪财经000001 视频)
- 2023上证指数最高点(2023上证指数最高点和最低点是多少)
- 上证指数反应了什么(上证指数反应的是哪个板块的)
- 上证指数趋势(上证指数趋势线)
- 一周上证指数(一周上证指数行情走势)
- 上证指数跌幅(上证指数跌幅最大的几次)
- 上证指数年线是多少(上证指数年线是多少点)
- 今天大盘上证指数是多少(今天深指大盘上证指数)
- 上证指数和讯
- 上证指数的含义(上证指数曲线图含义)
- 上证指数 新闻