t1:=ABS(MA(CLOSE,9)-MA(CLOSE,18));
t2:=COS(MA(CLOSE,9)-MA(CLOSE,18));
t3:=t1/t2;
t4:=ABS(MA(CLOSE,8)-MA(CLOSE,16));
t5:=COS(MA(CLOSE,8)-MA(CLOSE,16));
t6:=t4/t5;
t7:=ABS(MA(CLOSE,7)-MA(CLOSE,14));
t8:=COS(MA(CLOSE,7)-MA(CLOSE,14));
t9:=t7/t8;
t10:=ABS(MA(CLOSE,6)-MA(CLOSE,12));
t11:=COS(MA(CLOSE,6)-MA(CLOSE,12));
t12:=t10/t11;
t13:=ABS(MA(CLOSE,5)-MA(CLOSE,10));
t14:=COS(MA(CLOSE,5)-MA(CLOSE,10));
t15:=t13/t14;
tt0:=SIN(COS(MAX(t3,t6,t9,t12,t15))),coloryello;
tt1:=SIN(COS(MIN(t3,t6,t9,t12,t15))),colorwhite;
快乐炒股0:ABS(tt0-tt1),coloryello;
快乐炒股1:-ABS(tt0-tt1),colorwhite;
DRAWTEXT(MA(CLOSE,5)<0.98*MA(CLOSE,10) *MA(CLOSE,10) AND ABS(快乐炒股0-快乐炒股1)<0.001,0,'b'),colorred;