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 junkone, Today, 11:37 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by frankthearm, Yesterday, 09:08 AM
      11 responses
      41 views
      0 likes
      Last Post frankthearm  
      Started by quantismo, 04-17-2024, 05:13 PM
      5 responses
      35 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by proptrade13, Today, 11:06 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      34 views
      0 likes
      Last Post love2code2trade  
      Working...
      X