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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X