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 poplagelu, Today, 05:00 AM
          0 responses
          2 views
          0 likes
          Last Post poplagelu  
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,406 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          98 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          160 views
          0 likes
          Last Post loganjarosz123  
          Working...
          X