Draw line
-
Hello:
Is there any condition to delete "draw line" at a certain time?
For example: I want the line to disappear from the chart at 13:00 PM.
Regards -
Hello my friend,
There are different methods. You can use the "Once a day" block, set the time inside this block, and then use the "Delete Object" block afterward.
Important Note: When drawing the line, make sure the drawn line has a "name" or a "prefix".For more information, follow my free channel on Telegram.
-
OK thanks
-
Hello:
The line was not removed from the chart.
Any suggestions?
https://fxdreema.com/shared/oVo8k2Bve
Regards -
In deinit delete the line:

-
Thank you for your response.
Should the project be like this?

-
Yes looks good, as long as you have used the name of your line (is easier to use names)
-
Thank you,
-
Hello:
It's not working. The lines remain on the chart.
It seems to be disregarding the "hourly filter."
Could it be a MetaTrader cache issue?
Regards -
@Manuel-M in your shared project you are drawing the line every tick if there is no position.
It will then get deleted at 13:00 and on the next and susequent ticks get drawn again.
Is that really what you want to do? -
Hello:
The project is an example.
The EA would also stop working at 13:00 (with a different time filter), which I forgot to include in the example.
I was able to solve the problem (with a boolean constant). Although it's not how I want it.
Thanks. -
Add your latest shared project link
-
Hello:
In this example, I think the logic is easier to understand.
I'd like the line to appear "or not" on the graph, but I have to do it with false-true, and it's annoying every day.
https://fxdreema.com/shared/VjPDdMT7e -
I forgot to select the input parameter

-
on chart only works when you do something on your chart, I think you want this on tick, if you had for example one per day at a specific time on tick delete then at a time you want the object would be deleted
-
I've tried these changes. But they don't work.
https://fxdreema.com/shared/szMzSPKhb -
Go back to basics and do this:

-
Thanks, it worked.
The line should appear on the graph again. Specifically, the next day and during the project schedule.
Are any additional blocks necessary?
Best regards -
So now you know how it works, apply it to your needs and build up your EA.
Good luck. -
Thank you