How to use the AND block to connect 4 conditions
-
Hello, Please How can use the AND block to connect 4 conditions i.e 2 conditions for buy and 2 conditions for sell
-
AND blocks are NEVER necessary. You just need to connect the condition blocks in the correct order and will get the same result.
-
@l-andorrà please how ?
Can you please explain how i can link conditions for example if 9 ema cross above 50 ema and if 9 ema cross above 50 sma it should buy
thanks -
Just remove blocks 4 and 5. Connect blocks 2 and 3 to buy now and sell now respectively.
-
@l-andorrà
Can you please explain how i can link conditions with the AND block for example if 9 ema cross above 50 ema and if 9 ema cross above 50 sma it should buy
thanks
https://fxdreema.com/shared/0KAFCfCA -
@l-andorrà i found a solution but it keeps opening another position immediately after tp http://fxdreema.com/shared/2kTAlbwtd
-
And the problem will continue while you are using those AND blocks. Please NEVER use them. They are redundant.
-
AND block is difficult to work with as order of input executions become complicated
-
To me the AND block is good for things like a notification, for your normal trade tree though just put the blocks one after the other.
-
@sktsec Hello https://fxdreema.com/shared/4noxv4LQd Based on the above link the EA is supposed to open a buy trade when 9 EMA cross above 200 SMA and 9 EMA cross above 200 EMA, so how can i implement this condition. I'm sure it's possible
-
One condition needs to be < > and the other X> X<, this way a cross only has to happen once.
-
@codex3024
@jstap has given you the solution.Your trade logic is the simultaneous occurrence of 2 crossovers/above, that's what you have already got.
In general, as I said earlier, it seldom occured (both crossovers at the same time), or happened quite often (both being above). That was why you found your algo seemed not working!
-
@sktsec and also i found someone with the same problem and he didnt get any solution either
https://fxdreema.com/forum/topic/10245/how-to-create-two-conditions-for-1-trade
-
@codex3024
What is your point, really? -
@sktsec let me explain everything
- the EA is an only buy EA
- The first EA is to open a buy trade
- the Second EA is to close the buy trade, which is going to be attached on another window with the same pair.
- The problem is when you connect the conditions together the normal way, it doesn't work.
MY QUESTION IS HOW CAN I MAKE THIS POSSIBLE.
I've tried various block connections, its either it doesn't open a trade or it works and continuously open the same buy trade even after hitting my TP level
PLEASE I HOPE YOU UNDERSTAND ME