Draw line
-
How can I draw a line on the chart, if the price intersects with the line, a buy or sell order will be opened?
-
I want to draw a line from candle number 50 fifty to day forward,as in drawing 27200

So that when the price crosses up it gives a buy, and vice versa
I drew the line and it appears on the chart but it is not bought or sold.
How can I get him to buy and sell directly


-
@khalids222 Can you plase share your project to check it out?
-
Of course, I messed about a little. The buy orders worked, but the sale didn't open. I don't know why
https://fxdreema.com/shared/Aq5w8YZnd -
@khalids222 Your trend line is based on candle ID 0 and that is exactly what your condition blocks are looking for. This is why it doesn't work properly. Change the drawing line to candle ID 1. That should fix the issue.
-
@l-andorrà Unfortunately, no short position has been opened, after the candle change.
I don't know why the sell isn't working -
@khalids222 Of all the advisors that were made today, I noticed that the selling in them is not working.
It appears to be a general problem -
@khalids222 That is a very weird situation, because I cannot find any reason why it shouldn't work. Maybe you're right and it is a general issue.