Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACDBB Dots

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

    MACDBB Dots

    Hi,

    I found the MACDBB indicator on Ninjatrader User App Share. I wanted to create an if statement when the dots are green, buy. When the dots are red, sell.

    Thanks


    #2
    Hello AgriTrdr,

    Are you referring to the macd bb lines indicator?



    If so this indicator just uses the standard IsRising and IsFalling condition to control the color of the macd plot. The rising and falling condition just compare the current bar against the previous bar to check if the value is greater or lesser. To use that as a condition in a strategy you can check if the MACD is rising or falling however that condition will remain true for multiple bars in a row so that likely would not be suitable by itself as an entry condition. You would likely need to add other conditions so it does not continuously try to buy and sell for every bar.

    Comment


      #3
      Hi Jesse,

      Thanks for your reply.

      I tried using the below condition, but it gave me errors. What am I doing wrong?

      if (IsRising(MACDBBLINES1.Macd[0]))

      Thanks


      Comment


        #4
        Hello AgriTrdr,

        That is because you are trying to use a specific value from the plot by using [0] bars ago, the IsRising and IsFalling methods want just a series:

        if (IsRising(MACDBBLINES1.Macd))

        Comment


          #5
          Thank you! That worked.

          Comment


            #6
            How is this indicated in Strategy Builder. I see the Rising and Falling inputs but not sure on how to exactly input the Conditions. I keep getting expressions don't match messages. Can you help? AgriTrdr

            Comment


              #7
              Hello TraderTate,

              In the builder you would need to select IsRising and then compare it against misc -> true, is that what you are currently trying?

              Comment


                #8
                Here's a screenshot in builder on how to do IsRising and in the script you could just do the following:

                if (IsRising(MACDBBLINES1.Macd))

                Attached Files

                Comment


                  #9
                  Thank you. I'll give it a shot.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Mindset, 04-21-2026, 06:46 AM
                  0 responses
                  87 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by M4ndoo, 04-20-2026, 05:21 PM
                  0 responses
                  132 views
                  0 likes
                  Last Post M4ndoo
                  by M4ndoo
                   
                  Started by M4ndoo, 04-19-2026, 05:54 PM
                  0 responses
                  65 views
                  0 likes
                  Last Post M4ndoo
                  by M4ndoo
                   
                  Started by cmoran13, 04-16-2026, 01:02 PM
                  0 responses
                  118 views
                  0 likes
                  Last Post cmoran13  
                  Started by PaulMohn, 04-10-2026, 11:11 AM
                  0 responses
                  67 views
                  0 likes
                  Last Post PaulMohn  
                  Working...
                  X