close above or below MA
-
hello im using a moving average, not the one in the example, in which i compare the last close to the last value of the moving average. i find it weird that the value starts at 0 even when the last close is above or below. i wasnt sure so i put a comment. i also noticed that it would give a -1 when the last close was above the ma even when the comment said that close was in fact higher than the ma.

https://fxdreema.com/shared/ykcBYxIae
why would the value start at 0 and why would this be occurring would this have to do with rounding? a jpy pair?
EAs dont check the bar before starting? -
-
@purelife173 your shared project doesnt match to the picture. If you made changes in the shared, they dont update for other users - you must go back to the builder and create new shared link
I tested the shared one, and there is nothing wrong: MA is above candle close, and the variable gets -1
