Open trade and TP by objects (trend line )
-
Hello my friends at fxdreema,
I'm stuck on a project where I use an indicator that creates objects on the chart, in fact I would like the EA to open positions:
buy: when the object starts with: "___UP_in"
sell: when the object starts with: "___DN_in"I would also like to place a tp for buy when the object has the description: TP1
I tried everything the problem is that these objects are created and once I place the EA on the chart it does not wait for a new object to be created and immediately opens a position of the passed objects. I can't place the right tp either. I'm going to share my project and unfortunately I can't share the indicator because it is paid.
If anyone could help me or guide me that would be great. Thanks in advance friends
-
So essentially the problem is that you want the bot to search for those objects AFTER it is running on the chart for the first time, right? What you can do is asking for that object to be in the current candle, ie, candle ID 0. That way, as soon as it appears, it will be found.
-
i dont found the option candle id 0 or candle id 1 for objects is that the problem
-
i tryed for each object > draw arrow but position is opened instantanly
https://fxdreema.com/shared/yFF2L5r3c -
@smille99 Sorry, I forgot you cannot select candle ID for objects directly. You can search for the closest arrow to the present candle by limiting the number of objects to 1 like this:
