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 NullPointStrategies, Today, 05:17 AM
                  0 responses
                  50 views
                  0 likes
                  Last Post NullPointStrategies  
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  126 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  69 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  46 views
                  0 likes
                  Last Post TheRealMorford  
                  Working...
                  X