tv1:=ref(v,2)<ma(v,5);tv2:=cross(c,ma(c,5)) and v>=ma(v,5);tv3:=ma(c,5)<ref(ma(c,5),1) and ma(c,10)<ref(ma(c,10),1);xg:tv1 and tv2 and tv3;仅供参考,希望能够帮助您,顺祝马年投资顺利!
condtion_a:=every(c(c,20),6);condtion_b:=every(c>ma(c,20),6);condtion:=condtion_a or condtion_b;stickline(c,ref(h,barslast(condtion))*0.99912,ref(h,barslast(condtion))*1.00088,1,0),coloryellow;stic...
{量比}var0:=ref(v,1)+ref(v,2)+ref(v,3)+ref(v,4)+ref(v,5);var1:=var0/5;量比:=v/var1;{45底上升}x1:=(c+l+h)/3;bb13:=atan(ema(x1,10)-ref(ema(x1,10),1))*3.1416*100;xg:=every(v<ref(v,1),2) and bb13>45 and ev...
下面公式天量标准是今日成交量大于前一日20日最高量的2倍以上,k线3分之2是高到低3分之2的距离加上低,x:=barslast(v/ref(hhv(v,20),1)>2 and c<o);xg:cross(c,ref(2/3*(h-l)+l,x)) and x<=3 and x>0;天量阴线后3天内收盘价上穿过这个阴线天量这根k线3分之2的线条件成立