log in     sign up for free
 
The trading rules I live by are: 1. Cut losses. 2. Ride winners. 3. Keep bets small. 4. Follow the rules without question. 5. Know when to break the rules.
Ed Seykota
 
 
Home
systems (284)
 
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

Swing Wave Indicator

Formula for: TradeStation

indicator


 

 

Views:  1975

Added: August 02, 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
 
Your Ad Here
Convert Free Indicators & System
. To: omega-list@xxxxxxxxxx
. Subject: Convert Free Indicators & System
. From: Visavis
. Date: Sun, 5 Apr 1998 08:35:16 +0800 (PST)
. Resent-Date: Sat, 4 Apr 1998 16:35:45 -0800
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"k3QFU3.0.uR6.M7j9r"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

Hi!

Can someone convert the following free indicators & systems which I got from Angus Jackson into ELA format?

Thanks in advance.

Free indicators for Tradestation.

 

 



Code:

Type : Indicator, Name : Swing Wave Indicator

Vars:
VLineUp(0),
VLineDn(0),
Highest(0),
Lowest(0),
JustChanged(FALSE),
VLine(0);

Array:
Highs[22](0),
Lows[22](0),
Range[22](0),
UpWave[1](FALSE),
DnWave[1](FALSE);

{MaxBarsBack = 21}

JustChanged = FALSE;

if CurrentBar <= 21 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
Range[CurrentBar] = (High - Low) /2;
end;

if CurrentBar = 22 then begin
if Highs[21] >= Highs[20] then begin
UpWave[1] = TRUE;
Highest = Highs[21];
VLineUp = Highest - (3 * Average((High - Low),21));
Plot1(VLineUp,"VLineUp");
end;

if Highs[21] < Highs[20] then begin
DnWave[1] = TRUE;
Lowest = Lows[21];
VLineDn = Lowest + (3 * Average((High - Low),21));
Plot2(VLineDn,"VLineDn");
end;
end;

if CurrentBar > 22 then begin

if DnWave[1] and Close > VLineDn then begin {WAVE CHANGE}
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
Highest = Close;
Lowest = 0;
end;

if UpWave[1] and Close < VLineUp and JustChanged = FALSE then begin
{WAVE CHANGE}
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
Lowest = Close;
Highest = 0;
end;

if JustChanged = FALSE then begin
if Close > Highest then Highest = Close
else if Close < Lowest then Lowest = Close;
end;

{CALCULATIONS AND PLOT STATMENTS}
VLineUp = Highest - (3 * Average((High - Low),21));
VLineDn = Lowest + (3 * Average((High - Low),21));

if UpWave[1] then Plot1(VLineUp,"VLineUp")
else if DnWave[1] then Plot2(VLineDn,"VLineDn");

end;


 





Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

Donchian Channel
Stochastic S&C Indicator
Ichimoku Charts
Measure Cycle Period
Support and Resistance Indicator
DIMA Averages
MACD RS
RMI Indicator
## Top & Bottom Indicator
Dunn's Density 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.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012