• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 jrobin747, Today, 02:37 PM
    2 responses
    11 views
    0 likes
    Last Post bltdavid  
    Started by Gav_G, Today, 01:23 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by webus, Today, 01:05 PM
    2 responses
    22 views
    0 likes
    Last Post webus
    by webus
     
    Started by Wick Wrangler, Today, 12:42 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by pman777, 04-15-2020, 05:09 AM
    5 responses
    49 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X