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 #

Cycle Formula
Cycle formulas

To: atran@xxxxxxxxxxxxx, metastock-list@xxxxxxxxxxxxx
Subject: Re: Cycle formulas
From: Chip Anderson <chipamy@xxxxxxxxx>
Date: Wed, 31 Dec 1997 12:59:28 -0800 (PST)
Reply-To: chipa@xxxxxxxxxxxxxxx
Resent-Date: Wed, 31 Dec 1997 14:06:12 -0700
Resent-From: metastock-list@xxxxxxxxxxxxx
Resent-Message-ID: <"nxESO2.0.tI2.3Fhgq"@mail.equis.com>
Resent-Sender: metastock-list-request@xxxxxxxxxxxxx

I'm not sure if this was answered already but...

If the number of periods is a fixed constant, you can use the following formula:

Sin(Cum(360/{x}))

For example, if you wanted to plot a sine wave that cycled every 10 periods, use:

Sin(Cum(360/10))

If you want to set the number of periods in the cycle each time you plot it, use the following formula:


Cycle Formula

periods:=input("Enter number of periods:", 2, 360, 50);
Sin(Cum(360/periods));

 

I recommend that you plot this indicator by overlaying it with the price plot and _not_ merging the scales.

Hope this helps,
Chip

http://coolhistory.com/ChipsCharts

[4114]
Source / From: TOP
http://purebytes.com/archives/metastock/

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!