MA customized indicator
-
Hello Guys.
I am using FXdreema for a while to make EA but not Indicators. I am new to mql5 and I am trying something but it doesn't work.
I want to make a simple MA indicator like this.
Moving Average of the maximum price between PRICE_OPEN and PRICE_CLOSE of each candle (If the candle is bearish or bullish, it doesn't matter)
So for each candle, it will select the maximum between the PRICE_OPEN and the PRICE_CLOSE and then make the Moving average based of the maximum value.
Formula = MA (Max( PRICE_OPEN, PRICE_CLOSE))
I am struggling with this but can't find a solution. I will appreciate your help
Thank you
-
Fxdreema is a builder of EA's or scripts, not for develop indicators
-
@caaz The MA period is the number of candles back, median prise is the middle of hi/lo, so your answer is almost in the standard MA conditions, this does differ slightly from the open close but unlikely enough to matter, you could get the mid price of open/close but spread will no doubt beet this. Hope this helps
-
@caaz Uriel 0 is right. If you create an EA that behaves like indicator you won't be able to use another EA on the same chart your 'indicator' is running.