Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CCI Indicator

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

    CCI Indicator

    Hello All,

    Refer to attached pic.

    Looking for a CCI indicator (or a way to) that fills in with a color (such as grey) in the area that is over the limits like 100 /-100. Just for a visual highlight to draw attention.

    Thanks.
    Attached Files

    #2
    Hello Segwin,

    Thank you for your note.

    I put together a sample indicator which will shade the area above the 100 line when CCI is >100.

    I used Draw.Region method, see the following section of our helpguide,


    Indicator was put together as a sample and you could modify it to include additional functionality.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Excellent Alan. I have a go at it as well. Like to color a few others as well.

      Thank you!

      Comment


        #4
        Hello Alan,

        I am having a little trouble with the Draw Region example you produced. In this your minimum line is also a plot, and thus your Draw Region draws between two plots. this seems a strange decision, because one would have thought that you would use a plot and a line. Instead we have two plots. Is this an important distinction.

        I actually dont want the entire minimum line filled in, I only want to do the fill between the minimum line and the upper line, without drawing the whole minimum line. So I initially just initialsied a double series, and try to draw region, but it does not work. Even if I change it to the second variant of the Draw region, where i use a Double Price value, it still doesn't work. Is the problem the fact that I am not using a plot? Can you please advise?
        Thanks

        Brett
        Attached Files

        Comment


          #5
          Hello cloudbrett,

          Welcome to the NinjaTrader forums!

          The Draw.Region() method is only able to draw between two plots. In this case, the example is showing how to shade a region between a plot with updated values and a zero line which must be a plot with 0 on each new bar to be able to be used with Draw.Region().

          You can draw between any two regions you supply.

          Yes you must supply a plot.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          69 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          41 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          166 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          101 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          164 views
          2 likes
          Last Post CaptainJack  
          Working...
          X