Count of intraday ticks

Forums ProRealTime English forum ProBuilder support Count of intraday ticks

  • This topic has 9 replies, 3 voices, and was last updated 3 years ago by avatarPaul.
Viewing 10 posts - 1 through 10 (of 10 total)
  • #16330

    Hi all, I am fairly new to the forum. I posted this request as reply to another post but probably the wrong place.

    Do you know if there is a way in PRC of reading/counting intraday ticks? The best I could do is to build the below indicator to be applied to an (x)ticks chart. This way I can see when the number of ticks in a certain amount of time have exceeded a defined threshold (say 15 mins as in the code below). However this indicator lacks a fundamental information: direction. Any way that I can read Up and DOWN ticks from the “tick by tick” list?

    Ezio

     

    #16339

    You can store the Close value each tick received in a variable and test if the current one is above or below the last stored one. Then you could count positive and negative variation.

    #16341

    Thanks Nicolas for the fast reply. How do I do that? Only thing that comes to mind is to setup a 1-tick chart and do the count. Is there a more efficient way?

    #16381

    New Close[0] means new tick received in real time only.

    #16397

    Hi Nicolas,

    Thanks for the advice. I have now incorporated that close[0] value in the code.

    The problem I am facing is that I do not know how to store the close[0] value to be able to compare it with the the previous one. In the code below DELTA is measured between latest tick and previous bar close which is not what I am shooting for.

    My final objective is to create an indicator that counts UP and DOWN ticks in a given amount of time (i.e. 5, 10, 15 minutes). Any other  suggestions?

     

    #16412

    You can try it like this instead:

    Market is close so I can’t test it. Next is to find a way to reset tickUP and tickDOWN on a time basis you have to define yourself .

     

    2 users thanked author for this post.
    #162714

    this code is interesting and it perhaps could supplement a fast paced strategy if the reset is properly used

     

    #162874

    here are 2 examples of a reset based on priceaction.

    Because it reset, the scale is limit from about -10 to +10 and especially the spikes are interesting points.

    It’s tested on the dow 10s tf

    #162879

    array variables don’t reset, there are examples: array variables availability in ProRealTime: examples and discussions

    #162884

    I have no experience in array’s, but the code doesn’t use array’s.

    It’s based on your code from 2016,  just added a reset to 0 when certain priceaction appears.

     

     

     

     

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

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