var12:=(high+low+close)/3;var13:=(var12-ma(var12,14))/(0.015***edev(var12,14));var14:=(var12-ma(var12,70))/(0.015***edev(var12,70));var15:=if(var13>=150 and var13<200 and var14>=150 and var14<200,10,0);var16:=if(var13<=-150 and var13>-200 and var14<=-150 and var14>-200,-10,var15);var17:=(close-ma(close,13))/ma(close,13)*100;var18:=100-abs(var17);var19:=if(var18<90,var18,100);vare:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;var1a:=if(vare>0,vare,0);var1b:=if(var14>=200 and var13>=150,15,if(var14<=-200 and var13<=-150,-15,var16))+60;var1c:=var1a>48 and var1b>60 and var19<100;买进:var1c and count(var1c,30)=1; 20210311
va:=if(close>ref(close,1),vol,-vol);obv:=sum(if(close=ref(close,1),0,va),0);maobv:=ma(obv,30);ref(obv,2)>ref(obv,1) and obv>ref(obv,1) and ref(maobv,1)>ref(obv,1);{已测试,复制可直接引用,如果回答满意,请记得给采纳}
公式如下:短线:=100-100*(hhv(high,10)-close)/(hhv(high,10)-llv(low,10));**:=100-100*(hhv(high,20)-close)/(hhv(high,20)-llv(low,20));长线:=100-100*(hhv(high,30)-close)/(hhv(high,30)-llv(low,30));xg:短线=0 and **=...