Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Not Following Time Limits for Entry

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

    Strategy Not Following Time Limits for Entry

    I've recently starting coding strategies manually but have found that the time limits set for entry are not being followed when testing in the strategy analyzer. I have made sure my PC clock is on Eastern, and also made sure the analyzer only trades during RMH.

    I've cut out most of the criteria for entry to focus on the time part:

    // Long (L1)
    if (DMI(10)[0] > 0
    && HeikenAshi().HAClose[0] < APZ(2, 20).Upper[0]
    && HeikenAshi().HAClose[1] < APZ(2, 20).Upper[1]
    && ToTime(Time[0]) > ToTime(9, 40, 0)
    && ToTime(Time[0]) < ToTime(11, 30, 0))

    {
    EnterLongLimit(1000, Typical[0], "L1");
    }

    Here is the image of the entry http://imgur.com/bkEsmZY

    Can someone please help me figure out the issue? Thank you in advance!

    #2
    Hello stealthtrading,

    Thank you for writing in and welcome to the NinjaTrader Support Forum!

    Does your strategy have any other entries within the logic that are using the same "L1" signal name?

    With the Managed Approach (which is what you are utilizing), the limit order will be canceled if EnterLongLimit() is not called again at the end of a bar.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    27 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
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    226 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    418 views
    0 likes
    Last Post CaptainJack  
    Working...
    X