• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Info on Multiple order variables

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

    Info on Multiple order variables

    I am curious about how NinjaTrader will respond to a scenario. I am running into an issue that I am trying to debug and not having success with yet. Therefore, I think it may be important to know the way NinjaTrader will handle this in case I am trying to debug something that is not even possible within the Managed approach.

    I have multiple FX IOrder variables. For now, let's just use two and call them

    LongEntry
    ShortEntry

    And, we will assume that on Monday LongEntry is triggered and is an active trade for 50,000 units. Then it stays on overnight and the next day ShortEntry is triggered and is now an active trade 75,000 units. The Stop Loss for LongEntry is well below the entry point for ShortEntry and therefore LongEntry would continue to be an active trade when ShortEntry is executed.

    Therefore, what would be the result of this:
    1. Close LongEntry's trade and Enter Short Entry giving a net value of Short 75,000 units?
    2. Leave LongEntry as it is until it hits it's profit target, meanwhile enter a trade under ShortEntry giving a net position of Short 25,000 units?
    3. Some other possibility that I have not thought of?


    Thank you very much for your help!

    #2
    Originally posted by jg123 View Post
    I am curious about how NinjaTrader will respond to a scenario. I am running into an issue that I am trying to debug and not having success with yet. Therefore, I think it may be important to know the way NinjaTrader will handle this in case I am trying to debug something that is not even possible within the Managed approach.

    I have multiple FX IOrder variables. For now, let's just use two and call them

    LongEntry
    ShortEntry

    And, we will assume that on Monday LongEntry is triggered and is an active trade for 50,000 units. Then it stays on overnight and the next day ShortEntry is triggered and is now an active trade 75,000 units. The Stop Loss for LongEntry is well below the entry point for ShortEntry and therefore LongEntry would continue to be an active trade when ShortEntry is executed.

    Therefore, what would be the result of this:
    1. Close LongEntry's trade and Enter Short Entry giving a net value of Short 75,000 units?
    2. Leave LongEntry as it is until it hits it's profit target, meanwhile enter a trade under ShortEntry giving a net position of Short 25,000 units?
    3. Some other possibility that I have not thought of?


    Thank you very much for your help!
    The short order will be ignored because of the Managed Approach processing rules. Specifically:
    Methods that generate orders to enter a position will be ignored if:
    A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
    A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction
    The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
    The entry signal name is not unique
    from this page in the NT Help: http://www.ninjatrader.com/support/h...d_approach.htm

    Comment


      #3
      Hello Jg123,

      Thank you for your post.

      Koganam is correct here.

      More specifically, the short order will get ignored because you have a protective orders for your long entry and the managed approached rules will not allow an Entry order to be placed while those orders are active.
      Cal H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by StealthM93, Today, 07:58 PM
      0 responses
      2 views
      0 likes
      Last Post StealthM93  
      Started by Mykro, Today, 11:01 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by bauerjj10, Today, 12:24 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Newtrader101, Today, 06:01 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by Steve L, Today, 03:50 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X