close trades with object not work!
-
Hello
why this EA not work !
https://fxdreema.com/shared/AobTV65Ub
it should close trades after touch horizontal lines on chart
Thanks -
I'm no expert on objects, but its not usually good to use the == sign when comparing price. The price rarely is exactly something - use the > and the < instead
-
Thanks for your answer
but i need do close when touch horizontal lines on the chart for example these tow line

How can i do this ?
Thanks -
why can't it be like
above upper line -> close
below lower line -> closein that case the trades will close also when the price is suddenly 0.0001 pips above the upper line - the current project would leave the trades open, because it is not exactly there (==)
-
ok how can i do above upper line -> close
below lower line -> close ?
because both horizontal line was open with hand !
and in condition block i can't defined which upeer and which lower !
can you help me for this?
thanks -
i use this as your help
https://fxdreema.com/shared/MYogpDiIb
that i think when i use price level 1 in first block and on chart first select overal line it is true but it is not work again
how can i do? -
This is the correct way of doing it .
I dont know why you have the same name for the two objects though , i usually create horizontal lines in the ea too , and adjust that how i want it .
And by refering to the same object it will now work
-
im using something like this
https://fxdreema.com/shared/cuHqx6epe
2 lines for buy trades and 2 for sell , if price pushes one of the lines it follows with price and the oppsite follows after that one maintaining 10 pips
-
Thanks so much for your complete help

but i must use it in order that set with hand and lines too
that mean only two line for all traders buy and sell and when trades gor up to upper line closes and when down to lower closes
how can i find 2 horizontal lines that hand created and use those on my EA ?
Thanks again -
-
and if you dont want the ea to create the objects you can delete the draw line part , and use high and low horizonal lines that you manually create on chart

