联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

【精进壹号改进主图】献给懒人用的机械交易系统!大小通吃!

2016-2-22 11:06:24点击:
通达信
{参数设置:N,1、300、14(默认)}
a0:=(l+h+c*2)/4;
a1:=ema(a0,n)coloryellow;
a1x:=(a1-ref(a1,1))/ref(a1,1)*100;
g1:=barslast(cross(a1x,0));
买入止损:ref(a0,g1),colorwhite,linethick1;
买入盈利:a0-买入止损/买入止损*100,nodraw;
if(a1x>=0,买入止损,drawnull),colorred,linethick2;
if(a1x>=0,a1,drawnull),colorred,linethick2;
if(h>=ref(a0,g1)*1.1,ref(a0,g1)*1.1,drawnull),colorgreen,pointdot;
if(h>=ref(a0,g1)*1.2,ref(a0,g1)*1.2,drawnull),colorgreen,pointdot;
if(h>=ref(a0,g1)*1.3,ref(a0,g1)*1.3,drawnull),colorgreen,circledot;
if(h>=ref(a0,g1)*1.4,ref(a0,g1)*1.4,drawnull),colorgreen,pointdot;
if(h>=ref(a0,g1)*1.5,ref(a0,g1)*1.5,drawnull),colorgreen,pointdot;
if(h>=ref(a0,g1)*1.6,ref(a0,g1)*1.6,drawnull),colorgreen,pointdot;
if(h>=ref(a0,g1)*1.7,ref(a0,g1)*1.7,drawnull),colorgreen,pointdot;