Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trigger point entries

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

    Trigger point entries

    Hi from Oklahoma

    I am trying to determine within the strategy wizard
    the correct method to buy 4 ticks below the close
    of the entry signal bar.

    I have EnterLongLimit(defaultQuantity, Close(0)+-4"TickSize"))

    but this does not seem to take any trades.

    Any suggestions?

    Thx

    Lynn

    #2
    I think you need the following math to end up at a price 4 ticks below close:
    Close[0] - (TickSize*4)

    Close is an array (not a method), so you want to access it with brackets [] to access the bar price X bars ago. Most recent price is index 0
    Last edited by Dexter; 02-24-2011, 01:09 PM.

    Comment


      #3
      Hello,

      Excellent advice Dexter. Right on!!

      Latkinso let me know if you have any questions on Dexters advice!
      BrettNinjaTrader Product Management

      Comment


        #4
        trigger point

        seems to work on a 5 min bar but not on range bars,

        hmmmm, no idea what is going on here, thx for the help

        Lynn

        Comment


          #5
          Post what you have currently have please for us to take a look.
          BrettNinjaTrader Product Management

          Comment


            #6
            trigger point


            with 5 range bar, no results

            with 5 min bar


            also works with 10 range bar, not sure why the difference

            Lynn

            Comment


              #7
              Hello,

              The issue is that EnterLongLimit() expires at the end of the entry bar if it is not filled and it is not resubmitted on the next bar.

              However in your case the order can never be filled because your placing the order 1 tick out of range on a 5 range bar to be filled since by the time price action moves up to get filled a new bar if formed. The calculation is done again for the entry price and the limit order is moved up again.

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

              Comment


                #8
                Range bars at small values have a tendency not to retrace very deeply. Are you sure that any of your range bars actually retraced the full 5 tick range to put you in. If you submit a limit order 4 ticks below the top of a 5 range bar, the market must usually trade through your order in order to fill it, so it will require a 5 range bar to retrace to the open of the entry bar, in order to get the entry filled.

                So, if your strategy requires you to be filled by the close of the bar following the entry (I believe that is the default, but I may be wrong), then if you do not get that retrace on the very next bar, the order gets canceled, and you are never filled.
                Last edited by koganam; 02-24-2011, 05:25 PM.

                Comment


                  #9
                  trigger point

                  Thanks for the input,

                  I believe that the diagnosis of my dilemma is
                  correct.

                  I would have thot that the close of trigger bar would have become
                  a "hard" value and not a variable and that the buylimit "x" ticks below
                  that would carry forward with each succeeding bar until filled or cxld

                  Is there a better way of accomplishing this?


                  Thanks

                  Lynn

                  Comment


                    #10
                    Hello,

                    Unfortunately this has to do with entry logic which I'm unable to assist with, I can answer specific questions on your ninjaScript strategy but as far as helping with code generation to perform your strategy I would not be able to assist with as this is what our NinjaScript consultants are for.

                    NinjaScript Consultants:


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

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    630 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    364 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    105 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    566 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    568 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X