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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      102 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X