How to harness tick data to generate tick volume

Forums ProRealTime English forum ProBuilder support How to harness tick data to generate tick volume

Viewing 3 posts - 1 through 3 (of 3 total)
  • #141142

    I’m using the PRT platform via IG Markets. Bizarrely, IG supplies volume for indices and stocks but NOT for currencies and commodities. So if you’re trying create a volume based indicator or trading system, you’re out of luck.

    Would there be any way to use the tick data stream to code a tick volume graph? I would prefer not to spend weeks learning to code on PRT only to discover it can’t be done.

    Thanks

    #141200

    It could be done with variables arrays, only available in PRT v11. Look at this example on how to store and save data on each tick received:

    Example #5: tag exact time and price of an event (2 MA cross over) in real time, during the same bar

    https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/page/2/#post-120663

     

    #141318

    Thanks for your reply, Nicolas.

    IG markets is still running v10.3. Haven’t been able to find out if and when they are moving to v11.

    Given that we are just counting ticks and don’t need to do any fancy stuff like accessing a particular value in array, would it be possible to do this just with variables? I’m only beginner to intermediate as a programmer, so this is just guesswork on my part.

    Might the following work?

    1. With each new tick, create a variable with the value as a timestamp.
    2. Create a  single bar in a tick volume chart (e.g. 1 minute) by counting all the variables that have timestamp 12:00 PM to 12:01 PM

    Cheers

Viewing 3 posts - 1 through 3 (of 3 total)

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