log in     sign up for free
 
When I became a winner I went from 'I figured it out, therefore it can't be wrong' to 'I figured it out, but if I'm wrong, I'm getting the hell out, because I want to save my money and go on to the next trade.'
Marty Schwartz
 
 
Home
systems (284)
 
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

ZigZag

Formula for: TradeStation

indicator


 

 

Views:  2724

Added: August 23, 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
Re: Zig-Zag indicator
To:
Subject: Re: Zig-Zag indicator
From: "Barry Marx"
Date: Wed, 13 Oct 1999 20:24:55 -0400
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

Here's some Tradestation code for the ZigZag indicator that I found on DejaNews a while back. I don't have Tradestation, so I wasn't sure how to interpret some of the statements, and never had much luck translating it into MetaStock. Maybe it will be easier if you're doing it in Excel. Hope it helps.

- Barry

 

 



Code:

Type : Indicator, Name : ZigZag

Inputs: STR(1);
vars: Switch(0);

if Switch = 0 then begin
if high[1] > high[2] and high[1] > high then begin
plot1[1](high[1], "ZigUp");
Switch = 1;
end;
end;

if Switch = 1 then begin
if low[1] < low[2] and low[1] < low then begin
plot1[1](low[1], "ZigUp");
Switch = 0;
end;
end;

 





Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

MACD (DEMA)
VIMA
Pretty Weird Late Night Stuff
Macd Momentum
DIMA Averages
SMI_TRADE Indicator (Stochastic Momentum Index Trade)
T3
SaittaTrend
Vertical Horizontal Filter
Volume Weighted Average Price
...
 
 
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