Multiple Condition Trade
-
I want to have four consecutive conditions happed before a trade. I tried following the "Expert Advisor with 3 Moving Averages" setup, but that nor what I have set up now makes one trade.
On the "Buy" side I made the description pretty clear, but I want three candles above the moving average before a trade?
-
@daniel208forex Firstly I recommend you ti specify candle ID 1 on all operand of all 'Condition' blocks. Then I have a question. Are all those conditions supposed to happen at the same time or are some of them expected to happen before the others? Your current structure is programmed for the first option.
-
No they wouldn't happen all at once. It would happen over five candles. I did delete the "once per candle" block. I''m guessing that wasn't helping.
Here's my thoughts:
- the candle closing below the 200ema ensures that a new but trade doesn't open just because the candle closes above the 200ema.
- I want three confirming candle closes above the 200ema before a trade is ordered. Then opposite for sells
I've altered the setup a bit to show a little more of what I want. I know ill have to reorder the blocks. Instead of 1, 4, 10, 16 it will be 1, 2, 4, 3,.
What does specifying the candle ID help with??
-
@daniel208forex Candle ID 1 is the first closed candles before the current candle in formation. It is recommended to work with closed trades in order to avoid some weird results.
Try your new confirguration and let us know.
-
@l-andorrà I still don't get one trade on the strategy tester.
-
@daniel208forex Your fisrt block on top is looking for 3 or more OPEN trades to work. This is why no trades are open. You need those 3 initial trades. Did you mean LESS than 3 open trades maybe?
-
yes. (hand to face emoji)
-
Still nothing. I tried to use the sample https://fxdreema.com/demo/mt4-3ma, but every time I try to download it I get a message saying I can't download it as a basic user which I'm not.
If i try to build it on the main builder I'm having a hard time changing one of the things in the condition block, and the same with the "modify variable" block
Condition: Value - Numeric- BuyorSell
i don't know how to change it from a number to BuyorSell. I've right clicked it and typed it in but it doesn't changehttps://fxdreema.com/shared/GAnvf6ghb (I accidentally deleted the other project)
-
@daniel208forex Blocks 2 and 5 of your second project are requiring mutually incompatible conditions at the same time. Which one is the correct one?
-
@l-andorrà I got it. Each condition block needs a different candle ID and they need to be in descending order. Check it out.
Thanks for brainstorming on this with me.

-
@l-andorrà Understanding that, does the same reasoning with the high, low, closed as well?