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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 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
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        71 views
        0 likes
        Last Post PaulMohn  
        Working...
        X