c5:=cross(c,ma(c,5));c10:=cross(c,ma(c,10));c30:=cross(c,ma(c,30));c60:=cross(c,ma(c,60));c120:=cross(c,ma(c,120));c250:=cross(c,ma(c,250));a:=c5+c10+c30+c60+c120+c250>=5;x:a and count(a,n)>=2;n为变量,一个月内则缺省设为30,不过个人感觉设为120效果更好。 20210311
作为指标用以下代码:m1:ma(c,12);m2:ma(c,25);m3:ma(c,37);m4:ma(c,50);m5:ma(c,75);m6:ma(c,100);mmax:=max(max(max(max(max(m1,m2),m3),m4),m5),m6);mini:=min(min(min(min(min(m1,m2),m3),m4),m5),m6);tj:=c>mmax and r...
大致为你制作了一个,有点粗糙,但基本意思还都在。你试试看m5:=ma(c,5);m10:=ma(c,10);m20:=ma(c,20);t:=cross(c,m5)and cross(c,m10)and cross(c,m20);t1:=count(t,20)=1;t2:=m5>m10 and m10>m20;xg:filter(t1 and l<=m10*1.004 and l...
{参数设置}{n 1-100-4}{s 1-100-2}{m 1-100-20}a:=if(close>sar(n,s,m),sar(n,s,m),draw**);b:=if(close<sar(n,s,m),sar(n,s,m),draw**);xg:close>sar(n,s,m) and ref(close,1)<ref((sar(n,s,m)),1) and c&g...
last(max(ma(c,20),ma(c,30),ma(c,60),ma(c,120))/min(ma(c,20),ma(c,30),ma(c,60),ma(c,120))<1.01)>3 and barpos>120;这个1.01代表四线最大差距1%,具体要多少自己改。 哦,我用的是大智慧新一代的。
var1:=(hhv(high,36)-close)/(hhv(high,36)-llv(low,36))*100;机空线:=sma(var1,3,1) ;var2:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;机多线:=sma(var2,5,1)-8 ;barslast(cross(机空线,机多线))>30 and ref(every(机...