input:m1(10,1,250,1),m2(20,1,250,1),m3(30,1,250,1),m4(60,1,250,1);
REFLINE: 0;
a:=(3*c+l+o+h)/6;
b:=wma(a,20);
m10:b-ma(b,m1);
m20:b-ma(b,m2);
m30:b-ma(b,m3);
m60:b-ma(b,m4);
{离场}
{10日线下行,30线上行穿20日线};
if ( (m10>0 and m20>0 and m30>0 and m10>m60 and hhv(m10,10)>m10) ) then
drawtext((ref(m20,1)>ref(m30,1) and ref(m20,0)<ref(m30,0) ),m30,'3-2离场',0),colorgreen;