Point countdown (Range bars)

Questions about MultiCharts and user contributed studies.
Ben
Posts: 3
Joined: 30 Jun 2009

Point countdown (Range bars)

Postby Ben » 02 Dec 2010

Just wondering if anybody knows where I could find a countdown for range bars. Perhaps that is something MultiCharts could integrate into the charts like minute and tick bars in the future.

Thanks.

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

Re: Point countdown (Range bars)

Postby Dave Masalov » 03 Dec 2010

Dear Ben,

It cannot be done as there is no way to know when the range bar will end: it can end in one second or in one hour.

Ben
Posts: 3
Joined: 30 Jun 2009

Re: Point countdown (Range bars)

Postby Ben » 03 Dec 2010

Sorry, I did not clarify enough. I did not mean a countdown like a timer, I mean a countdown like the one in this other chart I attached. It lists how many range ticks are remaining in the current bar. For example, if you have your range bars set for 4, it would start at 4 and would countdown the ticks in the bar and start over as soon as the bar goes 4 ticks in either direction.
range bar chart.jpg
range bar chart.jpg (21.15 KiB) Viewed 252 times


Thanks.

SP
Posts: 444
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 280 times

Re: Point countdown (Range bars)

Postby SP » 03 Dec 2010

Code: Select all

value2 = barinterval-(absvalue(high-low)/ (minmove/pricescale));
If barnumber=1 then
   value1 = text_new_s(date,time_s,close,"Remain")
   else
   text_SetLocation_s(value1 ,date,time_s,low -  minmove/pricescale);
   text_SetString(value1 ,"Remain "+ numtostr(value2  ,0));

These users thanked the author SP for the post:
Laurentius

Ben
Posts: 3
Joined: 30 Jun 2009

Re: Point countdown (Range bars)

Postby Ben » 03 Dec 2010

Thank you SP, this is exactly what I was looking for. I will check this out on Monday.


Return to “MultiCharts”