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.
Point countdown (Range bars)
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Point countdown (Range bars)
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.
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.
Re: Point countdown (Range bars)
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.
Thanks.Re: Point countdown (Range bars)
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));
Re: Point countdown (Range bars)
Thank you SP, this is exactly what I was looking for. I will check this out on Monday.