Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Bar Type

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

    Custom Bar Type


    I have a custom indicator, where one of the inputs is the BarType parameter which can be changed.

    This is working fine with the standard BarTypes provided by NinjaTrader, but I also have a custom bar type that is not listed in the drop down menu. Is there a way to add a custom BarType to the dropdown?

    [NinjaScriptProperty]
    [Display(Name = "CustomBarType", Description = "CustomBar", Order = 1, GroupName = "Data Parameters")]
    public BarsPeriodType DataBarType
    {
    get { return _dataBarType; }
    set { _dataBarType = value; }
    }​
    Click image for larger version

Name:	image.png
Views:	104
Size:	23.0 KB
ID:	1286753

    #2
    Hello mohawkTrader,

    There is not a way to modify the built in handling for the bars type display list.

    Also keep in mind if this is being used for AddDataSeries that can cause problems with loading the correct data and should not be used for that purpose, there is a note about that in the AddDataSeires page under the Warning section.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    563 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X