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:	111
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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    39 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X