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 NullPointStrategies, Today, 05:17 AM
    0 responses
    46 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    66 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X