PDA

View Full Version : Composite Index indicator by Constance Brown for NT?


laurus12
05-20-2010, 04:30 PM
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]);
}

NinjaTrader_Josh
05-20-2010, 04:38 PM
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/partners_onlinetrading_NinjaScript.htm

eDanny
05-20-2010, 06:01 PM
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.

laurus12
05-20-2010, 07:36 PM
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!

laurus12
05-21-2010, 04:14 AM
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. :)

laurus12
10-31-2010, 07:58 AM
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 (http://cardwellrsiedge.com/) and cardwellrsi at hotmail dot com.

My apologies to Mr. Cardwell.

- Laurus12

Edit: Referring to legal notice in post # 1 and 3