通达信精进壹号改进主图指标公式

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;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图