Drawing a line Each Day
-
I am trying to draw a line when the market opens and close when the market closes. And open again once the market is open and so on......
Sell: When crossing above the line and 0.01 lot on each Bull candle close. Close all sell orders when crossing below the line with a bear candle closed.
Buy: When crossing below the line and 0.01 lot on each Bear candle closed. Close all buy orders when crossing above the line with a bull candle closed.

-
Can you please share the link to your project?
-
@l-andorrà Thanks for getting back to me however, I have adjusted my strategy please see below link https://fxdreema.com/shared/qFLg8Bc7e

-
Do you really need those lines to be visible? Using a variable with that price value would be far easier and more effective.
-
@l-andorrà Thanks so much for getting back to me
Yes I want to see the line just like MA.Please note: MA moves but I wan a fixed line without moving. Else I would have use a Simple MA.
Thanks a so sir
-
@l-andorrà I want to make another EA with strategy below:
-
Draw a line on the last candle of the day close.
-
Buy: If cross above line (closed candle) buy and SL when cross below the line (closed candle).
-
Sell: If cross below the line (closed candle) sell and SL when cross above the line (closed candle).
I hope this will be very profitable.
Thank you in advanced -
-
@wadz91 Ok. We'll do it step by step. This is the first thing to do:

You need to select No in the second display menu and choose a name for that line. We'll have to identify it later so we'll need it,. Additionally, you need to select a horizontal line option instead of a trend line.
-
@l-andorrà Please see the attached screenshot. In the strategy tester, I can see a horizontal line appears per day but no order is placed.

-
@wadz91 That is because this was the first step. In the second you need to identify that line through 'For each object blocks immediately before blocks 33 and 34. Like this:

-
@l-andorrà Please see the link https://fxdreema.com/shared/Z1j2zvz0b
Please check and advice

-
Blocks 16 and 38 should not be connected. You need two separate structures and not one like know.
-
Please help to do the buy orders and I will figure sell. Thanks in advance
-
@wadz91 Did you try what I suggested in my previous post?
-
@l-andorrà Yes just disconnected and not what i was looking for.
-
Could you please share the link to the latest version?