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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    87 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    47 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    105 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X