来自作者:制作股票 感谢为我加分会员!!谢谢!!为我加分就是我的动力!!以下代码适合各种背景!!增加AA\BB代码的大有好处!!比如把图中的背景颜色改成红黄蓝色也可以适合当前大背景!!! 大背景??看30分钟点石成金!指数的背景不可盲目!!不容乐观!!! 小树顶底---优化版 VAR5:=LLV(LOW,75); VAR6:=HHV(HIGH,75); VAR7:=(VAR6-VAR5)/100; VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1); VARA:=3*VAR8-2*SMA(VAR8,15,1); 主力线:100-(100-VARA),COLORYELLOW; IF(主力线<REF(主力线,1),主力线,DRAWNULL),COLORCYAN; 持强:HHV(IF(TIME<=100000,COUNT(CROSS(主力线,REF(主力线,1))+CROSS(REF(主力线,1),主力线),0),0),0),COLORWHITE,NODRAW; 连红:BARSCOUNT(主力线>REF(主力线,1) AND 主力线>100),COLORRED,NODRAW; AA:=IF(主力线<0,主力线,0); BB:=IF(主力线>100,主力线,100); DRAWBAND(BB,RGB(0,0,255),100,RGB(0,0,0)); DRAWBAND(0,RGB(0,0,255),AA,RGB(0,0,0)); DRAWICON((CROSS(主力线,REF(主力线,1)) AND 主力线<=100),主力线-3,1),DRAWABOVE; DRAWICON((CROSS(REF(主力线,1),主力线) AND 主力线<=100),主力线+1,2),DRAWABOVE; DRAWICON((CROSS(主力线,REF(主力线,1)) AND 主力线>100),100-2,1),DRAWABOVE; DRAWICON((CROSS(REF(主力线,1),主力线) AND 主力线>100),100+1,2),DRAWABOVE; 0,POINTDOT,COLORGREEN; 50,POINTDOT,COLORGRAY; 100,POINTDOT,COLORRED; |
|