• 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

Strategy Builder - enter after 3 bars have closed up

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

    Strategy Builder - enter after 3 bars have closed up

    My brain is fried after trying to get rich with the perfect strategy -- not that I could figure this out, anyway -- but how would I use Strategy Builder to enter long after 3 bars in a row have closed up?

    Thanks a ton!

    #2
    Hello Indy73,

    Thanks for your post.

    When you create the condition of Close > Open you can set the "Bars ago" value. So for 1 pair (Close>Open) the bars ago would be 0 (for the current bar), the next pair would be set to 1 for the previous bar and the last pair would be set to 2 for 2 bars ago. When all three conditions are true, the "Do the following" would be actioned.

    Here is a screenshot of what the conditions would look like. Note that "Close" is replaced by "Default input" and this is expected when using the "Close" price.

    Click image for larger version

Name:	indy73-1.PNG
Views:	82
Size:	27.0 KB
ID:	1048147
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Paul -- you NT support folks are f'n AWESOME!!!

      Comment


        #4
        Is it possible to also tell the strategy NOT to enter after 4 bars? I have a similar issue, but I don't want to enter the trade after 4 bars, as that is too late of an entry for my strategy.

        Comment


          #5
          Hello Fness2020,

          Thanks for your post and welcome to the NinjaTrader forums!

          Can you clarify or expand your example?

          4 bars after what? a previous exit? a previous condition?


          Paul H.NinjaTrader Customer Service

          Comment


            #6
            I just mean I want my strategy to enter on the 3rd up bar that meets my criteria, but if it doesn’t meet my criteria by then, I don’t want to enter the trade.

            For example, if I want to enter long on the 3rd bullish candle in a row when the MACD is above 0, I don’t want to enter if the MACD crosses 0 on the 4th green candle. That’s too late and I would rather wait for a pullback. I hope that makes sense

            Comment


              #7
              Hello Fness2020,

              Thanks for your reply.

              Then your entry condition would need to include your MACD requirements of the MACD line being greater than zero.
              Paul H.NinjaTrader Customer Service

              Comment


                #8
                I understand that the MACD must be included, that's not my question though. However I think I figured it out.
                See I'm using renko bars in my strategy and I wanted to make sure it was a maximum of 3 bullish bricks in a row for a long entry and a maximum of 3 bearish bricks for a short entry.
                Hopefully this helps somebody in the future:

                High[0} > High[1]
                High[1] > High[2]
                High[2] > High[3]
                High[3] < High[4]

                This ensures that I only enter on a specific pattern of 3 green bars after 1 red bar for a long entry and vice versa for a short entry when all other conditions are met.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Dhjesus, Today, 06:23 AM
                1 response
                20 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by Kentoes, Today, 07:56 PM
                0 responses
                1 view
                0 likes
                Last Post Kentoes
                by Kentoes
                 
                Started by Dan_D_Trader, Yesterday, 06:22 PM
                2 responses
                10 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by asmmbillah, Yesterday, 04:42 PM
                6 responses
                44 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by mr_trade, Yesterday, 01:32 PM
                5 responses
                27 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X