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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X