I want to display 20-tick and 28-tick candlestic charts of an instrument in a single chart(not in two diff. windows). Since the TIMEFRAME keyword only supports multiples of the current timeframe, I need a way to manually aggregate non-multiple tick data. Additionally, I should be able to write a custom indicator that can traverse back and forth through these aggregated candles like normal ones.
If there are any existing codes related to aggregated tick candle series formation, I would appreciate it. The 20-tick and 28-tick values are just examples; I need a general approach to handle any custom tick settings.
Does ProRealTime support this, and if so, how can it be implemented?
Thank you!
JSParticipant
Senior
A possible approach could be to count the ticks on a tick chart…
TickCount20=TickCount20+1
TickCount28=TickCount28+1
And keep track of the different values for Open, High, Low and Close…
High20=max(High20,High)
Low20=min(Low20,Low)
…
Store this information in arrays or special variables and use this information to draw synthetic candles…
DrawCandle(Open20, High20, Low20, Close20)