Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACrossBuilder Painting The Cloud Color Incorrectly At Times

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

    MACrossBuilder Painting The Cloud Color Incorrectly At Times

    I believe I have encountered a bug in MACrossBuilder and want to convey this information to NinjaTrader_Paul.

    Occasionally, MACrossBuilder will paint the cloud the wrong color as shown below:

    Click image for larger version

Name:	image.png
Views:	244
Size:	39.9 KB
ID:	1275549

    Obviously, the cloud should be Red when the MA slope is declining.

    I'm using 6-tick range bars for the data series.

    Most of the time MACrossBuilder behaves as expected. In this instance, it doesn't.

    I've also seen it paint the cloud Red in an uptrend.

    Let me know if you need more information.


    #2
    Hello crazybull,

    The MACrossBuilder cloud color is not based on slope or trend. I can see that some of the names chosen by the original author may be causing confusion.

    If the fast ma is above the slow ma the region is colored with the 'ColorRegionAbove' (Region color for fast above slow) and if the fast ma is below the slow ma the region is colored with the 'ColorRegionBelow' (Region color for fast below slow)

    The SMA plots colors are based on trend when Color0RF/Color1RF are true. When the FastMA is rising the plot is colored with the 'MA0RisingColor' (Fast MA Rising Color), and when falling is colored with the 'MA0FallingColor' (Fast MA Falling Color).
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      Thanks for your response.

      In the screenshot I submitted, the short MA is indicated by the dashed line and the long MA is indicated by the solid line. In the in screenshot you can can see that the short MA is below the long MA. I have the the color settings set to paint the cloud Red in this case, which the indicator does most of the time as can be seen in other areas of the screenshot. However, near the end of the screenshot submitted, the indicator paints the cloud Green even though the short MA is below the long MA. That's why I contend this is a bug.

      NinjaTrader_Paul (the developer) needs to be made aware of this, but since I'm new to this forum, I didn't know any other way to contact him.

      Crazybull

      Comment


        #4
        Hello Crazybull,

        I see what you are reporting.

        It may be that a cross above was detected but the price was equal to the previous bar for the cross below so this wasn't detected.

        As we have time and resources available, I'll add to the script to also check for above/below.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X