通达信农夫播种指标公式
2020/6/3 18:38:36
ma10:=ma(c,10);
ma20:=ma(c,20);
ma62:=ma(c,62);
降:=hhvbars(zig(3, 19)>ref(zig(3,19),1),0);
升:=hhvbars(zig(3, 19)<ref(zig(3,19),1),0);
高:=hhv(h,降);
低:=llv(l,升);
a5:=c/高;
a6:=c/低;
a7:=if(降>0,REVERSE(intpart(a5/0.3)),0);
a8:=if(升>0,intpart(a6/0.3),0);
b:sum(a7+a8,5)/5;
b5:ema(b,5);
b10:ema(b,10);
b20:ema(b,20);
b30:ema(b,30);
b62:ema(b,62);
b133:ema(b,133);
开播:=(CROSS(b,b5) and b133>1.6 and ma10>=ma20 and ma62>ref(ma62,1)) or (CROSS(b30,b133) and b133<-0.5 and ma10>ma20);
DRAWTEXT(升=3 and ma10>ma20,abs(b10),'▲'),COLORRED;
DRAWTEXT(升=3 and ma10>ma20,abs(b),'播'),COLORRED;
DRAWTEXT(开播,abs(b),'开播'),COLORRED;
DRAWTEXT(降=3,abs(b10),'◆'),COLORYELLOW;
DRAWTEXT(降=3,abs(b),'收'),COLORYELLOW;
投股票 网 w ww.tou18.cn
股市公式下载推荐