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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X