Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Bar Range and each Cluster

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bar Range and each Cluster

    Hello!
    Having some interesting question!
    I want to compare ticks in each price of the bar. I know the algorithm (on paper), but I don't know how to program it.

    The main idea is:
    I need to create something like data series or else for each bar on 5 min chart (for example).
    In the diapasone of the high-low bar I need to calculate how many ticks was on each price of the bar range.
    And in end - summ all this ticks by each price (or cluster) and get those values.

    Can somebody help me with advice how to create it?
    Big thanks!

    #2
    Hello YevhenShynkarenko,

    Thank you for your post.

    You would need add in a secondary series for the 1 Tick bars. You would then need to store the ticks per price per bar in what would likely be a multi-dimensional array: https://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx

    There may be other means to achieve this but I would leave that to our Forum members to advise on if they know of any.

    Please let me know if you have any questions.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello YevhenShynkarenko,

      Thank you for your post.

      You would need add in a secondary series for the 1 Tick bars. You would then need to store the ticks per price per bar in what would likely be a multi-dimensional array: https://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx

      There may be other means to achieve this but I would leave that to our Forum members to advise on if they know of any.

      Please let me know if you have any questions.
      Thanks for reply!
      Maybe you can give me some example?
      I'm not a very good in programming (knowing only simple things), but if I will have example I can do something with it.
      Thanks!

      Comment


        #4
        Hello YevhenShynkarenko,

        Thank you for your response.

        This would be outside the scope of what we could support here. If you need assistance in programming you may wish to contact our affiliate NinjaTrader Ecosystem to inquire on their NinjaScript Consultant partners: http://ninjatraderecosystem.com/

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ageeholdings, Today, 07:43 AM
        0 responses
        2 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X