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 Jonker, 04-27-2024, 01:19 PM
        3 responses
        22 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by businessman1929, 04-29-2024, 01:28 PM
        2 responses
        21 views
        0 likes
        Last Post businessman1929  
        Started by bltdavid, 03-27-2023, 05:32 AM
        18 responses
        347 views
        0 likes
        Last Post ETFVoyageur  
        Started by NM_eFe, Today, 05:15 PM
        0 responses
        5 views
        0 likes
        Last Post NM_eFe
        by NM_eFe
         
        Started by vitaly_p, Today, 05:09 PM
        0 responses
        4 views
        0 likes
        Last Post vitaly_p  
        Working...
        X