Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnPositionUpdate and EnterLong/EnterShort

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

    OnPositionUpdate and EnterLong/EnterShort

    Usage setting stops/targets during OnPositionUpdate and position Flat

    If the position was short and EnterLong is called the position is closed first
    then a long entered -

    Will the OnPositionUpdate fire during EnterLong or afterwards?
    MicroTrends
    NinjaTrader Ecosystem Vendor - micro-trends.co.uk

    #2
    MicroTrends, if you reverse, first the EnterLong() would be called and then you'd see two OnPositionUpdates(), one for getting flat (Close Position), the next for long.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      In terms of flow the event fires after the EnterLong has completed

      thank you
      Last edited by MicroTrends; 05-13-2010, 05:27 AM.
      MicroTrends
      NinjaTrader Ecosystem Vendor - micro-trends.co.uk

      Comment


        #4
        Yes, this is correct.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I believe the best place to reset the stop is when flat onOrderUpdate - OrderState.PendingSubmit

          I will test with that.

          Thank your for your help :-)
          MicroTrends
          NinjaTrader Ecosystem Vendor - micro-trends.co.uk

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Rogers101, 05-05-2024, 11:30 AM
          3 responses
          21 views
          0 likes
          Last Post Rogers101  
          Started by nightstalker, 05-04-2024, 02:05 PM
          5 responses
          53 views
          1 like
          Last Post nightstalker  
          Started by MSerag, Yesterday, 11:52 PM
          0 responses
          8 views
          0 likes
          Last Post MSerag
          by MSerag
           
          Started by DynamicTest, Yesterday, 11:18 PM
          0 responses
          3 views
          0 likes
          Last Post DynamicTest  
          Started by dcriador, Yesterday, 01:43 AM
          3 responses
          20 views
          0 likes
          Last Post dcriador  
          Working...
          X