log in     sign up for free
 
There are many different classifications of exits other than your initial stop loss. These include exits that produce a loss but reduce your initial risk, exits that maximize profits, and exits that keep you from giving back too much money, and psychological exits.
Van K. Tharp
 
 
Home
systems (285)
 
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

CC_Counter Indicator

Formula for: TradeStation

indicator

 

 

Views:  1805

Added: January 24, 2007
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: TradeStation, indicator
 


CC_Counter indicator
. To: omega-list@xxxxxxxxxx
. Subject: CC_Counter indicator
. From: "J. Sallen"
. Date: Tue, 17 Nov 1998 10:05:08 -0600
. Resent-Date: Tue, 17 Nov 1998 08:01:43 -0800
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"dfBEc3.0.AN6.dtPKs"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

This indicator counts consecutive closes up and down. Maybe someone can find a good use for it.

Jack Sallen

{Written: J. Sallen 10/03/98}
Inputs: Len(10);
vars: k(0);
Array:CC[100](0);

For K=0 to Len-1 begin
CC[K] = C[k]-C[k+1];
end;

value2=0;

For K=0 to Len-1 begin
Value1=CC[k];
IF value1>0 then value2=value2+1;
IF value1<0 then value2=value2-1;
end;

plot1(value2,"CC_Count");

[15294]

Re: CC_Counter indicator

. To: omega-list@xxxxxxxxxx
. Subject: Re: CC_Counter indicator
. From: "Gary Fritz"
. Date: Tue, 17 Nov 1998 12:14:09 -0700
. In-reply-to: <36519EB4.D72A8D46@xxxxxxxxx>
. Priority: normal
. Reply-to: fritz@xxxxxxxx
. Resent-Date: Tue, 17 Nov 1998 11:14:16 -0800
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"t7kNd2.0.zf7.8iSKs"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

"J. Sallen"
> This indicator counts consecutive closes up and down. Maybe someone can find a good use for it.

Hi Jack,

Actually it looks to me like your indicator plots a summation of the ups and downs in the last Len bars -- right? (I.e. if there were 4 ups and 6 downs, it would plot -2, regardless of what order they came in.) And that may actually be more useful than the consecutive ups/downs.

Notice that it always jumps by 2, since you're always adding one at the end of the Len-long window and removing one from the start. So either the cumulative total remains the same (add one up / remove one up, add one down / remove one down) or it changes by 2 (add up / remove down, etc).

Here's a slight modification of your indicator that doesn't require the CC array. I've also added an extra plot that does compute the consecutive number of ups/downs. Notice this one never has a value of zero, since it goes from "N down closes" to "1 up close" and vice versa.

Gary

 

 



Code:

Type : Indicator , Name : CC_Counter Indicator

{Written: J. Sallen 10/03/98}
Inputs: Len(10);
vars: k(0); value2 = 0;
For K=0 to Len-1 begin
IF C[K]>C[K+1] then value2=value2+1
else value2=value2-1;
end;

plot1(value2,"CC_Count");

Vars: CCount(0);

if (C > C[1]) then begin
if (CCount > 0)
then CCount = CCount+1
else CCount = 1;
end
else begin
if (CCount < 0)
then CCount = CCount-1
else CCount = -1;
end;

plot2(CCount, "CC2");
plot3(0, "");


 





Code to difficult? Find somebody to help you with coding here.

 



Author: Jack Sallen
Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

T3
VIMA
SaittaTrend
Vertical Horizontal Filter
Preferred (Slow) Oscillator
## Top & Bottom Indicator
Rainbow Charts
Band Width Indicator
Draw Linear Regression Lines For Two Past Periods
Double Smoothed Exponential Moving Average
...
 
 
all formulas for TradeStation
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
PayPalSecure payments by PayPal S4T™ is a part of TAURO EDUCATION NETWORK
 
Privacy note | (c) copyrights systems4trading.com 2006-2009