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

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 zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X