【精进壹号改进主图】献给懒人用的机械交易系统!大小通吃!
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;
{参数设置: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;
- 上一篇:(牛趋势主图 组合副图)喜迎元宵佳节,送上2个指标 2016/2/22
- 下一篇:金线买入(源码 选股/副图 通达信 贴图),一年2.5倍利润 2016/2/22