condtion_a1:=ema(close,3)-ema(close,89);condtion_a2:=ema(condtion_a1,21);condtion_a3:=(condtion_a1-condtion_a2)*10;condtion_a4:=pow(condtion_a3,3)*0.1+pow(condtion_a3,2);condtion_a5:=if(condtion_a3>0.015,condtion_a4,0)/45;condtion_a:=condtion_a5>0 and ref(condtion_a5,1)=0;condtion_b1:=(hhv(c,45)-llv(c,45))/45;condtion_b2:=sma(c,3,1);condtion_b3:=sma(c-condtion_b1*3,3,1);condtion_b4:=sma(condtion_b2-condtion_b1*3,3,1);condtion_b5:=condtion_b3>=condtion_b4;condtion_b6:=ref(condtion_b5,1)=0 and condtion_b5=1;condtion_b7:=sar(10,2,20);condtion_b8:=if(condtion_b7<=l,condtion_b7,0);condtion_b9:=ema(slope(c,21)*20+c,42);condtion_ba:=ema(c,5);condtion_bb:=(c+h+o+l)/4;condtion_bc:=xma(condtion_bb,20)*(1+8/1000);condtion_bd:=xma(condtion_bb,32)*(1-8/1000);condtion_be:=condtion_bd+(condtion_bc-condtion_bd)*2/3;condtion_bf:=condtion_bd+(condtion_bc-condtion_bd)*1/2;condtion_bg:=if(condtion_ba>=ref(condtion_ba,1),condtion_ba,draw**);condtion_bh:=cross(l,condtion_b7) and condtion_bg>0 and h<condtion_be and condtion_b8>0 and h>condtion_b9;condtion_bi:=condtion_b6 and condtion_be>h and not(condtion_bh);condtion_b:=condtion_bh or condtion_bi;condtion:condtion_a or condtion_b;公式已经替你合并,但是否达到你预期的效果,不得而知;说明,你提供的公式有未来函数(xma),请注意使用安全;公式仅是个工具,请不要过多依赖; 20210311
var2:=trou**ars(3,15,1)<10;var3:=peakbars(3,15,1)<10;var4:=if(var2=1,50,0);var5:=if(var3=1,50,0);底部:=if(var4=50,10,0);买入:=if(底部=10 and ref(底部,1)=10 and ref(底部,2)=0,50,0);选股:买入=50;
底必买: if(trou**ars(3,15,1)=0 and high>low+0.01,1,-1);上边一句就是了,但是代码中有未来函数,出现黄色信号后,如果股价继续往下走,信号就会消失了。小心用哦。 这个信号就是靠未来函数trou**ars才出现的,去掉该函数,也就去掉了这个信号。凡是你看起来历史信号,超级准确的公式,都是未来函数使信号漂移导致的。开始玩指标公式的人,总要碰到这情况,既...
涨停:=c=ztprice(ref(c,1),0.1) and h=c and not(h=l) ;ma5:=ma(c,5) ;ma5角度:=atan((ma5/ref(ma5,1)-1)*100)*180/3.1416;xg1:=ma5角度>=75 and 涨停 and not(dyna**(4)=0);cc:=abs((2*close+high+low)/4-ma(close,...