N:=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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。