Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I plot only the last period of an indicator?

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

    How do I plot only the last period of an indicator?

    I hope somebody can help me with this, please.

    I have an indicator that plots like a moving average but instead of plotting a line, it plots a cross. This plot is also displaced one period into the future. The displacement and the crosses are not a problem. Instead of a whole series of crosses, all I want to see is the last cross to the right of the latest bar. I presume that this can be done by making the latest plot red for example and the rest transparent, but I have no idea how to get the plot to make that colour switch just on the latest period.

    Any suggestions, please? Many thanks in advance for any help.

    #2
    Hello OldGreyWT,

    You can unset previous plots using Reset(int barsAgo).


    You can also set the color of plots on specific bars to transparent using PlotColors[int plot index][int barsAgo].
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    577 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 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
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X