上线:=SMA(C,3.5,1);
下线:=SMA(C,6.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
STICKLINE(上线>下线 , 上线,下线 ,2, 0),COLORRED,LINETHICK3;
STICKLINE(下线>上线,上线,下线,2,0),COLORYELLOW,LINETHICK3;
DRAWTEXT( crOSS(上线,下线) AND (CLOSE/OPEN>1.04),LOW *0.95,'买' ),COLOR00FF00;
DRAWTEXT(CROSS(下线1,上线1),H*1.10,'清仓'),COLORYELLOW;
bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
{- }
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),LINETHICK2;
LC:=REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
DRAWTEXT( CROSS(82,RSI) , HIGH*1.0,'减仓') ,COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作:MA(A7,5),LINETHICK2;
操作1:MA(A7,5)*1.03,LINETHICK2;
操作2:MA(A7,5)*0.97,LINETHICK2;
VAR1:=LLV(A7,21);
VAR2:=HHV(A7,21);
趋势:EMA(SLOPE(C,21)*20+C,90);
买卖差:=操作-趋势;
{STICKLINE(买卖差>=0,(操作-买卖差*0.2),(操作-买卖差*0.35),1,0) ,COLORF00FF0;
STICKLINE(买卖差>=0,(操作-买卖差*0.4),(操作-买卖差*0.45),2,0) ,COLORF00FF0;
STICKLINE(买卖差>=0,(操作-买卖差*0.6),(操作-买卖差*0.55),3,0) ,COLORF00FF0;}
STICKLINE(买卖差>=0,(操作-买卖差*0.8),(操作-买卖差*0.75),8,0) ,COLORF00FF0;
STICKLINE(买卖差<0,(趋势+买卖差*0.05),(趋势+买卖差*0.15),8,0) ,COLOR66FF11;
{STICKLINE(买卖差<0,(趋势+买卖差*0.2),(趋势+买卖差*0.35),1,0) ,COLOR66FF00;
STICKLINE(买卖差<0,(趋势+买卖差*0.4),(趋势+买卖差*0.45),1,0) ,COLOR66FF00;
STICKLINE(买卖差<0,(趋势+买卖差*0.6),(趋势+买卖差*0.55),3,0) ,COLOR66FF00;
STICKLINE(买卖差<0,(趋势+买卖差*0.8),(趋势+买卖差*0.75),2,0) ,COLOR66FF00;};