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 #

Price Movement by Dave Nadeau
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]On
Behalf Of Rick Lampkin
Sent: Sunday, February 11, 2001 7:41 PM
To: metastock@xxxxxxxxxxxxx
Subject: Explorations

I'm interested in doing some explorations based on price movement. An example would be as follows:

"Yesterdays open greater than the high of 2 days ago and the close of 4 days ago greater than the high of 3 days ago."

Can anyone offer suggestions as to how this might be written in Metastock formula language?
I'm not quite clear as to how you get yesterdays and n days ago into a formula.

Rick

Rick,

Make copious and hearty use of the Ref() function.

Cond1:=Ref(OPEN,-1)>Ref(HIGH,-2);
Cond2:=Ref(CLOSE,-4)>Ref(HIGH,-3);
RL_Indicator:=Cond1 AND Cond2;

Dave Nadeau
Fort Collins, CO


Price Movement

Cond1:=Ref(OPEN,-1)>Ref(HIGH,-2);
Cond2:=Ref(CLOSE,-4)>Ref(HIGH,-3);
Cond1 AND Cond2

 

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!