Page 1 of 3

Constant Range Bars (CRB)

PostPosted: Tue Feb 08, 2011 2:56 am
by Alexander.Gettinger
Indicator draws candles each of which consists of constant number of ticks.
Under last candle can show number of ticks as label.

CRB.png


Speed of the indicator drawing depends on amount of data.
For timeframes bigger than m30, this requires big time.
I think what solve this problem.

Download:
CRB.lua
(7.53 KiB) Downloaded 2603 times


Download indicator for other chart:
CRB2.lua
(7.48 KiB) Downloaded 2020 times

Re: Constant Range Bars (CRB)

PostPosted: Wed Feb 09, 2011 5:31 pm
by Forexlooser
Thank you.

Re: Constant Range Bars (CRB)

PostPosted: Fri Feb 11, 2011 2:35 pm
by Hoegie
Alexander,

Any idea why the larger timeframes require so much loading time? I am interested in tick based candlesticks instead of time-based candlesticks. I understand they give you a better view of the market and I'm considering something in the range of 89-233 ticks per bar, maybe more as I currently like to trade 4HR/1HR charts. Can this be done under the current platform?

Thank you.

Re: Constant Range Bars (CRB)

PostPosted: Sun Feb 13, 2011 9:38 pm
by Alexander.Gettinger
Hoegie wrote:Any idea why the larger timeframes require so much loading time? I am interested in tick based candlesticks instead of time-based candlesticks. I understand they give you a better view of the market and I'm considering something in the range of 89-233 ticks per bar, maybe more as I currently like to trade 4HR/1HR charts. Can this be done under the current platform?


I work on it.

Re: Constant Range Bars (CRB)

PostPosted: Wed Mar 02, 2011 4:28 am
by Alexander.Gettinger
Hoegie wrote:Any idea why the larger timeframes require so much loading time? I am interested in tick based candlesticks instead of time-based candlesticks. I understand they give you a better view of the market and I'm considering something in the range of 89-233 ticks per bar, maybe more as I currently like to trade 4HR/1HR charts. Can this be done under the current platform?


This problem is solved.
Indicators may use for calculation not only tick data.
At choice timeframe is recommended take into account average volumes for different timeframes.

Download:
CRB_TF.lua
(7.33 KiB) Downloaded 2161 times


Download indicator for other chart:
CRB2_TF.lua
(7.29 KiB) Downloaded 1823 times

Re: Constant Range Bars (CRB)

PostPosted: Wed Nov 30, 2011 11:23 am
by Laurus12
Thank you very much for this indicator Alexander. I was not aware of the possibility to have tick charts in Marketscope.

Re: Constant Range Bars (CRB)

PostPosted: Thu Dec 01, 2011 9:29 am
by Apprentice
I'm not sure whether I understand your question.

Re: Constant Range Bars (CRB)

PostPosted: Mon Jan 09, 2012 2:06 pm
by nookie
This looks great, can it be made like this that candles are heikin ashi ?

Re: Constant Range Bars (CRB)

PostPosted: Mon Jan 09, 2012 3:30 pm
by Apprentice
Unfortunately, I do not understand your request.

Re: Constant Range Bars (CRB)

PostPosted: Thu Feb 23, 2012 9:02 am
by Liquifier
I get this error when I try to use CRB.lua on a m1 chart:
An error occurred during the calculation of the indicator 'Custom Candles Indicator'. The error details: [string "CRB.lua"]:255: [string "CRB.lua"]:132: attempt to index field 'open' (a nil value).

Is there a way to get this indicator to behave like the tick charts in Strategy Trader? Basically, I want each bar to represent X ticks but is also time independent.

For example:
FXCM Strategy Trader2.png


This chart from Strategy trader does not create a new bar for each m1, m5, m30, etc, but only after 70 ticks of data.