Need Your Help For Simple AFL

#1
Hello! I need your help. Prompt to me please why this formula doesn't work? When switching a taymfreym in AmiBroker MACD color doesn't change?

Code:
_SECTION_BEGIN("MACD");
i=Interval(0);
if( i==3600 ) // Hourly
Plot( MACD(), _DEFAULT_NAME(), ParamColor("Histogram color", colorRed ), ParamStyle("Histogram style", styleHistogram, maskHistogram ) );
else
{
   Plot( MACD(), _DEFAULT_NAME(), ParamColor("Histogram color", colorGreen ), ParamStyle("Histogram style", styleHistogram, maskHistogram ) );
}
_SECTION_END();
 

Similar threads