VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2B:=SMA(VAR1B,9,1)+100;
VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4B:=SMA(VAR3B,3,1);
VAR5B:=SMA(VAR4B,3,1)+100;
VAR6B:=VAR5B-VAR2B;
趋势: MEMA(IF(VAR6B 45,VAR6B-45,0),3),COLOR00FFFF,LINETHICK0;
PARTLINE(趋势,(趋势 REF(趋势,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYER0;
趋势S:=filter(CROSS(REF(趋势,1),趋势),5);
趋势B:=filter(CROSS(趋势,REF(趋势,1)),5);
趋势C:=filter(趋势S OR 趋势B,3);
{九毛八股票公式指标网 全网优质指标下载平台www.9m8.cn}
drawbmp(趋势S AND 趋势C ,趋势*1.17,'小熊.bmp'),align1,valign0,LAYER3; {小图可不要}
drawbmp(趋势B AND 趋势C AND 趋势 20,趋势*2,'小牛.bmp'),align1,valign0,LAYER3; {小图可不要}
VERTLINE(趋势S AND 趋势C ,2),LAYER0,COLORFF9900;
VERTLINE(趋势B AND 趋势C AND 趋势 20,2),LAYER0,COLOR0099FF;
FILLRGN(-4.5,2,-4.5 2,RGB(0,60,0)),LAYER7;
BBI:=(2*c+H+L)/4;
B:=SMA((BBI-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43)),5,1)*100;
持股:MEMA(MEMA(B,2),3),COLOR44ffff,DOTLINE;;
PARTLINE(持股,持股 ref(持股,1),rgb(255,100,0)),LINETHICK3,LAYER0;
DRAWGBK(持股 ref(持股,1),STRIP(RGB(0,0,255),RGB(160,0,80),0)),LAYER0;