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 kempotrader, Today, 08:56 AM
    0 responses
    6 views
    0 likes
    Last Post kempotrader  
    Started by kempotrader, Today, 08:54 AM
    0 responses
    4 views
    0 likes
    Last Post kempotrader  
    Started by mmenigma, Today, 08:54 AM
    0 responses
    2 views
    0 likes
    Last Post mmenigma  
    Started by halgo_boulder, Today, 08:44 AM
    0 responses
    1 view
    0 likes
    Last Post halgo_boulder  
    Started by drewski1980, Today, 08:24 AM
    0 responses
    3 views
    0 likes
    Last Post drewski1980  
    Working...
    X