Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom BarType bars

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

    Custom BarType bars

    Is it possible to add custom parameters to the custom bar type?

    Currently I am trying to create Renko bars built from points (double) rather than tick (integer) but there doesn't seem to be a way to do it - that I am aware of, at least. If any one knows how this can be accomplished, I would be most appreciative to hear. Thanks.

    #2
    Hello Zeos6,

    Thank you for your note. Custom properties are not currently possible with bar types. I will submit a feature request on your behalf to allow custom BarType / ChartStyle properties.

    There is an undocumented workaround to re-use existing properties in these type of scripts.
    Below is a link to a thread that goes into further detail.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reference ChelseaB but it doesn't really address the issue I was raising. I think that custom bar types without custom properties are really not all that useful. This feature really is needed badly. I am surprised that it was omitted.

      Comment


        #4
        Hello Zeos6,

        Thank you for your response.

        This feature request has been assigned the id SFT-1269.

        Please let me know if you have any questions.

        Comment


          #5
          It may not be officially supported but I used the following in one of my custom bars for a custom property:

          [NinjaScriptProperty]
          [Range(0, int.MaxValue)]
          [Display(Name = "Volume divisor", Description = "Volume divisor", Order = 2, GroupName = "Parameters")]
          public int VolumeDivisor { get; set; }

          Comment


            #6
            Bit of a work around but worth exploring a bit. Thank you.

            Comment


              #7
              I'm not sure why you call it a work around, this is the way custom bars and chart styles define UI settable properties, decorate with the [NinjaScriptProperty] attribute.

              Take a look at the existing bar types.

              Comment


                #8
                There is no intent to be disrespectful on my part.
                Did you use that code in a custom bar type or in a chart style?

                Comment


                  #9
                  Sure, I used it in both custom bar and custom chart. That's what the built in bar types and charts use, check out the source.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Mindset, 05-06-2023, 09:03 PM
                  10 responses
                  262 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by michi08, 10-05-2018, 09:31 AM
                  5 responses
                  741 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by The_Sec, Today, 02:29 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post The_Sec
                  by The_Sec
                   
                  Started by tsantospinto, 04-12-2024, 07:04 PM
                  4 responses
                  62 views
                  0 likes
                  Last Post aligator  
                  Started by sightcareclickhere, Today, 01:55 PM
                  0 responses
                  1 view
                  0 likes
                  Last Post sightcareclickhere  
                  Working...
                  X