log in     sign up for free
 
Whenever you get hit, you are very upset emotionally. Most traders try to make it back immediately; they try to play bigger. Whenever you try to get all your losses back at once, you are most often doomed to fail.
Marty Schwartz
 
 
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

Dunn's Density Indicator

Formula for: TradeStation

indicator

 

 

Views:  1367

Added: May 17, 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
 


ELA CODE - > Dunn's Density Indicator
. To: omega-list@xxxxxxxxxx
. Subject: ELA CODE - > DUNN'S DENSITY INDICATOR
. From: "Andy Dunn" <andy@xxxxxxxx>
. Date: Sun, 04 Oct 1998 13:38:36 -0700
. In-Reply-To: <199810041259310520.033DB8B3@xxxxxxxx>
. References: <029901bdefcf$77efe0c0$a473b5cc@xxxxxxxxxxxx>
. Resent-Date: Sun, 4 Oct 1998 13:38:49 -0700
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"Uqmz2.0.SF6.Ppz5s"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

As promosed earlier, no more fight letters today and just juicy code...Is it code like Welle's Wilder thougth up in the seveties? Maybe, and then again...maybe not...you be the judge

WARNING: I make this stuff up as I go, and if my spelling is any indication, this programming may be riddled with unintentional and intentional freaky stuff. Please feel free to correct me where logic and code do not co-incide.

DUNN'S DENSITY OF CLOSES

What Does It Do

It looks at the last 10 days of closes and check one days close against the previous days close and then is +1 or -1. The indicator can swing from -10 to 10. My hope is that an increasing number of closes in a certain direction maybe a lead indicator for a new trend when combined with moving averages etc.

 

 



Code:

Type : Indicator , Name : Dunn's Density Indicator

{Paste this in as an INDICATOR...or paste it into a system}

Value1= C-C[1];
Value2= C[1]-C[2];
Value3= C[2]-C[3];
Value4= C[3]-C[4];
Value5= C[4]-C[5];
Value6= C[5]-C[6];
Value7= C[6]-C[7];
Value8= C[7]-C[8];
Value9= C[8]-C[9];
Value10= C[9]-C[10];
value11=0;
value12=0;

If Value1 > 0 then value11=value11+1;
If Value1 < 0 then value11=value11-1;
If Value2 > 0 then value11=value11+1;
If Value2 < 0 then value11=value11-1;
If Value3 > 0 then value11=value11+1;
If Value3 < 0 then value11=value11-1;
If Value4 > 0 then value11=value11+1;
If Value4 < 0 then value11=value11-1;
If Value5 > 0 then value11=value11+1;
If Value5 < 0 then value11=value11-1;
If Value6 > 0 then value11=value11+1;
If Value6 < 0 then value11=value11-1;
If Value7 > 0 then value11=value11+1;
If Value7 < 0 then value11=value11-1;
If Value8 > 0 then value11=value11+1;
If Value8 < 0 then value11=value11-1;
If Value9 > 0 then value11=value11+1;
If Value9 < 0 then value11=value11-1;
If Value10 > 0 then value11=value11+1;
If Value10 < 0 then value11=value11-1;

plot1(value11, "densityC");
plot2(0, "mid");


 





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

 


Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

ADX / MovAvg
DBS-Day
## Retr Indicator
SMI Oscillator
Measure Cycle Period
## Top & Bottom Indicator
TRIX Indicator S&C
Gap-Trading System
Osc Normalization
Triangle Pattern Indicator
...
 
 
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