Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

StopOrder Error Message

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

    StopOrder Error Message

    Hello,

    when doing entries long with entryOrderLd1a=EnterLongLimit(4,true,1,GetCurrentA sk(), "Ld1a"); (and short with entryOrderSd1a=EnterShortLimit(4,true,1,GetCurrent Bid(), "Sd1a")

    and having in onexecution
    SetStopLoss("Sd1a", CalculationMode.Ticks, sts1, false);
    SetStopLoss("Ld1a", CalculationMode.Ticks, stl1, false);
    (sts1 and stl1 I set in parameters)

    why does appear with the entry the message on screen and in log (not every trade but from time to time)
    28.02.2020 11:22:40 Order Accountno, Buy order stop price must be above last trade price ExchangeRejectCode = 2061 affected Order: BuyToCover 1 Limit @ 1461,4
    Thank you!
    Tony
    Last edited by tonynt; 02-28-2020, 10:36 AM. Reason: typo

    #2
    Hello tonynt,

    Thank you for your note.

    You would generally see this in quickly moving markets (and the market is definitely experiencing high volatility right now) when the price moves so quickly that by the time the exchange receives your order, the price has passed the point at which you were planning to place your stop and the stop would now be located on the incorrect side of the market.

    If you're getting this error regularly, you may want to look at increasing the distance between your stop and the price of the entry.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cls71, Today, 04:45 AM
    0 responses
    1 view
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    12 views
    0 likes
    Last Post XXtrader  
    Working...
    X