rectangle to be extended by automatically or default setting.Is it impossible?

 

 
gilmt4:

rectangle to be extended by automatically or default setting.Is it impossible?

Create an Indicator that simply ObjectSet()s the right end to Time[0] each time there is new bar.
 
RaptorUK:
Create an Indicator that simply ObjectSet()s the right end to Time[0] each time there is new bar.

Hi,RaptorUK

Thank you for reply.

I`ve never create any indicators.

Could you enlarge on that a little?

 
gilmt4:

Hi,RaptorUK

Thank you for reply.

I`ve never create any indicators.

Could you enlarge on that a little?

If you don't know how then you can learn, the Book is still very relevant despite recent mql4 changes . . . you can find many examples in the Codebase and of course if you don't have time or the inclination to learn you can always get the code written for you: MT4 and MT5 coding
 
RaptorUK: Create an Indicator that simply ObjectSet()s the right end to Time[0] each time there is new bar.
Or give the rectangle a time into the future (dttime) 0x6FFFFFFF; // Jul 2029
Reason: