Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What's the point of limit orders if...

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

    What's the point of limit orders if...

    Greetings,

    I got an error upon a "limit" order submission, it states that a "short limit order cannot be less than the current bid" or something similar to that. Isn't that the whole point of having limit orders...that is to specify a certain price where you wish the trade to enter/execute? If you cannot specify a price outside the bid/ask range then what's the point of even having limit orders??

    thanks in advance

    #2
    This is for FX, correct? If yes, this is since most FX brokers do not allow that type of order although in futures and stocks its valid.
    RayNinjaTrader Customer Service

    Comment


      #3
      Yes, it is for FX. Thus for those brokers that do not allow such an order how can I create a "work-around" so that perhaps I can submit a market order when the current price hits the desired price level?

      Comment


        #4
        Burga,

        In this case if your are submitting the order via the superDOM or chart trader you would hit the sell market or buy markey buttons. Though I see this is in the NinjaScript section and if you are submitting this via NinjaScript you would want to use the follow orders. You would need to monitor the price and then submit the below as needed.

        EnterLong() to submit a long market order:

        http://www.ninjatrader-support.com/H...EnterLong.html

        EnterShort() to submit a short market order:

        http://www.ninjatrader-support.com/H...nterShort.html

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          Yes, thank you I understand that part however what is the best way to "simulate" a limit order by placing the desired entry price level into a variable and then executing the market orders when the current price meets that desired price level (as a limit order would do...)?

          Comment


            #6
            Hello,

            Just wanted to let you know we did receive your note and will respond shortly.

            Thank you for your patience.
            BrettNinjaTrader Product Management

            Comment


              #7
              Thank you, no problem...

              Comment


                #8
                Hello,

                In this case you would use

                if(Close[0] <= VariablePrice)
                {
                EnterLong();
                }

                If the current price is less then or equal to the limit price then submit the market order. Do the reverse of this for a short position.

                Let me know if I can be of further assistance.
                BrettNinjaTrader Product Management

                Comment


                  #9
                  Thank you. What would you code to set the "VariablePrice"? For example if I want it to be 15 pips from the "current" price how would you code that...

                  Comment


                    #10
                    Burga,

                    You would use:

                    VariablePrice = Close[0] + 15*TickSize;

                    http://www.ninjatrader-support.com/H.../TickSize.html

                    Make sure to only set this when your entry conditions are true, since if this is left in OnBarUpdate it will constantly adjust your entry price based off the close on each Bar Update.


                    Let me know if I can be of further assistance.
                    BrettNinjaTrader Product Management

                    Comment


                      #11
                      OK thanks for confirming that and all your help.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Renejm, Today, 06:17 AM
                      0 responses
                      3 views
                      0 likes
                      Last Post Renejm
                      by Renejm
                       
                      Started by kazisl, Yesterday, 06:41 PM
                      2 responses
                      10 views
                      0 likes
                      Last Post NinjaTrader_PaulH  
                      Started by impactX, 05-04-2021, 01:07 AM
                      1 response
                      7 views
                      0 likes
                      Last Post Lancer
                      by Lancer
                       
                      Started by op1031, Yesterday, 05:51 PM
                      1 response
                      8 views
                      0 likes
                      Last Post NinjaTrader_PaulH  
                      Started by aaadetos, 05-04-2021, 09:28 AM
                      2 responses
                      13 views
                      0 likes
                      Last Post aaadetos  
                      Working...
                      X