How do I make sure that the last three trades are buy or sell
-
How do I make sure that the last three trades are buy or sell
Meaning each time, three buy trades, then three sell trades, and so on, must be opened in the same order, regardless of the condition
BUY= 50
BUY=40
BUY=30
SELL=20
SEL=10
SELL=0 -
hello
Could you ask your question in a little more detail? -
@ladydolares
Three buy trades and then three sell trades simply.
Each time three buy trades are opened, then three sell trades, then three buy trades, then three sell trades, and so on -
@khalids222 There is a few ways, like THIS is how I would do it haven't tested but should work, you could also use a combination of the check trades count blue blocks.
-
@jstap First of all, thank you for your efforts, but unfortunately it did not work
-
@khalids222 Try THIS maybe putting all in a comment block to see what is happening, there was a couple of issues I corrected.
-
@jstap
Thank you, but how will it work in the beginning if the buying and selling are less than three deals
https://fxdreema.com/shared/sAhEk79id -
@khalids222 Sorry I thought about this earlier, would think if you set the modify variables under your first sell then the rest will take over from there. The first buy/sell can be opened by any set of conditions.

-
@jstap CAN SEND TO ME HOW SET THE MODIFY VARIABLES ?
-
@khalids222 How do you mean? Right click inside the modify block to add variable/constant, created in the top left.
-
@jstap I mean how does it start with less than 3
-
@khalids222 On init tab, reset variable to chosen number, use pass above, this makes the number what you want on EA start, you can always add a button to do so when wanted.
-
@jstap thank you so much