Obtaining 200 MA of OBV indicator
-
Hi there,
What options do I have to use the 200 MA of the OBV (or more generally: of any indicator) in fxDreema? Earlier on, I computed the simple moving average of CCI indicator for relatively low periods using the Modify Variables and Formula blocks but I would really want to avoid doing that for 200. There must be a way to achieve this!
I was thinking perhaps the Custom MQL code block? Although I am a bit uncertain as to what snippet I need to input there exactly.
Thanks a lot in advance for your help.

-
@leventecsibi here:
https://fxdreema.com/shared/yZovgxaaeIt calculates the average for close prices, you can change the indicator to your liking, just remember to set the candle id and adjust like I did.
This is not the best solution, though, because on every new bar, the EA must calculate all 200 values again and again. If you want to get more efficient, learn arrays.
-
Duno if that is array, but i am using in my current project a block that would do the math for you, which would come after the blocks roar gave you.
https://fxdreema.com/shared/3OAyHklYb
Block 1 is mine, block 2 is four you. Just check that the variables names are the same that you have set.