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 yeikson89, Today, 02:53 PM
    2 responses
    10 views
    0 likes
    Last Post yeikson89  
    Started by sdauteuil, Today, 01:06 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by trumpy, 03-09-2017, 02:11 PM
    30 responses
    3,224 views
    0 likes
    Last Post foxthorn  
    Started by shani77, Today, 09:58 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_Eleanore  
    Started by cjanau, Yesterday, 11:07 AM
    1 response
    31 views
    0 likes
    Last Post NinjaTrader_ThomasC  
    Working...
    X