Daily Opening line indicator

castravete

Newbie
Oct 7, 2024
5
0
2
38
Hello Enivid ,

I noticed on the forum that you previously developed an indicator for forum members that displays the opening price for the Day and Week. I’d like to ask if you could create a similar indicator, but one that shows the opening price of the H4 candle, specifically the H4 candle that opens at 12:00.

Thank you in advance for your help and support!
 

Attachments

  • Daily open line.mq5
    1.2 KB · Views: 1
  • Weekly open line.mq5
    1.5 KB · Views: 1

Enivid

Administrator
Staff member
Nov 30, 2008
19,491
1,592
144
Odesa
www.earnforex.com
Hello Enivid ,

I noticed on the forum that you previously developed an indicator for forum members that displays the opening price for the Day and Week. I’d like to ask if you could create a similar indicator, but one that shows the opening price of the H4 candle, specifically the H4 candle that opens at 12:00.

Thank you in advance for your help and support!
If you need the H4 open line for 12:00, you can just use the Daily open line setting its TimeShift parameter to 12. It's the same thing.
 

Alexandro

Trader
Jan 18, 2020
9
2
19
49
Hello guys.
Daily open line indicator
Is it possible to make the history is not displayed, but only the current day?
Or in the settings specify the number of days to display.
 

Attachments

  • EURUSDM15.jpg
    EURUSDM15.jpg
    125.7 KB · Views: 3

egg

Active Trader
Dec 26, 2012
4
0
37
You can fix that by change DRAW_LINE to DRAW_ARROW in the code.
Hi Enivid,
Could you please tell me how to draw line by using symbol in ObjectSet "formula"?
For example, below is objectset for line width --> ObjectSet(0, OBJPROP_WIDTH, 1);
And what I want to know is how to draw a line like below picture with objectset formula.
Thank you.

1743188492652.png
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,491
1,592
144
Odesa
www.earnforex.com
Hi Enivid,
Could you please tell me how to draw line by using symbol in ObjectSet "formula"?
For example, below is objectset for line width --> ObjectSet(0, OBJPROP_WIDTH, 1);
And what I want to know is how to draw a line like below picture with objectset formula.
Thank you.

View attachment 31874
I don't think you can draw a line like that using a single object. That looks like an indicator plot based on indicator buffer with the type set to DRAW_ARROWS and that uses a circle as an arrow code.
 

egg

Active Trader
Dec 26, 2012
4
0
37
I don't think you can draw a line like that using a single object. That looks like an indicator plot based on indicator buffer with the type set to DRAW_ARROWS and that uses a circle as an arrow code.
Yes, you are right. We can't draw line with symbol by using single object .
Therefore I tried to use line style.
Please find below the results.
File 1 mq4 Open by custom TF
File 2 ex4 Open by daily-weekly-monthly
Rgds.
 

Attachments

  • q-Opn_Line-allin1Custom.mq4
    13.5 KB · Views: 1
  • q-Opn_Line-allin1DayWeekMo.ex4
    17.4 KB · Views: 0