Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsSinceExit on Secondary Data

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

    BarsSinceExit on Secondary Data

    When using BarsSinceExitExecutiion(0,",0)>0

    which 0 changes to secondary data series in strategy, I have a secondary 1 minute and 2 minute inputs

    please show with example i.e. BarsSinceExitExecutiion(1,",0)>0 <------ assuming the 1 would represent the FIRST additional data series in the strategy

    I AM USING STRATEGY BUILDER
    thanks
    Last edited by DTSSTS; 09-27-2021, 07:33 AM.

    #2
    Hello DTSSTS,

    Thanks for your post.

    The BarsSinceExitExecution() method defines the first parameter (1 in your example) as: "The index of the Bars object the entry order was submitted against."

    Reference: https://ninjatrader.com/support/help...texecution.htm

    The Strategy Builder can only submit orders to the Chart bars (BarsInProgress 0).

    Therefore we cannot provide an example, in the Strategy Builder.

    If you wish to submit an order to a secondary data series and then use BarsSinceExitExecution on that added data series, you would need to unlock the script and work directly in Ninjascript.





    Comment


      #3
      SO THIS IS NOT CORRECT

      BarsSinceExitExecutiion(1,",0)>0 with the 1 representing the secondary data?

      I AM USING THIS for a rule/condition

      Comment


        #4
        Hello DTSSTS,

        Thanks for your reply.

        Correct, you cannot place an order to an added data series in the Strategy Builder, therefore using BarsSinceExitExecution() using 1 as the barsInprogress in that method will not work in the Strategy Builder.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        71 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        143 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X