DRAWGBK(CLOSE 0,RGB(0,0,0),RGB(0,50,50),0,8,0);
SAR1:=SAR(5,2,1);
DRAWNUMBER(ISLASTBAR,SAR1,SAR1),COLOR80FFFF;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
短线趋势:QSA1,COLOR0000FF,LINETHICK2;
IF(C SAR1 AND SAR1 0,QSA1,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(C SAR1 AND SAR1 0,QSA1,DRAWNULL),COLOR40FF00,LINETHICK2;
QS1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
KJC:=QS1*0.93;
MI1:=C-REF(C,1);
MI:=IF(PERIOD-6 =0 AND PERIOD-6 4,MI1,0);
AMI:=SMA(MI,3,1);
F:=MA(REF(AMI,1),10)-MA(REF(AMI,1),20);
D:=SMA(F,10,1);
压力支持位1:=MA(CLOSE,26);{压力支撑线}
中期趋势:MA(CLOSE,28),COLORFF00FF,LINETHICK2;
IF(C =压力支持位1 AND 压力支持位1 0,中期趋势,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(C 压力支持位1 AND 压力支持位1 0,中期趋势,DRAWNULL),COLOR00FFFF,LINETHICK2;
{www.9m8.cn 九毛八公式指标网}
DRAWTEXT(CROSS(KJC,C) AND C KJC,L*0.999,'空单减仓'),COLORYELLOW;
STICKLINE(C SAR1 AND SAR1 0,H,L,0,0),COLOR5555FF;{红色K}
STICKLINE(C SAR1 AND SAR1 0,C,O,3,0),COLOR0000AA;
STICKLINE(C SAR1 AND SAR1 0,C,O,2.5,0),COLOR0000CC;
STICKLINE(C SAR1 AND SAR1 0,C,O,2,0),COLOR0000EE;
STICKLINE(C SAR1 AND SAR1 0,C,O,1,0),COLOR5555FF;
STICKLINE(C SAR1 AND SAR1 0,C,O,0,0),COLOR8080FF;
STICKLINE(C SAR1,H,L,0,0),COLORFFFF15;{绿色K}
STICKLINE(C SAR1,C,O,3,0),COLOR515100;
STICKLINE(C SAR1,C,O,2,0),COLOR919100;
STICKLINE(C SAR1,C,O,1,0),COLORCACA00;
STICKLINE(C SAR1,C,O,0.5,0),COLORFFFF15;
STICKLINE(C SAR1,C,O,00,0),COLORFFFFAC;