{彩龙现身}
gspt:=(3*CLOSE+LOW+OPEN+HIGH)/6;
A:(20*gspt+19*REF(gspt,1)+18*REF(gspt,2)+17*REF(gspt,3)+16*REF(gspt,4)
+15*REF(gspt,5)+14*REF(gspt,6)+13*REF(gspt,7)+12*REF(gspt,8)+11*REF(gspt,9)
+10*REF(gspt,10)+9*REF(gspt,11)+8*REF(gspt,12)+7*REF(gspt,15)+6*REF(gspt,14)
+5*REF(gspt,13)+4*REF(gspt,16)+3*REF(gspt,17)
+2*REF(gspt,18)+REF(gspt,20))/210,COLORRED,LINETHICK2;
B:ma(A,6),COLORGREEN,LINETHICK2;
DRAWBAND(A,RGB(240,140,240),B,RGB(255,255,0));
趋势:EMA(C,50),LINETHICK2;
IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORRED,POINTDOT,LINETHICK8;
IF(趋势<REF (趋势,1),趋势,DRAWNULL),COLORFFD700,POINTDOT,LINETHICK8;