N1:=5;N2:=10;
SHI:=REF(CLOSE,1);
SHOU:SMA(MAX(CLOSE-SHI,0),N1,1)/SMA(ABS(CLOSE-SHI),N1,1)*100;
TOU:SMA(MAX(CLOSE-SHI,0),N2,1)/SMA(ABS(CLOSE-SHI),N2,1)*100;
DRAWBAND(SHOU,RGB(255,150,0),TOU,RGB(0,130,50));
清仓:95,COLORGREEN;
减仓:90,COLORCYAN;
均线:45,COLORYELLOW;
警觉:80,COLORMAGENTA;
抄底:10,COLORRED;
DRAWTEXT(ISLASTBAR,清仓,'清仓');
DRAWTEXT(ISLASTBAR,减仓,'减仓');
DRAWTEXT(ISLASTBAR,警觉,'警觉');
14Q251031610-3U93.jpg
|