log in     sign up for free
 
My attitude is: Never risk your family's security.
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 II

Formula for: TradeStation

indicator

 

 

Views:  1358

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
 


Re : ELA CODE - > Dunn's Density Indicator

· To: Omega-list <Omega-list@xxxxxxxxxx>
· Subject: Re : ELA CODE - > DUNN'S DENSITY INDICATOR
· From: Orphelin@xxxxxxx
· Date: Sun, 4 Oct 1998 18:55:40 EDT
· Resent-Date: Sun, 4 Oct 1998 16:18:23 -0700 (PDT)
· Resent-From: omega-list@xxxxxxxxxx
· Resent-Message-ID: <"38m651.0.BE3._806s"@mx2>
· Resent-Sender: omega-list-request@xxxxxxxxxx

Dans un courrier daté du 04/10/98 22:40:52 , vous avez écrit :

<< 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. >>

Here is a modified and more general version of your code, allowing to use it with any lookback period, and not only on close.

You can divide the result by 0.5*len to normalize it.

As a hint, it always better to use for lops to perform repetitive calculation and allow as input anything that could be changed later.

Sincerely,
Pierre Orphelin

 

 



Code:

Type : Indicator, Name : Dunn's Density Indicator II

{ DUNN'S DENSITY INDICATOR, EL code by Pierre Orphelin
www.sirtrade.com }

inputs: price(c), len(10);

vars: k(0),diff(0),tmp(0),tmp2(0);
diff=price-price[1];
tmp2=0;
for k=0 to len-1 begin
tmp=0;
if diff[k]<>0 then tmp=iff(diff[k]>0,1,-1);
tmp2=tmp2+tmp;
end;

plot1(tmp2,"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):

eVwma
Kase Peak Oscillator
TFS Indicators
eKam CCI
Dunn's Channelanalyzer
Alligator Indicators
Stochastic S&C Indicator
DBS-Day
Dunn's Noisetest
SMI Oscillator
...
 
 
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