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 Irukandji, Today, 05:50 AM
      0 responses
      5 views
      0 likes
      Last Post Irukandji  
      Started by ageeholdings, Today, 05:22 AM
      0 responses
      9 views
      0 likes
      Last Post ageeholdings  
      Started by llanqui, 04-28-2024, 10:32 AM
      2 responses
      20 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by DroneBlackCa, Today, 05:17 AM
      0 responses
      6 views
      0 likes
      Last Post DroneBlackCa  
      Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
      7 responses
      50 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X