Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reversing position via limit orders.

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

    #16
    Hello SteveH,

    Inside the Output window you will not see two logs of this as NinjaTrader will handle this "under-the-hood", so you will only see the Entry order but you will see an order called "Close position"

    Like the following:
    7/29/2013 4:31:00 PM Entered internal PlaceOrder() method at 7/29/2013 4:31:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
    7/29/2013 6:38:00 PM Entered internal PlaceOrder() method at 7/29/2013 6:38:00 PM: BarsInProgress=0 Action=SellShort OrderType=Limit Quantity=1 LimitPrice=1684.50 StopPrice=0 SignalName='' FromEntrySignal=''
    7/29/2013 6:48:00 PM Entered internal PlaceOrder() method at 7/29/2013 6:48:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''

    You may also see the following image.
    Attached Files
    JCNinjaTrader Customer Service

    Comment


      #17
      Originally posted by koganam View Post
      Do you have a protective StopLoss order on your Long position?
      Yes, and a profit target.


      protected override void Initialize()
      {
      SetStopLoss(MMStop);
      SetProfitTarget(profTarg);
      .........

      Comment


        #18
        Originally posted by SteveH View Post
        Yes, and a profit target.


        protected override void Initialize()
        {
        SetStopLoss(MMStop);
        SetProfitTarget(profTarg);
        .........
        You might want to read this rather long, sometimes contentious thread, to understand all the gory details that came out, when we discussed this very issue earlier.

        ref: http://www.ninjatrader.com/support/f...d.php?p=241778

        Comment


          #19
          Once I remove my stop and profit target the strategy works as expected. Since this strategy never has an entry bar stop out I will just hard code my stop and profit target as a work around.

          I'd like to add my vote for Ninjatrader to add reversal limit orders withing the managed orders environment.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          670 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          379 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          582 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X