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 algospoke, 04-17-2024, 06:40 PM
                  5 responses
                  46 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by arvidvanstaey, Today, 02:19 PM
                  1 response
                  4 views
                  0 likes
                  Last Post NinjaTrader_Zachary  
                  Started by mmckinnm, Today, 01:34 PM
                  3 responses
                  5 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by f.saeidi, Today, 01:32 PM
                  2 responses
                  8 views
                  0 likes
                  Last Post f.saeidi  
                  Started by alifarahani, 04-19-2024, 09:40 AM
                  9 responses
                  55 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Working...
                  X