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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X