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 Gerik, Today, 09:40 AM
          2 responses
          7 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Started by RookieTrader, Today, 09:37 AM
          2 responses
          11 views
          0 likes
          Last Post RookieTrader  
          Started by alifarahani, Today, 09:40 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by KennyK, 05-29-2017, 02:02 AM
          3 responses
          1,285 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by AttiM, 02-14-2024, 05:20 PM
          11 responses
          186 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X