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 DJ888, 04-16-2024, 06:09 PM
        4 responses
        12 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        11 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        7 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Started by GwFutures1988, Today, 02:48 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X