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

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?