Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Renko Multi-Time Frame CCI

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

    Renko Multi-Time Frame CCI

    I am trying to draw a CCI from a higher time frame (8renko on my 4renko chart) but all it does is print bars every now and then, I assume when a new bar is created on the 8 renko chart. How do I make it so that the 4 renko chart "fills in" or shows whatever value the 8 renko bar is during that whole period so there are no gaps?

    Code:
    protected override void OnBarUpdate()
            {        
                
                if (BarsInProgress == 1)
                {
                    if (CCI(BarsArray[1],input1)[0]>100)
                    {    
                            BarUp.Set(CCI(BarsArray[1],input1)[0]);        
                    }
                    else if (CCI(BarsArray[1],input1)[0]<-10)
                    {
                        BarDown.Set(CCI(BarsArray[1],input1)[0]);
                    }
                    else
                    {
                        BarMiddle.Set(CCI(BarsArray[1],input1)[0]);
                    }
                }
            }
    When I try some other things I've seen in various other answers I get an indicator that shows nothing:

    protected override void OnBarUpdate()
    Code:
       {        
                if (CurrentBars[0] <= input1 || CurrentBars[1] <= input1 || BarsInProgress != 0)
                return;
                if (BarsInProgress == 1)
                {
                    if (CCI(BarsArray[1],input1)[0]>100)
                    {    
                            BarUp.Set(CCI(BarsArray[1],input1)[0]);        
                    }
                    else if (CCI(BarsArray[1],input1)[0]<-10)
                    {
                        BarDown.Set(CCI(BarsArray[1],input1)[0]);
                    }
                    else
                    {
                        BarMiddle.Set(CCI(BarsArray[1],input1)[0]);
                    }
                }
            }
    If I use BarsInProgress == 0 in either configuration, it doesn't work at all either.
    Attached Files
    Last edited by jmflukeiii; 04-14-2012, 04:38 PM.

    #2
    Solved that problem... have another

    So I figured out what I was doing wrong and that's fixed, but I have another question. I am trying to plot multiple histograms on the same chart of different instruments, is there a way of doing this so that they can all be seen, i.e. adjust the output values of the 3 instruments I'll be plotting so that Indi1 ranges between -20 and 20, Indi2 between -10 and 10, Indi3 between -1 and 1

    and assign different thicknesses to them all so that Indi1 is 3 thick, Indi2 is 2 thick and Indi1 is 1 thick

    and then adjust importance so the the thinnest indi is always plotted on top of the others so Indi1 is plotted in the first foreground, Indi2 is plotted behind it and Indi3 is plotted behind both?

    Hopefully this makes sense.... here's a picture of what it is now with just two indi's
    Attached Files

    Comment


      #3
      jmflukeiii,

      Yes, this is definitely possible.

      Are you running into any issues trying to do this?
      Adam P.NinjaTrader Customer Service

      Comment


        #4
        Yes they all print on the same "plain", if you will, meaning that whatever is the thickest shows on top of the others. How can I arrange it so the thinner ones will print in front of the thicker ones?

        Thank you

        Comment


          #5
          jmflukeiii,

          You can click any plot, hold shift then scroll the mouse wheel. This will layer it the way you want.

          Programmatically, you can use the following forum to learn how to do something like this : http://www.bigmiketrading.com/ninjat...35-zorder.html

          However, please note its unsupported.
          Adam P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by georgeinharmony, Today, 12:06 AM
          2 responses
          13 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by Prisalice, Yesterday, 07:07 AM
          2 responses
          16 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Futurestrader00, Yesterday, 12:04 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Blairski, Yesterday, 11:26 PM
          0 responses
          10 views
          0 likes
          Last Post Blairski  
          Started by aligator, Yesterday, 02:38 PM
          0 responses
          10 views
          0 likes
          Last Post aligator  
          Working...
          X