What am I doing wrong
-
Hi guys
I need to know what I'm doing wrong hereI need the purchase to be made when the candle crosses the maximum of the price marked in the rectangle

I leave you my project here
-
try to name the object on prefix. and for your condition, choose object on the chart and put the name of your object.
-
Do you really need the rectangle? Using variables instead would make it far easier.
-
You can get rectangle values like this: https://fxdreema.com/shared/yJf4kkjnc