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 WeyldFalcon, 12-10-2020, 06:48 PM
          14 responses
          1,426 views
          0 likes
          Last Post Handclap0241  
          Started by Barry Milan, Today, 10:35 PM
          0 responses
          2 views
          0 likes
          Last Post Barry Milan  
          Started by DJ888, Yesterday, 06:09 PM
          2 responses
          9 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          40 views
          0 likes
          Last Post jeronymite  
          Started by bill2023, Today, 08:51 AM
          2 responses
          16 views
          0 likes
          Last Post bill2023  
          Working...
          X