log in     sign up for free
 
In order to maximize your profits (let them run), you must be willing to give some of them back.
Van K. Tharp
 
 
Home
systems (284)
 
Special offer: buy AmiBroker and EOD+Real-Time Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
 
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

Price Movement

Formula for: MetaStock

indicator


 

 

Views:  1371

Added: December 11, 2007
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: MetaStock, indicator
 
Your Ad Here
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

 

 



Code:

Price Movement

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

 






Author: Dave Nadeau
Source: http://purebytes.com/archives/metastock/

 

View similar (indicator for MetaStock):

Trend Analysis Index
Gopalakrishnan Range Index (GAPO)
Modified VIX Indicator
Median Price
MACD Histogram - CCT
Finite Volume Elements (FVE)
MACD Additions
Overreaction Index
John Kosar
True Strength Index (TSI) and TSI Moving Average
...
 
 
all formulas for MetaStock
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