log in     sign up for free
 
In order to maximize your profits (let them run), you must be willing to give some of them back.
Van K. Tharp
 
 
Home
systems (285)
 
 
Special offer: buy AmiBroker and EOD+Real-Time 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

IE/2

Formula for: TradeStation

indicator

 

 

Views:  1252

Added: June 06, 2008
 
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
 


Last month, Tim Tillson provided a smoother way of using moving averages in his article "Smoothing techniques for more accurate signals." Here are two studies for use with TradeStation or SuperCharts that are based on the smoothing techniques discussed by Tillson. The indicators are called T3 and IE/2.
T3 plots a smoothed moving average line whose value falls anywhere between the double exponential moving average calculation (DEMA) and an exponential moving average (EMA). IE/2 plots a moving average that is derived from evenly splitting a combination of the integral of the linear regression slope (ILRS) and the endpoint moving average (EPMA). Both indicators include a basic alert criteria that is triggered when the close crosses above/below the smooth plotted value.

The basis of the calculation for the T3 indicator occurs in a function referred to as GD. This function handles the calculation known as generalized DEMA. The T3 indicator will handle the multiple smoothing of the generalized DEMA. As with any indicator that's based in part on a function, we must first begin by creating the function.




Type: Function, Name: GD
Inputs:
Price(Numeric),
Period(Numeric),
vFactor(Numeric);

Vars:
X1(0),
X2(0),
Dema1(0);

X1= XAverage(Price, Period) * (1 + vFactor);
X2= XAverage(XAverage(Price, Period), Period) * vFactor;
GD = X1 - X2;




The second study is the IE/2 indicator. This entails a relatively simple calculation that utilizes several of TradeStation's built-in functions. Thus, all necessary calculations are contained within the indicator itself.




Type: Indicator, Name: IE/2


Inputs:
Price(Close),
Period(15);
Vars:
ILRS(0),
EPMA(0),
IE(0);

ILRS = LinearRegSlope(Price, Period) + Average(Price, Period);
EPMA = LinearRegValue(Price, Period, 0);
IE = (ILRS + EPMA) / 2;
Plot1(IE, "IE/2");
IF Close Crosses Above Plot1 OR Close Crosses Below Plot1 Then
Alert = True;






The scaling for the IE/2 indicator should be set to "Same as price data."
This code is also available at Omega Research's Web site. The name of the file is "Smooth.ELA." Note that all Traders' Tips posted at Omega Research's Web site can be utilized by both TradeStation and SuperCharts. Whenever possible, the posted techniques include both the Quick Editor and Power Editor formats.

Gaston Sanchez, Omega Research
800 422-8587, 305 270-1095
Internet: http://www/omegaresearch.com

 

 



Code:



Type: Function, Name: GD
Inputs:
Price(Numeric),
Period(Numeric),
vFactor(Numeric);

Vars:
X1(0),
X2(0),
Dema1(0);

X1= XAverage(Price, Period) * (1 + vFactor);
X2= XAverage(XAverage(Price, Period), Period) * vFactor;
GD = X1 - X2;






Type: Indicator, Name: IE/2


Inputs:
Price(Close),
Period(15);
Vars:
ILRS(0),
EPMA(0),
IE(0);

ILRS = LinearRegSlope(Price, Period) + Average(Price, Period);
EPMA = LinearRegValue(Price, Period, 0);
IE = (ILRS + EPMA) / 2;
Plot1(IE, "IE/2");
IF Close Crosses Above Plot1 OR Close Crosses Below Plot1 Then
Alert = True;



 





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

 



Author: Tim Tillson
Source: http://www.traders.com

 

View similar (indicator for TradeStation):

ZigZag
Trend Detection Index
Cosine IFM
Nonlinear Ehlers Filter
CCI - Stochastic (CCI-STO)
Keltner Bands
Historical Volatility
Klinger Volume Oscillator
SMI_TRADE Indicator (Stochastic Momentum Index Trade)
LBR_3/10 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