Moving Average question
-
Good morning fellows, i have a doubt.
is possible to "detect" the direction of moving average to open order?
it can be simple but i'm a little newbie here, using the software 3 days now.
i guess everything is possible to do using fxdreema but idk how to do it.it has to "detect" in the close of the Candle [0] that is a reversal in the SMA and just open the order if its in a buy/sell zone (next to top or bottom of the price).
Example :

I think in use something "specific" to do it, but i guess it is possible using SMA 1 == Price Close [1] && SMA 1 == Price High [0] to buy and the reverse to sell.
If anybody have any information about how can i do it. please share!

-
using "==" in comparing prices, especially MA price and current price, is bad way, base your strategy on ">" or "<" conditions ...
when you will MA direction (if MA rise or fall) you can do this:MA[1] < MA[0] : MA rise on current candle
MA[1] > MA[0] : MA fall on current candlenotice, that current candle is not closed candle and can in any time change direction ... on history of chart you see only closed candles, not behavior from candle 0 ...
this is how you see history of chart, without candle 0:
MA[2] < MA[1] : MA rise on previous candle
MA[2] > MA[1] : MA fall on previous candle -
Somwehere in the past the picture looked like this: http://prntscr.com/dkdhqq If you were able to recognize at that time that the next candle will be green one with exactly this size and proportions, then you can become rich in no time

-
haha :P, not that way, i mean, in the picture i'm using M1, but it can be done in M5, when it really confirm a reversion. using SMA [1]. i guess it is possible, but it's so simple i cant think in a way to make it work :X
-
i Have this example >
it's working on M15, it looks a little with "zigzag" but, seriously, i am sure there is a way to do it, but man, i can't think in how to make it work :@. Mad haha
-
-
Then I guess I don't understand what you want to do
But if you want to compare 2 or 3 values... well, Condition block is mostly used for that. -
I am not sure what exactly you need because it is question if you exactly know what you need
... but can try this: https://fxdreema.com/shared/BWG3f4z1d ... 2 versions, you can run one or other with turn blocks on/off ... version 2 are blocks turned off
but I am not sure if it is working for you right because I have not tried ... time pressure
it was for this ... https://www.mql5.com/en/articles/1516
also change other parameters like MA period or TP SL for trades etcthis was my reply from PM
...