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 rocketman7, Today, 02:12 AM
    7 responses
    28 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by guillembm, Yesterday, 11:25 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by junkone, 04-21-2024, 07:17 AM
    10 responses
    148 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by tsantospinto, 04-12-2024, 07:04 PM
    6 responses
    101 views
    0 likes
    Last Post tsantospinto  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    7 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X