Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

1 trade per direction

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

    1 trade per direction

    Hi,

    How to set my borning ninja script (in the wizard) to limit the entries to only 1 trade per direction. (1 short - 1 long - 1 short - 1 long - ...)

    Thanks.

    #2
    Hello Borsz,

    Thank you for your post.

    You would set the EntriesPerDirection to 1 when applying the strategy to a chart or running a backtest. This will allow that you have only one entry.

    http://www.ninjatrader.com/support/h...t_strategy.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Cal, actually I know it, but it seems does not work. Please see screenshot under link below.
      (by the way, isn't it possible to simply attach a picture in this post, only link?)
      I tested this simple strategy, EntriesPerDirection is set to 1, but as you see on the chart, short after short happened. Why?

      Comment


        #4
        Borsz,

        Thank you for your picture. I see what you are referring to now.
        That is because the strategy logic is still telling it to go short.

        You would want to create a "switch" per say.

        Use Variable0 in the Set User Variable. So, when you go Short, change the variable to say 1 and then test for the 1 value in your long condition and when you go long change it back, thus switching between long and short.

        Attached is a sample of how this looks in the Wizard

        You would need to use the Go Advanced -> select the Paperclip in the toolbar
        Attached Files
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        666 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        377 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X