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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    13 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X