Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't Add Custom Bar Type to a Strategy

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

    Can't Add Custom Bar Type to a Strategy

    Hi All,

    I have a custom bar type named "UniRenkoBarsType". It works as bar type and I can apply it to a chart.

    When I try to add a new data series to my strategy as below

    Code:
    AddDataSeries("MNQ 09-23", Data.BarsPeriodType.UniRenkoBarsType, 10, Data.MarketDataType.Last);
    I'm getting this error;

    'NinjaTrader.Data.BarsPeriodType' does not contain a definition for 'UniRenkoBarsType'

    Is there a way to fix this issue or is it not possible to add these exotic bar types to NT8 Strategies as additional series?

    Thanks
    M

    #2
    Hello M,

    Thanks for your post.

    Please see this forum thread which discusses adding custom bar types to a NinjaScript: https://forum.ninjatrader.com/forum/...641#post823641

    You could also find a reference sample on that forum thread on post # 6 demonstrating specifically adding custom bars type UniRenko.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X