Non-Multiple Tick Charts & Custom Indicator Compatibility

Forums ProRealTime English forum ProRealTime platform support Non-Multiple Tick Charts & Custom Indicator Compatibility

  • This topic has 1 reply, 2 voices, and was last updated 2 hours ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #244364

    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!

    #244369
    JS

    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)

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login