NormalizeDouble info
Sometimes my signal not work if the moving average is ascending or descending ... it thought that the problem could depend on the misreading of the moving average with more or less decimal
after
I have to figure out if the moving average in the last 50 candles is always uphill
That is simple.
If price is above your moving average it has, and if price is below moving average it has not.
If you want to know that for 50 bars you can use
int index_highest_bar=iHighest(....
To get the price do
double price_high=iHigh(Symbol(),PERIOD_CURRENT,index_highest_bar);
Or you can substitute iLow and iHigh with your moving average of course.
Then you have the bar index number of the lowest and highest bars out of 50 last bars.
And then you can compare these min and max values to the same bars of your moving average and see if there was a crossover or not.
- docs.mql4.com
I think your problem is somewhere else in your code; NormalizeDouble is most likely not the solution.

if(NormalizeDouble(iMA(NULL, PERIOD_CURRENT, 120, 0, MODE_SMA, PRICE_CLOSE, 1+L) >= iMA(NULL, PERIOD_CURRENT, 120, 0, MODE_SMA, PRICE_CLOSE, 2+L),5))
{
//my condition
}
}