How to code a solid rectangle ?

Questions about MultiCharts and user contributed studies.
Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

How to code a solid rectangle ?

Postby Automeq » 31 Aug 2016

Is there any way of drawing a solid rectangle like the example attached ?

For the sake of the example this starts at 2170 1:00 a.m and ends at 2150 10:00 a.m.

It's easy to draw it not solid (4 TLs are enough or using the link left by TJ) but I don't know how to do that solid without consuming too much CPU.

I can imagine doing that with many thick plots or horizontal/vertical thick TLs but that's sounds quite heavy.

Text box doesn't sound a solution either.

Any way of doing that easier ? I thing Easy Language has a TL rectangle but this is not available in Power Language.
Attachments
Rectangle.PNG
(122.1 KiB) Downloaded 405 times

User avatar
bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

Re: How to code a solid rectangle ?

Postby bensat » 01 Sep 2016

Have you ever considered to just 'plot' it ? Doesn't need any resources.

I shortly wrote a basic study to plot a 'rectangle'. Of course you could write something to set the start- & end time of the plots as well as where to plot it as variables & not inputs.

Link : https://vimeo.com/181037737

lease bar in mind that a background set with TL's would always stay above the bars/candles and you would not be able to change that, except with plot's for the background.

Would it be helpful ?

Kind Regards

Ben


Return to “MultiCharts”