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 NullPointStrategies, Today, 05:17 AM
    0 responses
    38 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X