Hi,
I downloaded and tried both the CRB_TF.lua and CRB2_TF.lua indicators. Let me first say that I really appreciate it that someone has taken the time and effort to try to program constant ticks per candle for Marketscope (Trade Station 2). Unfortunately, it does not seem to work as advertised. I was hoping to be able to display the price data with a constant number of ticks per candle (for example 70 ticks per bar).
It appears CRB_TF.lua and CRB2_TF.lua are essentially equivalent. I did most of my testing with CRB_TF.lua . I tested it by changing the number of ticks per bar (100 ticks per bar and lower) and observing how this affected the displayed data. I had Marketscope in the m1 (1 minute bars) time frame. I also had the indicator "time frame to calculate" set to "m1." When I tried it with "time frame to calculate" set to "T" (ticks) I either get a line graph (no candles) or an error [ "An error occurred during the calculation of the indicator 'CRB_TF'. The error details: [string "CRB_TF.lua"]:256: [string "CRB_TF.lua"]:127: attempt to index field 'open' (a nil value)." ].
So with both Marketscope and the indicator set to the m1 (1 minute bars) time frame, and the "size of bar in ticks" large (for example 100), I found that the displayed data looked very much like 1 minute bars with an occasional extra candle(s) thrown in. And when the "size of bar in ticks" was small (for example 1, 2, or 3) the displayed data looked identical to 1 minute bars. This clearly should not be the case.
I hope it can be fixed, because I think constant ticks per candle might be very useful. Thanks.