Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StopLimit entry orders messed up.

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

    StopLimit entry orders messed up.

    Environment: NT8, Beta9 on Windows 10.

    Load attached strategy on a IWM chart that starts per the DataSeries picture.

    You will see that when the StopEntryLimit orders are written as described in the literature, we get a failure to launch any orders, with an error about the Stop being incorrect relative to the limit. (The error message is incorrect).

    On a lark, as an investigating method, I reversed the entries, and the orders then properly executed.

    IOW: the published: EnterLongStopLimit(double limitPrice, double stopPrice) results in an error, whereas
    EnterLongStopLimit(double stopPrice, double limitPrice) executes correctly.

    The code posted is using the putatively incorrect syntax, and so executes orders. The remmed out instructions in the file use the correct syntax; which fails. To validate a test, you will have to switch the statements.
    Attached Files
    Last edited by koganam; 02-28-2016, 11:03 PM.

    #2
    Hello koganam,

    Thank you for writing in.

    I'll be looking into this further and will return with my findings.

    Thank you for your patience.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hello koganam,

      It looks like the orders being submitted in the "correct order" syntax are not submitting as you are setting the stop price at the current close price.

      With the output window open, you will see the following error:

      A Buy order placed at [time] has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.
      Adding a 1 tick offset on my end to your stop orders resolved this behavior.

      Interestingly, I'm not sure why the order is able to be submitted with the "incorrect order" syntax historically.

      On real-time, this results in an error as expected

      Limit price can't be smaller than stop price.
      I will be submitting this as a bug report. Thank you for finding this!
      Zachary G.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by suroot, 02-25-2017, 04:43 AM
      11 responses
      2,546 views
      0 likes
      Last Post Zilvercat  
      Started by Rogers101, 05-05-2024, 11:30 AM
      16 responses
      50 views
      0 likes
      Last Post Rogers101  
      Started by ninza33, Today, 12:31 PM
      2 responses
      9 views
      0 likes
      Last Post ninza33
      by ninza33
       
      Started by Bobin, 03-12-2024, 08:51 AM
      15 responses
      481 views
      0 likes
      Last Post fiddich
      by fiddich
       
      Started by Skifree, Today, 11:21 AM
      4 responses
      15 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Working...
      X