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?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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:

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

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;

{ Plot signals in own window, ZigZag on chart }

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.