Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Placing an order via a strategy

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

    Placing an order via a strategy

    Hi

    I am placing working orders on the market using
    EnterLongStopMarket
    EnterShortStopMarket

    at a calculated price and have drawn a dot to show me the price visually on the chart. I can see that the order goes through the process of submitted, accepted and working BUT when a bar hits the price I am getting the error message
    "Sell stop or sell limit order cannot be placed above the market" and vice versa for the buy side but the actual price is in the right place.

    I am running per tick and would expect when the price is reached that the order would just be "actioned" but instead it is rejected and get error message above.

    I have seen that the price is either below the market for a sell or above the market for a buy but when the price has been reached then it gets rejected and breaks.

    Any thoughts why my orders are rejected?

    Thanks

    #2
    Hello fishbed,

    Thanks for opening the thread.

    In order to assist you further could you provide me some additional information?

    Could you copy the lines of code for how you calculate the price and submit the orders?

    Could you provide a screenshot of the chart and the TraceOrder entries from the NinjaScript Output window?

    For the thread's reference, usage of TraceOrders can be found here: http://ninjatrader.com/support/forum...ead.php?t=3627

    I look forward to your reply.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fernlicht, Today, 01:59 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by space_trader, Today, 12:52 AM
    0 responses
    8 views
    0 likes
    Last Post space_trader  
    Started by soon123, Today, 12:18 AM
    0 responses
    6 views
    0 likes
    Last Post soon123
    by soon123
     
    Started by AxelrodWins, Yesterday, 07:07 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by StockJock, Yesterday, 11:05 PM
    0 responses
    15 views
    0 likes
    Last Post StockJock  
    Working...
    X