Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Composite Index indicator by Constance Brown for NT?

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

    Composite Index indicator by Constance Brown for NT?

    Note: This indicator is in violation of United States Copyright Laws. The copyright owner and creator of the original code is Cardwell Finacial Group and Andrew Cardwell. The name of the original indicator is CFG MO (Cardwell Financial Group Momentum Oscillator) or just CFG. The code is copyrighted at the United States Copyright Office as "Relative Strength Index : advanced /by Andrew E. Cardwell, Jr." with registration/date number TX0003375191 / 1992-07-22. Mr. Andrew Cardwell can be found and contacted at cardwellrsiedge.com and cardwellrsi at hotmail dot com.

    Edit: Also referring to post # 3 and 6

    Hi!

    I am wondering if someone have the Composite Index indicator by Constance Brown for NT (Described in her chapter in "Breakthroughs in Technical Analysis")?

    If not, could someone please give it a try?

    Thanks.

    Laurus12

    ---------------------------
    The formula for TradeStation with some guides is:

    -Create two functions in EasyLanguage first. The first is a 9-period momentum study of RSI. This can be written as:
    RSIDelta = MOMENTUM(RSI(CLOSE,14),9)

    -Then a smoothed short period RSI is created,
    RSIsma = AVERAGE(RSI(CLOSE,3)3)

    -The indicator can then be created:
    INDICATOR: COMPOSITE INDEX
    Plot1(RSIdelta+RSIsma,"Plot1");
    Plot2(average((plot1),13),"Plot2");
    Plot3(average((plot1),33),"Plot3");

    ---------------------------
    The MetaStock Format is:

    A = RSI(14)-Ref(RSI(14),-9)+Mov(RSI(3),3,S);
    Plot1 = Mov(A,13,S);
    Plot2 = Mov(A,33,S);
    A;Plot1;Plot2;

    ---------------------------
    For MetaTrader 4 is:

    #property indicator_separate_window
    #property indicator_buffers 3
    #property indicator_color1 Black
    #property indicator_color2 SeaGreen
    #property indicator_color3 Teal
    #property indicator_level1 0
    #property indicator_levelcolor Silver
    #property indicator_levelstyle 2
    #property indicator_level2 50
    #property indicator_levelcolor Silver
    #property indicator_levelstyle 2
    #property indicator_level3 100
    #property indicator_levelcolor Silver
    #property indicator_levelstyle 2
    //
    //
    //
    //
    //
    extern int RSI.Price = PRICE_CLOSE;
    extern int RSI.SlowLength = 14;
    extern int RSI.FastLength = 3;
    extern int Momentum.Length = 9;
    extern int SMA.Length1 = 3;
    extern int SMA.Length2 = 13;
    extern int SMA.Length3 = 33;
    //
    //
    //
    //
    //
    double buffer1[];
    double buffer2[];
    double buffer3[];
    double working[][3];
    //+----------------------------------------------------------------------------------+
    //| |
    //+----------------------------------------------------------------------------------+
    //
    //
    //
    //
    //
    int init()
    {
    SetIndexBuffer(0,buffer1);
    SetIndexBuffer(1,buffer2);
    SetIndexBuffer(2,buffer3);
    return(0);
    }
    int deinit()
    {
    return(0);
    }
    //+----------------------------------------------------------------------------------+
    //| |
    //+----------------------------------------------------------------------------------+
    //
    //
    //
    //
    //
    #define __slowRSI 0
    #define __fastRSI 1
    #define __composite 2
    //
    //
    //
    //
    //
    int start()
    {
    int counted_bars=IndicatorCounted();
    int i,r,limit;
    if(counted_bars<0) return(-1);
    if(counted_bars>0) counted_bars--;
    limit = Bars-counted_bars;
    if (ArrayRange(working,0) != Bars) ArrayResize(working,Bars);
    //
    //
    //
    //
    //

    for(i=limit, r=Bars-i-1; i >= 0; i--,r++)
    {
    working[r][__slowRSI] = iRSI(NULL,0,RSI.SlowLength,RSI.Price,i);
    working[r][__fastRSI] = iRSI(NULL,0,RSI.FastLength,RSI.Price,i);

    double RSIDelta = working[r][__slowRSI]-working[r-Momentum.Length][__slowRSI];
    double RSIsma = iSma(__fastRSI,SMA.Length1,r);

    working[r][__composite] = RSIDelta+RSIsma;

    //
    //
    //
    //
    //

    buffer1[i] = working[r][__composite];
    buffer2[i] = iSma(__composite,SMA.Length2,r);
    buffer3[i] = iSma(__composite,SMA.Length3,r);
    }
    return(0);
    }
    //+----------------------------------------------------------------------------------+
    //| |
    //+----------------------------------------------------------------------------------+
    //
    //
    //
    //
    //
    double iSma(int forBuffer,int period, int shift)
    {
    double sum =0;

    if (shift>=period)
    {
    for (int i=0; i<period; i++) sum += working[shift-i][forBuffer];
    return(sum/period);
    }
    else return(working[shift][forBuffer]);
    }
    Last edited by laurus12; 11-04-2010, 04:36 AM. Reason: The indicator is in violation of US Copyright Laws

    #2
    laurus12,

    If no one picks you up on this request and you would still like it professional made you can also consider one of these 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I gave it a quick try and it look ok but I don't know if it is right or not.

      Dan

      Edit: Referring to post # 6 I will add this note below.

      Note: This indicator is in violation of United States Copyright Laws. The copyright owner and creator of the original code is Cardwell Finacial Group and Andrew Cardwell. The name of the original indicator is CFG MO (Cardwell Financial Group Momentum Oscillator) or just CFG. The code is copyrighted at the United States Copyright Office as "Relative Strenght Index : advanced /by Andrew E. Cardwell, Jr." with registration/date number TX0003375191 / 1992-07-22. Mr. Andrew Cardwell can be found and contacted at cardwellrsiedge.com and cardwellrsi at hotmail dot com.
      Attached Files
      Last edited by eDanny; 10-31-2010, 12:35 PM. Reason: Copyright infringment
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Originally posted by eDanny View Post
        I gave it a quick try and it look ok but I don't know if it is right or not.

        Dan
        Whao! You really made my day Dan. From how it behaves I think you got it just right. Thank you so much. I am a newbe on NT and this indicator is very important to me.

        It was made for warning when RSI is failing to show divergence. It can also alert when RSI is failing to show positive and negative reversal signals in a trend.

        I use it with both RSI and MACD. With MACD when it starts to show divergence but has not really turned yet. I pinpoint the turning point for the second MACD swing singnal in advance with the CI.

        Again thank you so much!

        Comment


          #5
          The CompIndex works correctly

          Dan. I have double checked with another platform with the same instrument which showed that the Composite Index you coded works correctly.

          Regarding the indicator itself I can mention that the moving averages are useful to determin support and resistance in price. When the indicator turns at a moving average line it signals support or resistance. When turning at a moving average cross it sigals strong support or resistance.

          Thanks.
          Last edited by laurus12; 05-21-2010, 04:18 AM.

          Comment


            #6
            A Mistake: This is acctually the CFG Momentum Oscillator by Andrew Cardwell

            Hello Guys,

            Without my knowledge I have done a mistake when having this indicator coded. I have found out that the copyright owner and creator of the original code is Cardwell Financial Group and Andrew Cardwell. So this is not originally the "Composite Index" and Constance M. Browns work. I have checked out with the United States Copyright Office and spoken to Mr. Cardwell himself where he has shown me his work, so there is no doubt.

            The original indicator is called CFG MO or just CFG. The only difference in the code compared to the one posted in this thread is that the original uses different timings for the moving averages of the indicator.

            Mr. Andrew Cardwell can be found and contacted at cardwellrsiedge.com and cardwellrsi at hotmail dot com.

            My apologies to Mr. Cardwell.

            - Laurus12

            Edit: Referring to legal notice in post # 1 and 3
            Last edited by laurus12; 11-04-2010, 04:33 AM.

            Comment


              #7
              composite index

              Hi

              Greetings

              I am ta student from india.

              I require your support.

              Can you help me in coding Composite index for wealtlab software.

              Regards

              Charanpreet singh

              Comment


                #8
                Hello Charanpreet,

                The thing is that as it says in the first post the "Composite Index" is not the "Composite Index", but the CFG MO officially registered as proprietary code at the United States Copyright Office as the "Relative Strength Index : advanced" owned by Andrew Cardwell.

                After my conversations with Andrew Cardwell it has been my clear impression that since the code is already out in the open he would like people to know that the code in the "Composite Index" is his proprietary work and that it should as an indicator rightly be called the CFG MO (Cardwell Financial Group Momentum Indicator).

                In respect of Andrew Cardwell I would recommend you first contacting him via cardwellrsiedge.com and ask him if it would be okay that the platform code versions already available are being used for making a CFG MO version for the WealthLab platform.

                Best regards,
                Laurus

                Comment


                  #9
                  I have coded a version of the CFG Momentum Oscillator for NinjaTrader. After talking to Andrew Cardwell, I have not yet made it available for NinjaTrader users. If Andrew agrees, I could publish it here.

                  The formula has been published by Constance Brown for her Composite Index, which is identical to the CFG Momentum Oscillator.

                  A sample chart is attached.
                  Attached Files

                  Comment


                    #10
                    Hello Harry,

                    Just for the record, I checked the patterns and timing of the levels with your CFG and it seems to be working perfectly.

                    It would have been nice if people would have the option to download the right one instead of the other.

                    Laurus

                    Comment


                      #11
                      Dear Laurus

                      Thanks for the info.
                      I have requested Andrew for using it for wealthlab.
                      Reply is awaited.
                      Can we have its interpretations.
                      As it doesnt hangs under 0-100.
                      Are divergences turning point unlikely rsi 14.
                      Are reversals and range shift possible in MO.
                      If we can get wealthlab code.
                      I can wrk on it.

                      Regards

                      Charanpreet

                      Comment


                        #12
                        Hello Charangoldy,

                        Good that you contacted Mr. Cardwell.

                        The common simple basics with the CFG is that it will alert when the RSI is failing to show divergences. But I think based on how the RSI works and price behaves the "failing" part in this statement is flawed. Note that I do not have this statement from Mr. Cardwell, but is a statement coming from C. Brown. The RSI is doing what it is supposed to do and does this well. On the other hand with price behavior, I think it would be futile to ever expect that there might be a price indicator which will show divergences at every turning point when there in fact are many turning points in the markets with increasing momentum before it turns around.

                        Since the CFG is a much more sensitive indicator than the RSI it will also show reversal signals. For that I would recommend using "wave" channels as support and resistance lines within the indicator. Opposed to using range shifts with the RSI this is how I find the CFG useful. By this one can both time reversals and divergences.

                        I do not know your trading background and experience, but when you start working with this you should have in mind that context is always the absolute ruling factor. People are complaining about indicators not working consistantly, but this is because they have not grasped the concept of context. Absolutely all indicators (no matter what they are based on) on a given time frame will fail too many times when using them against context. So when having a series of wins and then loosing it all back doing exactly the same thing it's because they went against context. In other words they went against the flow of the market unaware doing so. So keep a clear strategy and clearly defined concepts on when trend has changed using several time frames. NEVER deviate from this. You might get lucky if you go against this, but you will not survive in the long run.

                        Just for the record: Range shifts with the RSI is purly a invention and a concept by Andrew Cardwell.


                        Good luck,
                        Laurus

                        Originally posted by charangoldy View Post
                        Dear Laurus

                        Thanks for the info.
                        I have requested Andrew for using it for wealthlab.
                        Reply is awaited.
                        Can we have its interpretations.
                        As it doesnt hangs under 0-100.
                        Are divergences turning point unlikely rsi 14.
                        Are reversals and range shift possible in MO.
                        If we can get wealthlab code.
                        I can wrk on it.

                        Regards

                        Charanpreet
                        Last edited by laurus12; 12-04-2013, 03:05 AM. Reason: Adding text

                        Comment


                          #13
                          Dear Laurus
                          Greetings
                          Thanks for ur useful post.
                          I


                          t will be of great help to all of us.
                          Will work on MO in depth to find key parameters for using it.

                          And will share the same

                          Regards

                          Charanpreet singh

                          Comment


                            #14
                            can somebody tell me where i can find this inidicator in.jar file ?

                            Comment


                              #15
                              Originally posted by veyron89 View Post
                              can somebody tell me where i can find this inidicator in.jar file ?
                              The zip file is below and you can directly import it into NinjaTrader.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by bsbisme, Yesterday, 02:08 PM
                              1 response
                              15 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by prdecast, Today, 06:07 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post prdecast  
                              Started by i019945nj, 12-14-2023, 06:41 AM
                              3 responses
                              60 views
                              0 likes
                              Last Post i019945nj  
                              Started by TraderBCL, Today, 04:38 AM
                              2 responses
                              18 views
                              0 likes
                              Last Post TraderBCL  
                              Started by martin70, 03-24-2023, 04:58 AM
                              14 responses
                              106 views
                              0 likes
                              Last Post martin70  
                              Working...
                              X