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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      72 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X