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 andrewtrades, Today, 04:57 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      6 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      8 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X