How can I get the price for a buy or a sell of my current trade
-
I am trying to reduce my loses comparing the price that was bought with EMA but I don't know how get the value or the arrow that draw the block buy or sell. Thanks
-
You are talking about the Open Price of the trades? You don't get this one from the objects, you get this from trades. I can say that you probably need to use "For each Trade" with some other pink blocks, but it depends. I mean, "For each Trade" is the block that can loop for each existing trade and select it (so you can get its values), but it's important which trades do you want to select, in what order, how many of them...
-
@fxDreema said in How can I get the price for a buy or a sell of my current trade:
t's important which trades do you w
I am having one trade at the time. I am using a kertnel chanel for a scalping strategy. when you put order to buy or sell, the metatrader plataform draw some arrow to visualize the order. I am crating a line on each arrow and it stay there until other condition will close my trade and it will be erased. Now when the EMA line of Kertnel chanel crosses above or below the line that i put on the arrow trade, it close my trade
. I am spanish spaker so I upload a picture because you can get better idea what I trying to do.Thanks anyway -
maybe this ?

-
@rrpons But if I'm not wrong, only the Tester prints those arrows. When I create a trade in my MT4, I only see horizontal line. But nevermind, you don't need such object at all. When the trade is there, its Open Price is known and can be read.
I think you can do this with "For each Trade" and few other blocks where you can check the values and finally close the trade with the pink "close trade". But please, take a little time and try to understand how these blocks work: https://fxdreema.com/examples#Loop-(For each...)
@Pipperoni, be careful with the first 2 parameters in those "Draw..." blocks. Only when A is No and B is Yes the name is a Name and not a Prefix.
Also, when you compare prices, never use that == sign. There is very little chance to see 2 prices exactly the same. You are measuring distance, but it's similar, you still have 2 price values compared with ==.