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 rocketman7, Today, 02:12 AM
          7 responses
          28 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by guillembm, Yesterday, 11:25 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by junkone, 04-21-2024, 07:17 AM
          10 responses
          148 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by tsantospinto, 04-12-2024, 07:04 PM
          6 responses
          101 views
          0 likes
          Last Post tsantospinto  
          Started by trilliantrader, 04-18-2024, 08:16 AM
          7 responses
          28 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X