MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

ZigZag Buy & Sell by Jose Silva

From: Edson L F <edsonlf /at\ bol.com.br>
To: equismetastock /at\ yahoogroups.com <equismetastock /at\ yahoogroups.com>
Date: Sunday, March 26, 2006, 11:31:53 PM
Subject: [EquisMetaStock Group] Signal for the indicator Zig Zag

Hi all,
How to make a signal (positive=buy and negative=sell) for the indicator Zig Zag?

Thanks in advance.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: Jose Silva <josesilva22 /at\ yahoo.com>
To: equismetastock /at\ yahoogroups.com <equismetastock /at\ yahoogroups.com>
Date: Monday, March 27, 2006, 3:52:57 AM
Subject: [EquisMetaStock Group] Re: Signal for the indicator Zig Zag

Edson, try this indicator:


ZigZag Buy & Sell

{ Note!
----
Last leg of ZigZag is *always dynamic*,
and last peak/trough signals are
always plotted in hindsight.

CCopyright 2004~2006 Jose Silva.
For personal use only.
http://www.metastocktools.com }

{ User inputs }
pr:=Input("ZigZag reversal %",.01,100,5);
x:=Input("use: [1]Open, [2]High, [3]Low, [4]Close, [5]WghtCl",1,5,4);
plot:=Input("plot: [1]Signals, [2]ZigZag",1,2,1);

{ Select data array }
x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=4,C,WC()))));

{ ZigZag }
zz:=Zig(x,pr,%);

{ Peak/Trough }
sell:=PeakBars(1,x,pr)=0;
buy:=TroughBars(1,x,pr)=0;

{ Plot signals in own window, ZigZag on chart }
If(plot=1,buy-sell,zz)



 

Source / From: TOP
Metastockusers[at]yahoogroups[dot]com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!