我是坏人~
2024-12-03 03:20:52
最佳回答
var1:=if(year>2999 and month>5,0,1);var2:=if(high=close,1.10*close,high)*var1;var3:=if(high=close,0.90*close,low)*var1;var4:=(ref(close,1)+ref(low,1)+ref(high,1)+ref(open,1))/4;var5:=if(ref(low,1)=ref(high,1),1.1*ref(close,1),var4)-ref(low,1);v**:=ref(close,3)-var5;var7:=ref(close,1)+var5;短期值1: ma((high+low)/2,5);顶部1: ema(ema(var2,6)*1.05,8);底部线1: ema(ema(var3,6)*0.97,8);var8:=(high+low+close)/3;vara1:=ma(close,5);varb1:=ma(close,10);varc1:=ma(close,20);vard1:=ma(close,30);vare1:=(vara1+varb1+varc1+vard1)/4;1: ma(vare1,5);天线2: ma(vare1,5)+ma(vare1,5)*0.03;天线3: ma(vare1,5)-ma(vare1,5)*0.03;varf1:=天线1-短期值1;varg1:=天线1-顶部线1;varh1:=天线1-底部线1;vari1:=天线2-天线3;stickline(vari1>0,天线2,天线3,0.2,0),colorgreen;var11:=if(year>2999 and month>5,0,1);var12:=if(high=close,1.10*close,high)*var11;var13:=if(high=close,0.90*close,low)*var11;var14:=(ref(close,1)+ref(low,1)+ref(high,1)+ref(open,1))/4;var15:=if(ref(low,1)=ref(high,1),1.1*ref(close,1),var14)-ref(low,1);var16:=ref(close,3)-var15;var17:=ref(close,1)+var15;长期值2: ema((high+low)/2,5);顶部线2: ema(ema(var12,6)*1.05,8);底部线2: ema(ema(var13,6)*0.97,8);var18:=(high+low+close)/3;vara2:=ema(close,5);varb2:=ema(close,10);varc2:=ema(close,20);vard2:=ema(close,30);vare2:=(vara2+varb2+varc2+vard2)/4;天线12: ema(vare2,60);天线22: ema(vare2,60)+ema(vare2,60)*0.03;天线32: ema(vare2,60)-ema(vare2,60)*0.03;varf2:=天线12-长期值2;varg2:=天线12-顶部线2;varh2:=天线12-底部线2;vari2:=天线22-天线32;stickline(vari2>0,天线22,天线32,0.2,0),colorblue;我这里有一个公式,不知道是不是你想要的哈,如果是的话求采纳哈,谢谢。 20210311