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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X