Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit and EnterShortLimit fail

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

  • NinjaTrader_RyanM1
    replied
    Hello ipso33,

    Originally posted by ipso33 View Post
    Hi,
    Can anyone let me know as to in what circumstances EnterLongLimit and EnterShortLimit can fail?
    Cheers,
    Ipso
    Yes, you can enable TraceOrders = true; in the strategies Initialize() method, and view output related to this using Tools > Output window. You are likely running into internal order handling rules, detailed here:

    Leave a comment:


  • ipso33
    started a topic EnterLongLimit and EnterShortLimit fail

    EnterLongLimit and EnterShortLimit fail

    Hi,

    Can anyone let me know as to in what circumstances EnterLongLimit and EnterShortLimit can fail? I'm very often getting nulls from those functions. Is there any programmatic way of getting more details as to what exactly fails?
    I've got the default (1 minute) and 4 additional (daily) series. Every day I select one of these daily series and submit a limit order i.e.
    EnterShortLimit(seriesIndex , true, contract, price, "short_entry");

    Quite often a null is returned and there doesn't seem to be any information what went wrong.
    Any help much appreciated

    Cheers,
    Ipso

Latest Posts

Collapse

Topics Statistics Last Post
Started by DannyP96, 05-18-2026, 02:38 PM
1 response
33 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 05-11-2026, 05:56 AM
0 responses
117 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 05-10-2026, 08:12 PM
0 responses
70 views
0 likes
Last Post CarlTrading  
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
228 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
312 views
0 likes
Last Post Mindset
by Mindset
 
Working...
X