Metastock Formulas New Review
This formula is designed to identify bullish and bearish divergences between price and momentum.
: Use formulas like C > HHV(C, 20) to find stocks closing above their 20-period highest high.
Breakout with volume filter BreakLevel = Highest(C, 20) VolFilter = V > Mov(V, 20,1) * 1.2 Buy = Cross(C, BreakLevel) AND VolFilter Sell = Cross(BreakLevel, C)
This formula does not ask, "Is price moving fast?" It asks, "Are the heavy dollars moving the price?" This is new. This is contextual.
The MetaStock formula language is a high-level programming structure patterned after spreadsheet languages, used to create custom indicators, system tests, and explorations. For new users, mastering this language involves understanding price array identifiers, mathematical operators, and built-in functions. Core Formula Components metastock formulas new
Finally, the most powerful "new" formula you can write is the one that measures consensus. If everyone is looking at the 200-day moving average, the best formula is the one that fades the break of the 200-day moving average when volatility is extreme.
MetaStock cannot easily mix 1-min and daily bars in one system. But you can using LastValue() + ValueWhen() :
Fixed bandwidth indicators like standard Bollinger Bands fail to adapt when systemic market volatility shifts. This formula alters its width using standard deviations alongside True Range adjustments. MetaStock Formula Language Overview | PDF - Scribd
Alert = RSI(CLOSE, 14) < 30
Subtracts a Weighted Moving Average (WMA) signal line from the EMA trend to produce a highly responsive momentum histogram. 5. Implementation Step-by-Step
Relative Strength Rank (0-100) RS_Score := (C - Ref(C,-20)) / Ref(C,-20) * 100; 20-day return MinRet := Security("C:\MyList.txt", RS_Score); assumes a .txt with tickers MaxRet := Security("C:\MyList.txt", RS_Score); Rank := (RS_Score - MinRet) / (MaxRet - MinRet) * 100; Rank
Cross(data1, data2) : Identifies when one data array crosses above another.
Linear Regression Upper LRS := (14 * Sum(Cum(1) * C, 14) - Sum(Cum(1), 14) * Sum(C, 14)) / (14 * Sum(Pwr(Cum(1), 2), 14) - Pwr(Sum(Cum(1), 14), 2)); LRB := Mov(C, 14, S) - Mov(Cum(1), 14, S) * LRS; LR := LRS * Cum(1) + LRB; LR + 2 * Stdev(LR, 14) Use code with caution. Copied to clipboard How to Use These Formulas Open the Tool MetaStock Explorer or Indicator Builder (found under the Create New : Click the Input Code : Copy and paste the formula into the provided formula box. Save as Template This formula is designed to identify bullish and
Run this exploration on your watchlist. It will return a "1" for stocks that are currently in a confirmed, healthy trend, allowing you to focus your attention only on actionable setups.
With The Explorer, you can set up to six , each representing a unique calculated value (like a specific indicator reading), and a filter to narrow down your results. You can then run the exploration on selected files or folders of securities. Imagine scanning for all stocks where:
In recent years, the MetaStock community has developed a wide range of new and innovative formulas that cater to the evolving needs of modern traders. Some of the most notable and effective formulas include:



