Download MetaTrader 5

Price of hline by color or name or fix stop loss in ea.

To add comments, please log in or register
Pipsik
15
Pipsik  
How to retrieve the price of a horizontal line named according to the schema: prefix + number + "SL". But the number and price will change and I do not know what values. Example: The first line is called "#3 SL", the next "#9 SL", the third is "# 15 SL". How to take the price of each of these lines? I note that I have other lines with "#" in the graph, but there are not more than one of the "SL" at one time. I can also set individual color for these lines. So can i identify the price by line color? I'm trying to fix a stop loss in this ea https://www.mql5.com/en/code/10296 Sometimes trailig stop don't active. And stop loss don't works to! It only works when the price goes in the direction of the order. Sorry for my english. 
Marco vd Heijden
Moderator
5537
Marco vd Heijden  

You can use the ticket number then you can always use

ObjectFind()
in a loop with known order tickets.
Pipsik
15
Pipsik  
Marco vd Heijden:

You can use the ticket number then you can always use

in a loop with known order tickets.

How to known order tickets?
To add comments, please log in or register