@fxdreema-8 You can do this in condition blocks, candle ID1 on 4H settings is the previous candle, the MA you want to reference with 5M in settings will do this.
@fxdreema-8 Technically yes, you can. But you need to be very careful with the variables and externall calls from that code. Unless you are a programmer, I don't recommend to do it.