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 wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          26 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, Yesterday, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          191 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,230 views
          0 likes
          Last Post xiinteractive  
          Working...
          X