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 Lumbeezl, 01-11-2022, 06:50 PM
      31 responses
      817 views
      1 like
      Last Post NinjaTrader_Adrian  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by swestendorf, Today, 11:14 AM
      2 responses
      6 views
      0 likes
      Last Post NinjaTrader_Kimberly  
      Started by Mupulen, Today, 11:26 AM
      0 responses
      7 views
      0 likes
      Last Post Mupulen
      by Mupulen
       
      Started by Sparkyboy, Today, 10:57 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X