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

Place Limit order

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

    Place Limit order

    Hi,
    I am trying to execute a long order with a limit order which is equal to the median of previous bar in Renko bar. First of it does not work or Probably I am doing something wrong. Even sometimes, it giving error massage. I am attaching screenshot for your reference. Please advise.
    Attached Files

    #2
    Hello asmmbillah,

    Thank you for your note.

    What is the error message you are receiving?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi, It says that it cannot place order, order rejected.

      Comment


        #4
        For further info, I am attaching a screenshot for what actually I am trying to do.

        When green bar changes into red, then I am trying to set a sell limit order equal to open price of the last green bar. please advise. I have already posted the screen shot for median price. It's not working, but if you could advise on this please, what should be the execution combination. I am kind of lost trying all the options now. Nothing is working.
        Attached Files

        Comment


          #5
          Hello asmmbillah,

          Thanks for your reply.

          The issue here is that the strategy cannot know that the bar trend has changed from Green to Red until the first Red bar has closed. So you have to think of the first Red bar as the trigger bar that meets the conditions of Green bar followed by Red bar, Close[1] > Open[1] (green bar) and Close[0] < Open[0] (red bar). Once that condition is true you are now in a downtrend, your options are to place a stop Limit (or stop market) below the expected close price of the next bar or place a limit price above the bar assuming it pulls back to fill.
          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by WHICKED, Today, 12:45 PM
          2 responses
          19 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by GussJ, 03-04-2020, 03:11 PM
          15 responses
          3,276 views
          0 likes
          Last Post xiinteractive  
          Started by Tim-c, Today, 02:10 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          5 views
          0 likes
          Last Post Taddypole  
          Started by chbruno, 04-24-2024, 04:10 PM
          4 responses
          51 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Working...
          X