Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Color Plot Question

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

    Multi Color Plot Question

    I have coded a SMA with three plots, Rising, Falling, and Neutral. I believe I have followed the example for multi color plots found in the reference section of the forum. It seems that the coloration of the plot does not work when there is a single bar change in direction (and color). In my example both Rising and Falling are plotted on the same bar. I have attached a chart image along with the code that represents the indicator. Am I missing something here or is this expected behavior? You will see the falling plot as dots and the rising plot as a line, there are places where both are displayed at the same time. Is there something I can do to correct this?

    Thanks,
    Guy
    Attached Files
    TraderGuy
    NinjaTrader Ecosystem Vendor - EMS

    #2
    I suspect this is since there is a bar where lines need to be connected and you will get this overlapping. I don't believe there is anything that can be done.
    RayNinjaTrader Customer Service

    Comment


      #3
      If you do not wish for overlapping and don't care for disjoint lines you can try removing these lines of code.
      Code:
      RisingTrend.Set(1, SMA(Period)[1]);
      FallingTrend.Set(1, SMA(Period)[1]);
      NeutralTrend.Set(1, SMA(Period)[1]);
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

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