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