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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    152 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    304 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    175 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X