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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        65 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X