Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsSinceEntry in Strategy Builder

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

    BarsSinceEntry in Strategy Builder

    Hi
    I would like to place an exit order 1 bar following the execution of initial order.
    I see Misc/Bars Since Entry, but I don't understand how to use it in Strategy Builder order management.

    #2
    Hello DmytroP,

    Welcome to the NinjaTrader forums!

    Bars since entry execution will provide a number of bars that have passed since the last entry order has filled.

    On the left select Bars since entry execution, in the center select Equals, on the right select Misc -> Numeric value, set this to 1.

    Below is a link to a forum post with helpful information about getting started with NinjaScript and C#. Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello ChelseaB
      Thank you for the explanations and links!
      I have 4 sets for two patterns - 2 for long and 2 for short. Did I understand correctly that to use exit with Bars Since Entry, I need to create 4 more sets for each pattern?

      Click image for larger version

Name:	setups.png
Views:	315
Size:	30.5 KB
ID:	1172607

      Comment


        #4
        Hello DmytroP,

        You would not have to create 4 more sets unless that's what you logic needed.

        Bars since entry can be used in the condition set where you are wanting to prevent the action until Bars since entry is greater than the value you are wanting.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sidlercom80, 10-28-2023, 08:49 AM
        167 responses
        2,260 views
        0 likes
        Last Post jeronymite  
        Started by warreng86, 11-10-2020, 02:04 PM
        7 responses
        1,361 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Perr0Grande, Today, 08:16 PM
        0 responses
        5 views
        0 likes
        Last Post Perr0Grande  
        Started by elderan, Today, 08:03 PM
        0 responses
        9 views
        0 likes
        Last Post elderan
        by elderan
         
        Started by algospoke, Today, 06:40 PM
        0 responses
        10 views
        0 likes
        Last Post algospoke  
        Working...
        X