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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X