Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need to use stop exit, but don't have "fromSignal"

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

    Need to use stop exit, but don't have "fromSignal"

    If my computer ever gets turned off or disconnected, I need to continue with an existing position.

    My strategy...it cannot make use of the live historical orders aspect of a strategy...so I need to be able to submit stop orders using the function:

    ExitShortStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)

    because I need to make use of liveUntilCancelled

    But I wont have a "fromEntrySignal" to use. Can I pass null? Is there a way to still submit stop orders with this function?

    #2
    clam61, when your connection is down or the computer running NinjaTrader shut off, your won't be able to issue a stop or exit order other than to call your broker. Can you please clarify what you had in mind? Thanks!

    Comment


      #3
      ok lets say my strategy submits an entry order named "Entry1"

      my strategy then submits a stop order for "Entry1" named "Exit1"

      for some reason i have to close NT.

      when I restart NT and place my strategy on a chart i want to continue to monitor my "Exit1" stop. i might need to adjust that stop as time goes on.

      how do i reference the "Exit1" stop so that I can modify it?

      Comment


        #4
        clam61, when you terminate the NinjaScript strategy the orders would be cancelled, so unfortunately what you had in mind is not supported.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        29 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        21 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X