Time of Day Indicator?

 

Could someone help with writing an indicator that would highlight a certain bar on a chart, for example if I wanted the 1500 bar to be a blue bar, etc....

I would really appreciate any help,

Thank you

 

Would you like it to highlight the same bar all the time,

or if time advances, move the highlight with time?

 
TuTBaluT wrote >>

Would you like it to highlight the same bar all the time,

or if time advances, move the highlight with time?

I would like to highlight the same bar all the time, i.e. 1700 bar with a color.

 

I still don't get it.

If let's say the 1700th bar is 1.1.2000 7:00 in a M1 chart,

and it will be highlighted, then after a minute it will become the 1701th bar.

Do you then want to highlight the 7:01 bar, or still leave the 7:00 bar highlighted?

 
TuTBaluT wrote >>

I still don't get it.

If let's say the 1700th bar is 1.1.2000 7:00 in a M1 chart,

and it will be highlighted, then after a minute it will become the 1701th bar.

Do you then want to highlight the 7:01 bar, or still leave the 7:00 bar highlighted?

I am looking at a 1h bar chart and all the bars are set to green.

On that chart I would like to place an indicator that would highlight whatever bar I choose and color that bar, for instance, red. Then every new trading day the same bar would be highlighted.

You had it right in your reply above that I want the bar to stay highlighted.

 

Well, then you don't need an indicator.

Indicators change as the chart progresses.

If you want the same bar to be highlighted, this means

you need something to happen only once and not change

if the chart progresses.

You need a script for that.

I'll try to cook something up for you, as it is a simple script.

 
Try this.
Files:
 
How do i know an under sold market.
 
TuTBaluT wrote >>
Try this.

Tried it and did not work for me.

I need the 07:00 (MetaTrader time) bar highlighted and every time that bar appears I would like it highlighted, even looking back in the chart I would like to see it highlighted.

Your code just highlighted it once and that was it, but I could not get it to recognize the 07:00 bar.

I really appreciate your trying to help,

Thank you

Reason: