RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
操作线:SMA(RSV1,5,1),COLORRED,LINETHICK2;
趋势线:SMA(操作线,10,1),COLORFFCC66,LINETHICK2;
超卖:18,COLORWHITE;
超买:85,COLORLIBLUE;
买卖差:=操作线-趋势线;
主力加仓:STICKLINE(操作线>趋势线,操作线,趋势线,2,0),COLORRED;
主力减仓:STICKLINE(操作线<(REF(操作线*0.98,1)),操作线,趋势线,2,0),COLORYELLOW;
主力出货:STICKLINE(操作线<趋势线,操作线,趋势线,2,0),COLORGREEN;
弱势反弹:STICKLINE(操作线<趋势线 AND 操作线>(REF(操作线*0.92,1)),操作线,趋势线,2,0),COLORWHITE;
DRAWTEXT(CROSS(趋势线,操作线) AND 操作线>90,操作线* 1.03,'↓卖'),COLOR00FF00;
DRAWTEXT(CROSS(操作线,趋势线) AND 趋势线,趋势线* 1.08,'↑买'),COLORYELLOW;
DRAWTEXT(CROSS(操作线,18) AND 趋势线>操作线,20,'建仓'),COLORWHITE,LINETHICK2;
趋势角度:ATAN((操作线/趋势线)*100)*180/3.1416;