Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add values to BarsType

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

    Add values to BarsType

    How would I go about added parameters/values in ninjascript with a custom bars type?

    Currently, I can use bars.barsperiod.value/value2 but I'm not sure how to add any more than the two.

    I tried to add the following but it didn't work:

    Code:
    #region Properties                
                    [Range(0, int.MaxValue), NinjaScriptProperty]
                    [Display(Name = "Value3", GroupName = "Custom", Order = 1)]
                    public int value3
                    { get; set; }
     #endregion

    #2
    Hello Lumbeezl, thanks for your post.

    You can only rename the existing parameters Value and Value2 currently. You can modify the properties with SetPropertyName e.g. SetPropertyName("Value", "MyCustomValue");

    I'll add a feature request so that we can add as many parameters as needed.

    Best regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello Lumbeezl,

      Thank you for your patience.

      I'm responding on behalf of my colleague Chris, who is out of the office today.

      I have added a vote for you to a current feature request to allow custom BarType properties. This request is being tracked under the number SFT-1269.

      As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

      Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

      Please let us know if we may be of further assistance to you.
      Kate W.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by stafe, 04-15-2024, 08:34 PM
      7 responses
      31 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by adeelshahzad, Today, 03:54 AM
      4 responses
      30 views
      0 likes
      Last Post adeelshahzad  
      Started by merzo, 06-25-2023, 02:19 AM
      10 responses
      823 views
      1 like
      Last Post NinjaTrader_ChristopherJ  
      Started by frankthearm, Today, 09:08 AM
      5 responses
      17 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      43 views
      0 likes
      Last Post jeronymite  
      Working...
      X