Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard Time Settings – Time Value Settings

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

    #31
    Hello Dolfan,

    The error message has changed between your posts.

    This error in post #30 is the error I would expect and the error that I advised you should be getting in post #29

    The code you have posted in post #30 is guaranteed to be rejected. The stop is being placed at 0.

    To ensure that an order is placed at 9:29:45 (or at least on the first tick received after 9:29:45, you must use a 15 second, 5 second, or 1 second chart. This way the bar can close at 9:29:45.

    Then your stop price must be above the current ask.

    Code:
    double stopPrice = GetCurrentAsk() + 5 * TickSize;
    EnterLongStopLimit(DefaultQuantity, stopPrice + 1 * TickSize, stopPrice, "");
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    166 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X