Detecting Objects on Charts
-
Hi everybody!
I found some interesting threats on how to detect objects on charts but in my example it doesn't work.
Here's what I want to achieve:
I've got a custom indicator (I don't know the source code) which draws horizontal lines on close of candles by specific rules. For creating a strategy I want to detect if 2 candles in a row will have those horizontal lines to get an alert or later create a buy/sell order.
I tried to adapt an earlier example from @fxDreema but so far it doesn't detect or count any object. What did I wrong?
Any help is apprechiated.
Here's my projet so far: fxdreema.com/shared/3xQmTBEjeCheers...
-
@gajus Are you sure the custom indocator is creating those lines are objects? Are they visible on the 'Object list' window? If not, the bot will not find them.
-
@l-andorrà Yes, they appear in the objects list. "Object" -> "Trendline, "Name" -> "Level 1 YYYY.MM.DD hh:mm". The full list of objects appears after clicking the "All"-Button.
-
@gajus You can possibly use the object by name (only using part of the name), will have to test to find out though.
-
@jstap Using "picked by name" instead of "picked in loop"? I'm also not sure if the "Property" settings are correct...
-
@gajus Try it mate, name means you can look for more defined objects.