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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        145 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X