Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Partial Order Reversal

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

    Partial Order Reversal

    I have a strategy with 3 target prices. My signals are used to reverse the trade.
    target1 and target2 are modest and usually trigger quickly. target3 is higher and is hit less often.

    When I'm in a long position and target1 and target2 have already been filled, I get a signal to reverse. I would like to reverse the remaining contract, "targer3" and place short orders for target1 and target2.

    What is the best way to handle such order entry and reversal?

    Thanks,

    Afshin

    #2
    Before I can give you some ideas I need to know the method in which your current order handling is being handled.

    Are you using OnExecution() or OnOrderUpdate() to manage your targets and stops? http://www.ninjatrader.com/support/f...ead.php?t=7499

    Or are you using Set methods that define the target and stop ahead of time?
    LanceNinjaTrader Customer Service

    Comment


      #3
      My quetsion is how I should do it.
      Right now I have used SetProfitTarget and SetStopLoss for 3 seperate target values. Right now when I get a reverse signal I just do EnterLong or EnterShort in reverse direction - I did not use OnExecution() or OnOrderUpdate() because I didn't understand if I need to.


      SetStopLoss("target1",CalculationMode.Ticks,Stop, false);
      SetStopLoss("target2",CalculationMode.Ticks,Stop, false);
      SetStopLoss("target3",CalculationMode.Ticks,Stop, false);

      SetProfitTarget("target1",CalculationMode.Ticks,Ta rget1);
      SetProfitTarget("target2",CalculationMode.Ticks,Ta rget1+Target2);
      SetProfitTarget("target3",CalculationMode.Ticks,Ta rget1+Target2+Target3);

      EnterLong(target1Qty,"target1");
      EnterLong(target2Qty,"target2");
      EnterLong(target3Qty,"target3");


      thanks,

      Afshin
      Last edited by afshinmoshrefi; 03-10-2013, 09:27 AM.

      Comment


        #4
        In this case you would be able to use three EnterShort() to reverse your position. It would first close your existing position with a market order and then enter short with your different stops/targets that were tied via signal name.

        From the sound of it you won't need to use OnExecution() or OnOrderUpdate() but these will give you additional management flexibility if you do need it.
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, Yesterday, 10:06 AM
        0 responses
        20 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        18 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        14 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        9 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        40 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X