About Moving Average levels !!
-
hello.how can I add some levels on an moving average. (without envelopes!) thanks
-
You can try this:

A positive number means above and a negative one below.
-
for example I want to add 355 period and 1420 level. I have to write +1420 or -1420 on adjust right ?
-
@l-andorrà When the candle closure touches the 1420 level of the 355 moving average, I want the position to open. How can I do that ???
-
That 355 period value is to be inserted on the 'MA Period' box. That 1420 level is to be inserted in the place shown at my screenshot. A positive value will mean a parallel line above the current MA value and a negative one below it.
What you are looking for is:

-
unfortunately this strategy does not work. anything not happen
-
Dont use + sign, it adds a raw value. EURUSD is rarely at 1420.0000 (it is now at 1.10622).
I think those MA "levels" are percent deviations.
Try this in the adjust field:
*1.01420 -
@gauss said in About Moving Average levels !!:
for example I want to add 355 period and 1420 level. I have to write +1420 or -1420 on adjust right ?
What do you mean by +/- 1420 level? Is it the distance of MA 1420 from current price or close price of last candle?

In case it's the close price of previous candle I'd do it like that.
-
@trader-philipps I assume he means the level setting in the moving average indicator. Just like the envelopes indicator but for some reason that doesnt do for him lol


-
@roar But than the logic is nearly the same. Just use a constant of 1420 for MA_Distance variable instead of the formular block, right?
-
@trader-philipps Yeah its more or less the same. I'm not sure about the units here, what does this 1420 even refer to...
Is it %-deviation (1.420%) or some pip fraction? -
@roar If it's the level, I think it's a pip or point fraction
-
I used envelopes for EURUSD but normally envelopes's levels change for all instrüments
-
@gauss You mean that same envelopes indicator looks different for EURUSD and BTCUSD, for example? Thats because the deviation is a percent, not pips. Not sure about these MA units, though.

-
@roar that is true.but I did not still find a way to add a level on a moving average...
-
@gauss The level is just a visual thing, it is not mentioned in the code:
https://docs.mql4.com/indicators/imaSo you can't recreate it visually (other than with envelopes), you can only do the calculation for the EA.
-
@roar Oh man, sometimes it's really hard to giess what exact issue the users here have
-
@trader-philipps hahaha
So true, but also very understandable - can't think like a coder without any experience -