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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X