{总有赚头 未来函数}
b:=zig(3,50/5)*100,colorwhite; g:=ma(b,2),coloryellow; 买:cross(b,g)*1; var1:=if(date>=1990601,0,1); var2:=troughbars(3,15,1)<10; var3:=peakbars(3,15,1)<10; var4:=if(var2=1,50,0); var5:=if(var3=1,50,0); 底部:= if(var4=50,50,0); 头部:= if(var5=50,100,0); a:if( 底部>ref(底部,1),1,0); aa:if(头部>ref(头部,1),1,0); drawtext(a=50,100,'买' ),color00ff00; drawtext(aa=50,50,'卖'),colorred; 说明:紫线出现后,黄线出现是买入保险.总有赚头. |
