cn1:=hhv(v,5);cn2:=o>c;cn02:=c>o;cn03:=c=o;cn04:=((sum(v,5)/cn1));cn05:=if(cn04>0.3,1,0);cn06:=if(cn2 and cn05,v,0);cn07:=if(cn02 and cn05,v,0);ad:=sum(cn07,3),coloryellow;da:=sum(cn06,3);az:=(ad-da),color0000ff;af:=az=ad;信号:cross(az,0) {不知道你的思路是如何,比如何时是买入,我是将az上穿0轴作为买点,但是信号很多} 20210311
{绿线买}lc:=ref(close,1);操作线:=sma(max(close-lc,0),2,1)/sma(abs(close-lc),2,1)*100;趋势线:=sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*100;震仓线:=45;pp:=操作线<震仓线 and ref(操作线,1)>震仓线 ;涨停:=if(ref(c,1)...
获利**:=ema(winner(c)*70,5),colormagenta;亏损**:=ema((winner(c*1.1)-winner(c*0.9))*80,5),coloryellow;主力控筹:=if(获利**>亏损**,获利***2,获利**),colorred;主力控筹>获利** and ref(主力控筹=获利**,1);凭感觉,你应该要主力控筹大于获利**的条件。不是再...
{出现洋红色柱体时买入}var1b:=(c+h+o+l)/4;买入:=xma(var1b,10)*(1-20/1000),colormagenta,linethick1;xg:(买入>low and 买入<high)or (买入>min(c,o) and 买入<max(c,o))or (买入>low and 买入<high);里面有未来函数,不建议使用。{底位白...