Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Orders question

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

    Orders question

    Hi,

    I would like to know what is the best way to proceed if I'm long and would like to reverse my position on target?

    I submit protective orders on my position when I receive an execution report (I submit stop & target orders) so I tried to only submit an EnterShortLimit (as I'll be out of the position with the target) but it looks like it's not accepted due to internal error handling.

    Any suggestions?

    Thanks

    #2
    You could try submitting market order to reverse once the target is filled, you risk some slippage or, try submitting EnterShortLimit() which I think might generate two orders, one to exit (your target) and the other to enter the short position.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks for your answer, just for clarification:

      If I'm long a few contracts using multiple entries (using the advanced order handling logic) that all have their own stops & targets, I'll have to cancel all working orders (stops&targets) before submitting the EnterShortLimit which will reverse my position?
      Also the quantity that needs to be set in the shortlimit is the totalquantity of all long orders + desired quantity or only the desired quantity I'd like to be short?

      Thanks
      Last edited by ryker; 11-01-2008, 04:43 PM.

      Comment


        #4
        Yes, they would all need to be cancelled. Then you go short with the desired quantity.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by istinethomas, Today, 03:31 AM
        0 responses
        6 views
        0 likes
        Last Post istinethomas  
        Started by joselube001, 05-10-2024, 12:17 PM
        7 responses
        46 views
        0 likes
        Last Post esatino
        by esatino
         
        Started by kevinenergy, 05-09-2024, 12:01 PM
        9 responses
        41 views
        0 likes
        Last Post jeronymite  
        Started by ETFVoyageur, Yesterday, 07:49 AM
        2 responses
        14 views
        0 likes
        Last Post jeronymite  
        Started by anton_tymoshchuk, Yesterday, 01:14 AM
        4 responses
        25 views
        0 likes
        Last Post anton_tymoshchuk  
        Working...
        X