Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to run independent trades simultaneous in strategy

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

    How to run independent trades simultaneous in strategy

    Hi Ninja,

    I have been trying to create a strategy that can back test separate and simultaneous trades with their own individual set of bracket orders.

    I'm using EnterLongLimit orders for entry and not even a condition, f.i: EnterLongLimit(DefaultQuantity,10000,"");

    Ninja executes the trades beautifully when price has reached the limit price and executes the brackets in the backtest.
    It does so a number of times over the backtesting period for this limit price
    However, if I add a second ordermanagement command such as EnterLongLimit(DefaultQuantity,10100,""); (note the difference in price),
    then Ninja skips the first command and only executes the orders for the second price.
    Is there a way to have Ninja execute multiple trades like this simultaneously, and treat them separately with their own bracket orders and also not let the exit of one trade influence the exit of other running trades?
    I have tried several things already such as using separate condition sets/tabs in the wizard per orderentry command, changing "Entries per direction" to 10, changing "Entry Handling" to Unique Entries but nothing seems to work.
    Maybe it cannot be done with limit orders? Something else?
    I must be missing something.

    Can you help?

    Regards,
    Vladja

    #2
    Hello Vladja,

    Yes this is possible.

    You would want to uniquely name your entries in your enter methods, set entry entryHandling to Unique Entries, and pass the entry signal names to the from entry signal for your profit targets and stop losses.

    This will allow you to enter two different orders independent of each other, and have stops and targets assigned to the specific entries.

    I have attached a strategy demonstrating this.

    Please also see the following section of the helpguide,
    http://ninjatrader.com/support/helpG...ryhandling.htm

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi Alan,

      Thanks, I think I've got it up and running ;-)

      Vladja

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by dtmtradingco, Today, 12:30 PM
      0 responses
      2 views
      0 likes
      Last Post dtmtradingco  
      Started by Franck Z, Today, 09:49 AM
      0 responses
      6 views
      0 likes
      Last Post Franck Z  
      Started by pvtrader, Today, 08:02 AM
      2 responses
      7 views
      0 likes
      Last Post pvtrader  
      Started by Natoc, Today, 03:04 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by Rudy2323, Today, 02:56 AM
      2 responses
      29 views
      0 likes
      Last Post Rudy2323  
      Working...
      X