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

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

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