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 ageeholdings, Today, 07:43 AM
          0 responses
          7 views
          0 likes
          Last Post ageeholdings  
          Started by pibrew, Today, 06:37 AM
          0 responses
          4 views
          0 likes
          Last Post pibrew
          by pibrew
           
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          12 views
          0 likes
          Last Post burtoninlondon  
          Working...
          X