• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Timing of trading order

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

    #31
    jiri_barta, so you mean you would for example place a Stop market / limit order 3 ticks higher than the session open price value so you're stopped into a trade if the movement above it would continue during your order time?
    BertrandNinjaTrader Customer Service

    Comment


      #32
      Dear Bertrand,

      I have this conditions:

      1) place order only in specific time (f.e. from 3:00 PM to 5:00 PM)
      2) if actual price > (open+2 ticks) make enter to the trade.

      First condition I can apply without problem, but the second I can´t and my tests are bad. Do you have some help? Thank.

      Comment


        #33
        Hi Jiri, what you describe here sounds like a typical StopMarket / StopLimit scenario use -

        http://www.ninjatrader.com/support/f...ead.php?t=3271

        It will let you getting stopped into a trade only if a price point is penetrated / broken.
        BertrandNinjaTrader Customer Service

        Comment


          #34
          Thank you, but this not to my problem.

          I want to programm that in f.e. 60 min bar will increase price above the open (f.e. 2 ticks) than I want make order. So I want to make it on 1 bar so I have no bars ago and I can´t say before price for limit order. My price for order is: open+2 ticks in some specificed period.

          Jiri

          Comment


            #35
            Jiri, this would be a classical setup for the mentioned stop order type, i.e.

            EnterLongStop(Open[0] + 2 * TickSize)

            The challenging part here is that the open would only be known at or after the FirstTickOfBar and that you would need to check for the current price to be lower than this order price to not get a rejected order.
            BertrandNinjaTrader Customer Service

            Comment


              #36
              Dear Bertrand,

              it is running very well, thank you. Please, the order "when is price increase" is ok it is "open + 2 ticks"- I can set it, but how set up order when is price decrease "open - 2 ticks"? Thank you.

              Comment


                #37
                Glad to hear Jiri - so you would want to place a limit order below current price then at this level?

                EnterLongLimit(Open[0] - 2 * TickSize)
                BertrandNinjaTrader Customer Service

                Comment


                  #38
                  thank you for reply, I have tried this setting, but order is placed immediately on open position. When is this setting actual in settings I can see there is no "...Open[0] - 2 * TickSize....." but this" EnterLongLimit(DefaultQuantity, 0, "").

                  I set it in the same settings:

                  enter long limit order
                  price data
                  open
                  -2 ticks
                  OK

                  Thank you,

                  Jiri

                  Comment


                    #39
                    Hello jiri_barta,

                    Thank you for your response.

                    Is this in the Strategy Wizard? If so please provide a screenshot of how you set this up.

                    If this is directly coded in the NinjaScript Editor please provide the full line of code used for the EnterLongLimit().
                    Patrick H.NinjaTrader Customer Service

                    Comment


                      #40
                      Dear PatrickH,

                      I´m sending to you screenshot of settings. In this case is order immediately in position (immediately is execution). Thank you for help.


                      Originally posted by NinjaTrader_PatrickH View Post
                      Hello jiri_barta,

                      Thank you for your response.

                      Is this in the Strategy Wizard? If so please provide a screenshot of how you set this up.

                      If this is directly coded in the NinjaScript Editor please provide the full line of code used for the EnterLongLimit().
                      Attached Files

                      Comment


                        #41
                        Jiri, the order would immediately execute if it was marketable, meaning if the current price would get you a better price. So for the buy if you submit this order while price is below the limit price, this would happen. In this case the Stop order option would be better to prepare an order, it just depends where price currently is in relation to your order entry value when you want to submit the order in.
                        BertrandNinjaTrader Customer Service

                        Comment


                          #42
                          Thank Bertrand I will test order with stop limit. But it is interesting that for increase price is running very well and for decrease price not in the same settings.

                          Comment


                            #43
                            Right, it would depend where your current price is in relation to the order price level when you submit it in.
                            BertrandNinjaTrader Customer Service

                            Comment


                              #44
                              Hi, after long period I´m coming back to trading, but I have the same problem with programing my strategy "timestap". I don´t remeber how to set up the ninjascript to do this:

                              put order at the specific time by ATM

                              I´ve tried it in many ways but stil not working correctly, may I ask you for advice? Thank you

                              Jiri

                              Comment


                                #45
                                Hello jiri_barta,

                                Where are you getting stuck?

                                Are you still using the Strategy Wizard?

                                Is the time filter the same?

                                Is the condition not evaluating as true?

                                Is the limit order still filling immediately?
                                Chelsea B.NinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by SAILIKITY, 05-22-2019, 05:41 PM
                                1 response
                                2 views
                                0 likes
                                Last Post NinjaTrader_PaulH  
                                Started by rmillar, 01-09-2019, 06:02 PM
                                6 responses
                                58 views
                                1 like
                                Last Post eDanny
                                by eDanny
                                 
                                Started by mlarocco, Today, 11:39 AM
                                4 responses
                                19 views
                                0 likes
                                Last Post mlarocco  
                                Started by roblogic, Today, 11:19 AM
                                2 responses
                                14 views
                                0 likes
                                Last Post roblogic  
                                Started by saeed, Today, 10:17 AM
                                8 responses
                                39 views
                                0 likes
                                Last Post NinjaTrader_Kate  
                                Working...
                                X