How can i compare/check the position of a BUY/SELL trade
-
I would like to compare/check the position of a BUY trade and compare it the position of a SELL trade... thanks in advance
-
Do you mean comparing their respective open price levels?
-
yes... i wouls like to know how to check the open price levels so as to find out which trade is higher/lower etc...
-
There are several way to do it. Assuming thate will only be one buy and one sell only, you can do this:
-
@l-andorrà lovely... thanks
-
@l-andorrà I've run these the above blocks in my project but i get an error on the variables when i compile the EA

-
@fxgjg You have to create the variables before you can use them in the blocks.
There's a tutorial of constants and variables, and also 1000 forum threads about them