I'm running a EA on a 4 hours chart, for example, but want to get the value of a moving average on daily timeframe but in the time that the daily candle closed.
The same applies for a 5 minutes chart, for example. If I'm running the EA on a 5 Minutes chart and want to get the moving average value from the 15 minute chart but at the time that the last 15 minute closed...
Maybe I just can play with the shift parameter?
If I specify in the shift 1, and the time frame 15 minutes, then it will retrieve the value of the MA when the last candle closed at the 15 minutes?