Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving a stop in EFS

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

    Moving a stop in EFS

    Guys,

    I am trying to move a stop in an EFS script and it does not seem to be working. I record the stopid and then invoke the following:

    NTChange(_stopid, _qty, 0, _stopvalue);

    but the stop does not change. I've also tried it as:

    NTChange(_stopid, _qty, null, _stopvalue);

    Is there anything else I can try? Everything else is working, and if successful I am going to be a happy chappy!

    Regards,
    MuthaF

    #2
    Please ensure _stopid is actually a valid, working stop order.

    Is the method returning a 0 or a -1?
    "A return value of 0 indicates success and -1 indicates an error. Success indicates success in submitting the command NOT that the order has in fact been changed."
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Yep, that was it... Found the error in the log and fixed it. Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      62 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X