Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assign values to the custom series in DailyLossLimitBuilderExample_NT8

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

    Assign values to the custom series in DailyLossLimitBuilderExample_NT8

    Hi,

    In NinjaTrader_PaulH's DailyLossLimitBuilderExample_NT8, how do you insert between BarsInProgress and if (CurrentBars[0] < 1) the assignments to YesterdaysPNL[0] and StrategyTotallPNL[0] in Strategy Builder? So far I've managed to replicate the rest of the example, except for the the part seen below.

    if (BarsInProgress != 0)
    return;

    YesterdaysPNL[0] = YesterdaysPNL[1];
    StrategyTotallPNL[0] = SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit;
    if (CurrentBars[0] < 1)
    return;


    Thanks,
    CS
    Last edited by clarkys; 06-22-2022, 12:49 AM.

    #2
    Hello clarkys,

    Thanks for your post.

    First, you would need to create the custom series in the 'Custom Series' section of the Additional Data screen.

    Additional Data Screen: https://ninjatrader.com/support/help...onalDataScreen

    Once those custom series are created, you could assign values to them in the Actions section of the Conditions and Actions screen.

    Conditions and Actions screen: https://ninjatrader.com/support/help...dActionsScreen

    To assign a value to the custom series in the Actions section of the Conditions and Actions screen, select 'add' in the Actions section, open the Misc folder, and choose the custom series from the Misc folder that you want to assign a value to (such as 'Set YesterdaysPNL').

    Then hover the mouse over the field below (YesterdaysPNL) and click 'set' to assign a value to the custom series. After clicking 'set', assign a custom series to the custom series you are editing by opening the Misc folder, select 'Custom Series', use the 'Custom series' drop-down menu to select the series you want to add, click OK, and click OK again.

    See this video showing assigning a value to the YesterdaysPNL custom series: https://brandonh-ninjatrader.tinytak...MF8xOTcwNDM3OQ

    Also, here is a link to our publicly available training video, Strategy Builder 301, which you may find helpful: https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s

    Let us know if we may assist further.
    <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, Yesterday, 05:17 AM
    0 responses
    64 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X