• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    http://ninjatrader.com/support/forum...ad.php?t=75983
    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.
        Patrick H.NinjaTrader Customer Service

        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 Botan626, Today, 04:43 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post Botan626  
                  Started by xsgex, Yesterday, 09:46 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post xsgex
                  by xsgex
                   
                  Started by Steve L, Yesterday, 09:36 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Steve L
                  by Steve L
                   
                  Started by krugman25, Yesterday, 09:34 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post krugman25  
                  Started by indy73, Yesterday, 04:42 PM
                  0 responses
                  15 views
                  0 likes
                  Last Post indy73
                  by indy73
                   
                  Working...
                  X