//#@Fname=вй╫ПмЁ╪ф
//#@comment=
//#@control=
//#@FuncType=
//#@style=нчв╞©ьел:Line2,aр╩╟Ц╪ш╦Я(╩р),1,0,1,5,16777215;©╙й╪©ьел:Line2,aр╩╟Ц╪ш╦Я(╩р),1,0,1,5,65535;спв╞©ьел:Line2,aр╩╟Ц╪ш╦Я(╩р),1,0,1,5,255;╦ъ╤х©ьел:Line2,aр╩╟Ц╪ш╦Я(╩р),1,0,1,5,16711935;жВа╕ЁЖ╩У:Line2,aр╩╟Ц╪ш╦Я(╩р),1,0,1,5,65280;
//#@availperiod=2147430400
//#@param=
//#@isDrawCurve=1
//#@Fdesc=вй╫П╫ЬЁЖмЁ╪ф
//#@defaultperiod=16384
//#@coord=D
//#@ordinate=0,0.000000;0,0.000000;0,0.000000;0,0.000000;0,0.000000;0;0,0.000000
//#@@FUNCSPEC@=source
VAR1:=EMA(EMA(CLOSE,9),9);
©ьел:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(©ьел 0,©ьел,0,8,0),colorwhite;
A10:=CROSS(©ьел,0);
нчв╞©ьел:IF(©ьел 0,©ьел,0),colorwhite,LINETHICK;
©╙й╪©ьел:IF(A10,5,0),LINETHICK1,coloryellow;
STICKLINE(©ьел REF(©ьел,1) AND ©ьел 0,©ьел,0,8,0),colorred;
спв╞©ьел:IF(©ьел REF(©ьел,1) AND ©ьел 0,©ьел,0),colorred,LINETHICK;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2 50 AND COST(85) CLOSE AND ©ьел 0,©ьел,0,8,0),COLORFF00FF;
╦ъ╤х©ьел:IF(VAR2 50 AND COST(85) CLOSE AND ©ьел 0,©ьел,0),COLORFF00FF,LINETHICK;
STICKLINE(©ьел REF(©ьел,1) AND ©ьел 0,©ьел,0,8,0),COLOR00FF00;
жВа╕ЁЖ╩У:IF(©ьел REF(©ьел,1) AND ©ьел 0,©ьел,0),COLOR00FF00,LINETHICK;