3 difference Moving average combination
-
Hello Dreemas
If i have 3 MA: 2, 5 and 10 moving and the need to cross eachothers. If i make all possible combinations that means i need 27 combination. does that means i need 52 conditions or are there a simple way to do it.
-
Well i don't think so @William-1 . Could you share the detail sop to open the buy/sell trades?
-
@william-1 Are all combinations possible or just some of them? There is a simple way to do it via arrays, but then you will need custom code. There are no blocks in fxDreema doing that, I'm afraid.
-
The strategy is followed:
There are 4 moving average:
- 2 (black)
- 5 (yellow)
- 10 (dark blue)
- 20 (Light green)

When MA 2 (black) cross MA 10 (dark blue) its prepare to give a signal. After that the MA 2 needs to cross the candle price too (total candle).
When its cross its need to know the MA’s combination. In this situation its (highest to lowest):
1 = MA 2
2= MA 10
3 = MA 5
4 = MA 20. This means sell.
If :
1= MA 10
2 = MA 2
3 = MA 5
4 = MA 20
Means buy for exampleWhen MA 2 cross MA 10 its buys or sell one time. Its repeat when its cross another.
-
@l-andorrà Is it possible have all combination and then choose combination A to buy or B to sell or C do nothing?
-
{
When its cross its need to know the MA’s combination. In this situation its (highest to lowest):
1 = MA 2
2= MA 10
3 = MA 5
4 = MA 20. This means sell.
If :
1= MA 10
2 = MA 2
3 = MA 5
4 = MA 20
Means buy for exampleWhen MA 2 cross MA 10 its buys or sell one time. Its repeat when its cross another.
}When i read this, does it mean the buy@sell signal valid when ma2 crosses above@below ma10?
The condition for buy is when 10>2>5?
And the condition for sell is when 2>10>5?What is the condition for ma20 then?
Is it when the candle close above@below ma20? -
@william-1 I think the simple way of looking at this is something like
If
MA1 is > MA2
and
MA2 is > MA3
and
MA4 X> MA1 (used as the trigger) BUY.Or any combination of this logic, I may be wrong but a cross happens once and after the MAs are either above or below.
-
@biztet Let me put it this way step by step:
Step 1
When MA 2 crossing MA 10 (above ) it means its prepare a new trade.Step 2
After that the MA 2 need to cross the candle (upper wick, body and under wick) the second crossing is a confirm.Step 3
In this step it analyse the MA’s. In this case
MA 2 (blue)
MA 10 (yellow)
MA 5 (red)
MA 20 (aqua)
This combination means Buy.If its a reverse
MA 20
MA 5
MA 10
MA 2
Its sells.After profit or lost it wont buy/sell. Until MA 2 cross Ma 10. Thats why its said do nothing.

There are four MA so there are around 20 possibilities. So i want to make 1 first.The cross over with MA 5 and 20 does nothing they are for the possibilities.
-
@jstap I shall try this way too. But how do i trade only one time after each crossover.
-
@william-1 You could count the candles from a cross and only allow trade when numbers are within the desired range.