iMACD not working or corresponding to screen indicator

 

I use this to open signal buffer

     if((m_handle_macd=iMACD(NULL,PERIOD_M1,12,26,2,PRICE_MEDIAN))==INVALID_HANDLE)   // changed from 0 to input trend

I use minute chart and same parameters for the macd as the code.  I watch the MACD go below 0 on screen but code still has 4's 5's etc.... it took 20 minutes just for it to show negative. Any ideas ?  

A strategy for competition was working well last Monday, Tues, Wed and not to say the problem wasn't there but I went from making 4k to losing 8k and I believe this is why.

Thanks in advance. 

 

I guess it can be attributed that an indicator is constantly drawing on the screen, but the data we have access is limited to the Period requested (which I had to the current chart) which was hourly. If anyone can confirm that would be great.