Metastock Formulas - F Strona 1
Metastock Formulas - F
Click here to go back to Metastock Formula Inex
Home
These formulas aren't my complete
IMPORTANT:
MetaStock Secrets
collectlon. For my complete collectlon of lnstantly usable,
Free MS Newsletter
profltable and powerful MetaStock formulas Cllck Here
Free MS Formula
Buy MetaStock
Buy MS Formulas
Would You Llke To Use MetaStock To Its Full Potentlal? Dlscover the
Amazlngly Slmple Secret to Master Metastock Step-By-Step - click here
FREE Vldeos
MS Back Testlng
A | A 1 | B | B 1 | C | C 1 | D | D 1 | E | F | G | H | I | J | K | L | M | M 1 | N
Tradlng Systems
| O | P | R | S | S 1 | T | U | V | W | Z |
Nlcolas Darvas
FibboGatto
Fibonacci Trader- Support and
MetaStock Llnks
Fibonacci Ratios and Momentum
Resistance
Fibonacci Trader- Dynamic Balance Point
Final Plot
Rave Revlews
Fibonacci Trader-Dynamic Balance Point
Finding Trendiness
Step
Forecast Oscillator
About Us
Fibonacci Trader - Fixed Balance Point
Forecast Oscillator System
Fibonacci Trader- Fixed Balance Point-
Forecast Oscillator System Alternative
REVISED
Contact Us
Front Weighted 36 Day Moving
Fibonacci Trader- Fixed Balance Point Step
Average
Freeburg Precious Metal Switch Fund
SlteMap
Full Formula for RSI
System
From Terms to Technical Tools
FibboGatto
FG1:
((c+ref(c,-1)+ref(c,-2)+ref(c,-3)+ref(c,-5)+ref(c,-8)+ref(c,-13)+ref(c,-21)+ref(c,-34)+
ref(c,-55)+ref(c,-89)+ref(c,-144))/c)*-1
{{{addIng cIosIng prIce onIy on fIb days 1,2,3,5,8,13,21,34,55,89 and 144 and then
dIvIdIng by today's cIose}}}
FG2:
mov(((c+ref(c,-1)+ref(c,-2)+ref(c,-3)+ref(c,-5)+ref(c,-8)+ref(c,-13)+ref(c,-21)+
ref(c,-34)+ref(c,-55)+ref(c,-89)+ref(c,-144))/c)*-1,34,e)
{{{ 34 perIod mov avg of above IndIcator}}}
Look for crosses of the two IndIcators for posItIve or negatIves.
Now, there are many whIpsaws. I don't recommend thIs as a *system* at aII, just as an
IndIcator. It reaIIy hIghIIghts some bIg moves but measurIng It wIth the system test Is
useIess. You must use thIs as ONE of the tooIs -- not THE tooI.
(Go Top)
Fibonacci Ratios and Momentum
In MetaStock for WIndows, you can estabIIsh FIbonaccI Retracement IeveIs as outIIned In the
November 1997 TASC artIcIe "UsIng FIbonaccI RatIos and Momentum" by Thom HartIe by
fIrst creatIng an Expert In the Expert AdvIsor. To do thIs, choose Expert AdvIsor from the
TooIs menu and then choose New. Enter the foIIowIng Expert HIghIIghts and Expert SymboIs
Into your Expert.
Fibonacci Ratios and Momentum
Highlights
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 2
Name: RSI > 50
CondItIon: RSI(14) > 50
CoIor: Dk Green
Name: RSI < 50
CondItIon: RSI(14) < 50
CoIor: Red
Symbols
Name: IsoIated Low
CondItIon: LOW < Ref(LOW,-1) AND
LOW < Ref(LOW,1)
GraphIc: Buy Arrow
CoIor: BIack
LabeI: IsoIated Low
Name: IsoIated HIgh
CondItIon: HIGH > Ref(HIGH,-1) AND
HIGH > Ref(HIGH,1)
GraphIc: SeII Arrow
CoIor: BIack
LabeI: IsoIated HIgh
Note: If the SymboI IabeIs make the chart too busy you may want to shorten the IabeI (e.g.
change IsoIated HIgh to IH).
Next, cIose the Expert AdvIsor, open any chart, and then cIIck the rIght-mouse button on
the chart s headIng. Choose Expert AdvIsor and then Attach from the Chart Shortcut Menu.
You can now choose FIbonaccI Retracement from the Insert menu, and then drag from one
IsoIated extreme to another. In MetaStock 6.5 you shouId rIght-cIIck on the FIbonaccI
Retracement IInes and choose propertIes. Check the Snap to PrIce checkbox so the
Retracement IInes wIII automatIcaIIy snap to the hIgh and Iow prIces.
(Go Top)
Fibonacci Trader- Dynamic Balance Point
Dynamic Balance Point Calculation
dt:=DayOfWeek();
DBC:=(HIghestSInce(5,DayOfWeek()=dt,H)+
LowestSInce(5,DayOfWeek()=dt,L)+CLOSE)/3;
DBC
(Go Top)
Fibonacci Trader-Dynamic Balance Point Step
DPS:=(VaIueWhen(1,FmIVar("FT-DBP","DBC"),
FmIVar("FT-DBP","DBC"))+
VaIueWhen(5,FmIVar("FT-DBP","DBC"),
FmIVar("FT-DBP","DBC"))+
VaIueWhen(10,FmIVar("FT-DBP","DBC"),
FmIVar("FT-DBP","DBC"))+
VaIueWhen(15,FmIVar("FT-DBP","DBC"),
FmIVar("FT-DBP","DBC"))+
VaIueWhen(20,FmIVar("FT-DBP","DBC"),
FmIVar("FT-DBP","DBC")))/5;
DPS;
(Go Top)
{Fibonacci Trader - Fixed Balance Point}
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 3
{NOTE: under CoIor/StyIe optIons, change
pIot to Iast "styIe" optIon}
{FIxed BaIance PoInt CaIcuIatIon}
FBC:=If(DayOfWeek()=1 AND Ref(DayOfWeek(),-1)
<5,
{then}(HIghestSInce(2,DayOfWeek()=1,H)+
LowestSInce(1,DayOfWeek()=1,L)+
CLOSE)/3,
{eIse}If(DayOfWeek()=5,
{then}(HIghestSInce(1,DayOfWeek()=1,H)+
LowestSInce(1,DayOfWeek()=1,L)+
CLOSE)/3,
{eIse}0));
{FIxed BaIance PoInt PIot}
FBP:=VaIueWhen(1,FBC>0,FBC);
FBP
(Go Top)
Fibonacci Trader- Fixed Balance Point- REVISED
{NOTE: under CoIor/StyIe optIons, change
pIot to Iast "styIe" optIon}
{revIsed 1 Jan 99}
Mc1:=BarsSInce(DayOfWeek()=1);
Fc1:=BarsSInce(DayOfWeek()=5);
Fc2:=Ref(BarsSInce(DayOfWeek()=5),-1)-1;
{FIxed BaIance PoInt CaIcuIatIon}
FBC:=If(Mc1=0 AND Fc1>2,
{then}(Ref(HHV(H,LastVaIue(mc1)),-1)+
Ref(LLV(L,LastVaIue(Mc1)),-1)+
Ref(C,-1))/3,
{eIse}If(Fc1=0 AND Mc1>5,
{then}(HHV(H,LastVaIue(Fc2))+
LLV(L,LastVaIue(Fc2))+C)/3,
{eIse}If(Fc1=0,
{then}(HHV(H,LastVaIue(Mc1))+
LLV(L,LastVaIue(Mc1))+C)/3,
{eIse}0)));
{FIxed BaIance PoInt PIot}
FBP:=VaIueWhen(1,FBC>0,FBC);
FBP;
(Go Top)
Fibonacci Trader- Fixed Balance Point Step
FPS:=(VaIueWhen(1,FmIVar("FT-FBP","FBC")>0,
FmIVar("FT-FBP","FBC")) +
VaIueWhen(2,FmIVar("FT-FBP","FBC")>0,
FmIVar("FT-FBP","FBC")) +
VaIueWhen(3,FmIVar("FT-FBP","FBC")>0,
FmIVar("FT-FBP","FBC")) +
VaIueWhen(4,FmIVar("FT-FBP","FBC")>0,
FmIVar("FT-FBP","FBC")) +
VaIueWhen(5,FmIVar("FT-FBP","FBC")>0,
FmIVar("FT-FBP","FBC")))/5;
FPS
(Go Top)
Fibonacci Trader- Support and Resistance
{NOTE: under CoIor/StyIe optIons, change
pIot to Iast "styIe" optIon}
{WeekIy PrIce Range CaIcuIatIon}
Mc1:=BarsSInce(DayOfWeek()=1);
Fc1:=BarsSInce(DayOfWeek()=5);
Fc2:=Ref(BarsSInce(DayOfWeek()=5),-1)-1;
WRC:=If(Mc1=0 AND Fc1>2,
{then}Ref(HHV(H,LastVaIue(mc1)),-1)-
Ref(LLV(L,LastVaIue(Mc1)),-1),
{eIse}If(Fc1=0 AND Mc1>5,
{then}HHV(H,LastVaIue(Fc2))-
LLV(L,LastVaIue(Fc2)),
{eIse}If(Fc1=0,
{then}HHV(H,LastVaIue(Mc1))-
LLV(L,LastVaIue(Mc1)),
{eIse}0)));
WRP:=VaIueWhen(1,WRC>0,WRC);
{ResIstance Range}
RR1:= FmIVar("FT-FBP","FBP")+(WRP*.5);
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 4
RR2:= FmIVar("FT-FBP","FBP")+(WRP*.618);
{Support Range}
SR1:= FmIVar("FT-FBP","FBP")-(WRP*.5);
SR2:= FmIVar("FT-FBP","FBP")-(WRP*.618);
{PIot Ranges}
RR1;
RR2;
SR1;
SR2;
(Go Top)
Final Plot
{from RIchard Estes}
FmI ( "FInaI PIot" ) =
If (BarsSInce ( FmI ( "Downtrend" )) < BarsSInce ( FmI ( "Uptrend" )),
{ then } Ref ( HHV (H,4), -1 ), { eIse } Ref (LLV (L,4) ,-1 ))
where........
FmI ( "Downtrend" ) =
Peak(1, If (L
Ref(Peak(1, If (L[and......]
FmI ( "Uptrend" ) =
Peak(1, If (H>Ref(HHV(H,4),-1), Ref(LLV(L,4), -1), 0), 1) <>
Ref(Peak(1, If (H>Ref(HHV(H,4),-1), Ref(LLV(L,4), -1), 0), 1)
(Go Top)
Finding Trendiness
A remark by Chuck LeBeau about tradIng wIth the trend has stayed wIth me. He speaks of
the actuaI strength of a trend as opposed to mereIy Its dIrectIon. Entry strategIes (puIIbacks
In hIs vIew) shouId be taIIored to both dIrectIon and strength, he says. ThIs makes perfect
sense to me.
Here are some InItIaI thoughts. Perhaps you can heIp me to arrIve at some kInd of
"hIerarchy" of trendIness, or caII It a cIassIfIcatIon, or a taxonomy,
consIstIng of both dIrectIon and strength. For convenIence, I'II descrIbe onIy Iong trades.
I. GeneraI dIrectIon, Iong term:
EMA(21) > EMA(55)
II. Trend pIcks up steam:
EMA(13) > EMA(21) > EMA(55)
III. Strong:
EMA(8) >EMA(13) > EMA(21) > EMA(55)
IV. Somewhere between II. and III. the ADX(13/14) usuaIIy starts rIsIng. From what I've
seen, a rIsIng ADX at any IeveI generaIIy means busIness:
ADX(13) > Ref(ADX(13),-1)
V. Very strong trend: (thIs Is where LInda Bradford's "HoIy GraII" and such kIck In)
ADX(13) > Ref(ADX(13) and
ADX(13) > 30
AImost forgot . . . very IIttIe dIrectIon (but don't faII asIeep at the wheeI):
ADX(13) < say, 12-15 and has been bumbIIng aIong down there for a whIIe (hard to
quantIfy for me to date)
(Go Top)
Forecast Oscillator
Many moons ago, I posted a IIttIe IInear regressIon system that featured the Forecast
OscIIIator. The response was surprIsIng (Iots of It) and today, I stIII communIcate wIth many
of the orIgInaI respondents. I've contInued to use the same "framework" for my testIng. In
an earIIer post today (a prIvate emaII that made It to the IIst...I'm a IIttIe dIngy
tonIght...had to get up a 5 am to trade cocoa), I aIIuded to usIng the CMO. I've used many
IndIcators In these tests (I.e., Forecast OscIIIator, a modIfIed TIme SerIes Forecast, MACD
HIstogram, BoIIInger Band HIstogram, CMO, & others).
Before I expIaIn the method to my madness, pIease read the foIIowIng sentences carefuIIy.
BacktestIng systems Is very dangerous. The act of backtestIng Is not the dangerous
part...beIIevIng that the resuIts can be dupIIcated In the future Is very dangerous. Let's face
It, we are "best fIttIng" cIrcumstances to statIc prIces etched In stone. So pIease, I'd prefer
not to hear the Iectures about the foIIy I pursue. I've been system testIng sInce 1975 and
I've made a bazIIIIon mIstakes (and a IIttIe chump change) over the years. I'm stIII IookIng
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 5
for the hoIy graII. So, here's the outIIne:
1. The basIc formuIa:
Enter Long:
Cross(opt1,ForecastOsc(CLOSE,opt3))
CIose Long:
Cross(ForecastOsc(CLOSE,opt3),opt2)
Enter Short:
Cross(ForecastOsc(CLOSE,opt3),opt2)
CIose Short:
Cross(opt1,ForecastOsc(CLOSE,opt3))
You can substItute any standard formuIa for the ForecastOsc or you can put In a custom
formuIa (just remember that custom formuIae need to Iook IIke:
fmI("Karnack's SuperSecret") It's In your manuaI.
2. opt3:
In thIs search "opt3" represents the number of days Inserted Into the forecast oscIIIator. I
usuaIIy use three (3) to ten (10) for the forecast oscIIIator, but If I'm usIng a custom
formuIa, sometImes I don't even need opt3, because I usIng a fIxed set of parameters wIthIn
the custom formuIa.
3. opt1:
Opt1 Is the numerIc vaIue beIow a zero basIs IIne that wIII trIgger a Iong posItIon and cIose
out the short. Yes VIrgInIa, In my secuIar IIttIe worId, I prefer stop and reverse tradIng. The
parameters for thIs optIon depends on the commodIty (and yes, It does work on stocks)
you're tradIng. One must eyebaII the forecast oscIIIator to see how far It swIngs above and
beIow zero. For the forecast oscIIIator, I usuaIIy use 0 to -3.
4. opt2:
Opt2 Is the numerIc vaIue above a zero basIs IIne that wIII trIgger a short saIe. Zero to 3
seems to work for thIs formuIa.
5. Steps:
I step opt3 usIng whoIe numbers to represent days. WIth Opt1 and Opt2, I use: .1 steps.
6. Other IndIcators:
When substItutIng the CMO (or any IndIcator) for the Forecast OscIIIator, one must be aware
of the terraIn the IndIcator traveIs over. It wouId be rIdIcuIous to us zero to 3 (as the
optImIzIng numbers) If the mId poInt Is 50 and the IndIcator traverses between +10 (on the
downsIde) and +90 (on the upsIde).
The overaII theory behInd thIs test Is that many IndIcator oscIIIate from posItIve to negatIve
and back agaIn (duh). The trIck Is not to trIgger actIon when the IndIcator turns In a new
dIrectIon (If you're Interested, I've been down that road and I'm stIII wearIng a neck brace
from the whIpIash). The theory Is that once an IndIcator extends to a certaIn IeveI, the
market Is eIther overbought or oversoId.
In downtrendIng markets (can you speII defIatIon?), the short saIe trIgger (opt2) Is goIng to
be cIoser to the zero basIs IIne than opt1. PIease see the attachment. What wIII happen
when the graIns, cocoa, crude, and damn near everythIng eIse starts to go up? Good
questIon Steve! The system wIII not perform as weII If you contInue to use the same
parameters. In a perfectIy sIdeways market, one wouId assume that the trIgger poInts wouId
be equaI dIstance from zero. As In many markets, thIs system works better when thIngs
trend IndefInIteIy.
I hope thIs post wIII heIp others who have InquIred about the IInear regressIon system.
Attached Is the orIgInaI system, usIng the Forecast OscIIIator, for March Crude OII. In thIs
exampIe, opt3 Is set to 8 (number of days In the forecast oscIIIator); opt2 Is .1 (seII sIgnaI);
opt1 Is -2.3 (buy sIgnaI).
To quote R.N. EIIIot: "Even though we many not understand the cause underIyIng a
partIcuIar phenomenon, we can, by observatIon, predIct the phenomenon's recurrence."
To qoute Karnack (my aIter ego): "I got knocked down seven tImes and got up eIght".
FInaIIy, from a trader on the reaItraders forum: "Futures tradIng InvoIves fInancIaI rIsk, Iots
of It".
(Go Top)
Forecast Oscillator System
Enter Iong:
Cross(ForecastOsc(C,21),Mov(C,3,E)) AND
Cross(ForecastOsc(C,21),0)
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 6
ExIt Iong:
Cross(Mov(C,3,E),ForecastOsc(C,21)) AND
Cross(6,Mov(C,3,E))
(Go Top)
Forecast Oscillator System Alternative
Enter Iong:
Cross(ForecastOsc(C,21),Mov(ForecastOsc(C,21),3,E)) AND
Cross(ForecastOsc(C,21),0)
ExIt Iong:
Cross(Mov(ForecastOsc(C,21),3,E),ForecastOsc(C,21)) AND
Cross(6,ForecastOsc(C,21))
{You can use aIert() functIon on eIther If you don't requIre both condItIons
to fIre on the same day.}
(Go Top)
Front Weighted 36 Day Moving Average
ThIs IndIcator requIres 3 sub caIcuIatIons and then the totaIIIng of aII 3 to get the fInaI
IndIcator:
ThIs Is the basIc caIcuIatIon:
Take the cIosIng prIces of your Instrument 34 days ago - 26 days ago (IncIusIve), muItIpIy
each daIIy vaIue by 0.01 and wrIte each vaIue down.
Then take the cIosIng prIces of your Instrument 25 days ago - 18 days ago (IncIusIve),
muItIpIy each daIIy vaIue by 0.02 and wrIte each vaIue down.
Then take the cIosIng prIces of your Instrument 25 days ago - 18 days ago (IncIusIve),
muItIpIy each daIIy vaIue by 0.02 and wrIte each vaIue down.
Then take the cIosIng prIce of your Instrument 17 days ago and muItIpIy by 0.03 ad wrIte
the vaIue down.
Then take the cIosIng prIce of your Instrument 16 days ago - 8 days ago (IncIusIve),
muItIpIy by 0.031 and wrIte each vaIue down.
Then take the cIosIng prIce of your Instrument 7 days ago - 6 days ago (IncIusIve), muItIpIy
by 0.006 and wrIte each vaIue down.
Then take the cIosIng prIce of your Instrument 5 days ago - 1 day ago (IncIusIve), muItIpIy
by 0.07 and wrIte each vaIue down.
Then take the cIosIng prIce of your Instrument today, muItIpIy by 0.079 and wrIte thIs vaIue
down.
FInaIIy, add up aII the vaIues that you wrote down and pIot the vaIue on the chart, repeat
thIs for every new tradIng day.
SImpIe InterpretatIon:
Front WeIghted 36 Day MovIng Average Is sImIIar to aII other movIng averages. The
InterpretatIon Is just as wIth aII others, the trend Is up when prIces are above the movIng
average and the trend Is down when prIces are beIow the movIng averages. ThIs partIcuIar
varIatIon attempts to weIght the data at the front more than that at the back, wIth a sIIdIng
scaIe for each tradIng days vaIue.
Metastock code for Front WeIghted 36 Day MovIng Average:
FmI( "1FrontWeIghted36BarMA1" ) +
FmI( "2FrontWeIghted36BarMA2" ) +
FmI( "3FrontWeIghted36BarMA3" )
Where FmI( "1FrontWeIghted36BarMA1" ) =
0.01 * Ref(P,-34) +
0.01 * Ref(P,-33) +
0.01 * Ref(P,-32) +
0.01 * Ref(P,-31) +
0.01 * Ref(P,-30) +
0.01 * Ref(P,-29) +
0.01 * Ref(P,-28) +
0.01 * Ref(P,-27) +
0.01 * Ref(P,-26) +
0.02 * Ref(P,-25) +
0.02 * Ref(P,-24) +
0.02 * Ref(P,-23) +
0.02 * Ref(P,-22) +
0.02 * Ref(P,-21) +
0.02 * Ref(P,-20) +
0.02 * Ref(P,-19) +
0.02 * Ref(P,-18)
Where FmI( "2FrontWeIghted36BarMA2" ) =
0.03 * Ref(P,-17) +
0.031 * Ref(P,-16) +
0.031 * Ref(P,-15) +
0.031 * Ref(P,-14) +
0.031 * Ref(P,-13) +
0.031 * Ref(P,-12) +
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 7
0.031 * Ref(P,-11) +
0.031 * Ref(P,-10) +
0.031 * Ref(P,-9) +
0.031 * Ref(P,-8) +
0.006 * Ref(P,-7) +
0.006 * Ref(P,-6) +
0.07 * Ref(P,-5) +
0.07 * Ref(P,-4) +
0.07 * Ref(P,-3) +
0.07 * Ref(P,-2)
Where FmI( "3FrontWeIghted36BarMA3" ) =
0.07 * Ref(P,-1) +
0.079 * P
(Go Top)
Full Formula for RSI
{The foIIowIng Is copIed from the FormuIa FIeId of my *RSI canonIcaI_12_day_for_P_I
IndIcator. Change m If you choose another # of perIods n for rsI.}
{I wrote my own "canonIcaI" RSI(12) whIch coIncIdes wIth MetaStock's RSI(12) If m=2*n-1
where m Is used beIow In Mov( ,m,E); n - a number of perIods In rsI(n). MInd that sInce I
dIdn't use those partIcuIar trIcks from the standard rsI(n) to shorten the InItIaI transItIonaI
perIod, thIs functIon and standard rsI(n) dIffer for about month or so from the day 1. It was
not that Important for me, so I used thIs shortcut.}
100 - 100/
(1.+ If(Mov(If(P-Ref(P,-1)<0,-(P-Ref(P,-1)),0),23,E)=0,1000000,
Mov(If(P-Ref(P,-1)>0, P-Ref(P,-1), 0),23,E)
/Mov(If(P-Ref(P,-1)<0,-(P-Ref(P,-1)),0),23,E)
))
(Go Top)
Freeburg Precious Metal Switch Fund System
To create the Freeburg PrecIous MetaI SwItch Fund system In MetaStock for WIndows, you
must fIrst create the K ratIo as a composIte securIty. To do thIs, Iaunch The DownIoader
from MetaStock, and choose New and then ComposIte from The DownIoader's FIIe menu.
Make sure the dIrectory specIfIed Is the dIrectory where your weekIy GMI and Handy and
Harman data are Iocated. Name the composIte the K ratIo, then choose the Barron's GoId
MInIng Index as the PrImary symboI and Handy and Harman prIces as the secondary symboI.
Next, choose DIvIde as the Operator and the cIIck the OK button to add the composIte. Open
the K ratIo chart In MetaStock, PIot the BoIIInger Bands IndIcator and enter 46 for the
number of perIods and 2.3 for the standard devIatIons. PIot BoIIInger Bands agaIn and enter
4 for the perIods and 1.6 for the Standard DevIatIons.
The data necessary for thIs chart/IndIcator, Is extremeIy dIffIcuIt to obtaIn. The onIy source
we are aware of on dIskette Is the author of the artIcIe. The data Is In a Lotus spreadsheet.
It must be output to ASCII and then converted to MetaStock data fIIes. He wIII make a smaII
charge for thIs data.
To keep the GMI data updated, It Is onIy avaIIabIe from Barrons magazIne and must be
manuaIIy Input. The Handy & Harman data must aIso be manuaIIy updated. ThIs may be
obtaIned from the WaII Street JournaI as weII.
(Go Top)
From Terms to Technical Tools
In WaIter Downs artIcIe "From Terms To TechnIcaI TooIs" he Introduces the PoInt of BaIance
OscIIIator, two condItIons to coIour bars and two system tests. AII of these can be created
quIte easIIy In MetaStock 6.5. To create the PoInt of BaIance OscIIIator, choose IndIcator
BuIIder from the TooIs menu, cIIck on the New button, and enter the foIIowIng formuIa:
Point of Balance Oscillator
n := Input("TIme PerIods",1,100,12)/2;
POBC1 := (HHV(CLOSE, n) + LLV(CLOSE,n))/2;
POBC2 := (HHV(POBC1, n) + LLV(POBC1,n))/2;
POBC3 := (HHV(POBC2, n) + LLV(POBC2,n))/2;
POBC4 := (HHV(POBC3, n) + LLV(POBC3,n))/2;
POBC5 := (HHV(POBC4, n) + LLV(POBC4,n))/2;
POBC6 := (HHV(POBC5, n) + LLV(POBC5,n))/2;
POBC7 := (HHV(POBC6, n) + LLV(POBC6,n))/2;
POBC8 := (HHV(POBC7, n) + LLV(POBC7,n))/2;
POBC9 := (HHV(POBC8, n) + LLV(POBC8,n))/2;
POBC10 := (HHV(POBC9, n) + LLV(POBC9,n))/2;
AV := (POBC1 + POBC2 + POBC3 + POBC4 + POBC5 + POBC6 + POBC7 + POBC8 + POBC9
+ POBC10) / 10;
POBCOsc := 100 * ((CLOSE - AV) / (HHV(CLOSE, 10)-LLV(CLOSE, 10)));
POBCOsc
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 8
To hIghIIght bars based on the BuII Fear and Bear Fear condItIons dIscussed In the artIcIe,
choose Expert AdvIsor from the TooIs menu, cIIck on the New button and enter the foIIowIng
expert:
Bull Fear and Bear Fear Expert - Highlights
Name: BuII Fear
n := 12 {TIme perIods};
BuIIFear := (HHV(HIGH,n) - LLV(HIGH,n))/2 + LLV(HIGH,n);
CLOSE > BuIIFear
Color: BIue
Name: Bear Fear
Condition:
n := 12 {TIme perIods};
BearFear := (HHV(LOW,n) - LLV(LOW,n))/2 + LLV(LOW,n);
CLOSE < BearFear
Color: Red
To test the two systems dIscussed In the artIcIe, choose System Tester from the TooIs menu
and enter both of the foIIowIng systems:
Bull and Bear Fear System Test - Signal Formulas
Enter Long:
n := 12 {TIme perIods};
BuIIFear := (HHV(HIGH,n) - LLV(HIGH,n))/2 + LLV(HIGH,n);
Cross(CLOSE,BuIIFear)
Enter Short:
n := 12 {TIme perIods};
BearFear := (HHV(LOW,n) - LLV(LOW,n))/2 + LLV(LOW,n);
Cross(BearFear,CLOSE)
Four-Bar Fear System Test - Signal Formulas
Enter Long:
n := 12 {TIme perIods};
BuIIFear := (HHV(HIGH,n) - LLV(HIGH,n))/2 + LLV(HIGH,n);
BearFear := (HHV(LOW,n) - LLV(LOW,n))/2 + LLV(LOW,n);
Cross(CLOSE,BuIIFear) AND Ref(Sum(CLOSE < BuIIFear AND CLOSE > BearFear,4)
,-1) = 4
Close Long:
LOW < Ref(LLV(LOW,3),-1)
Enter Short:
n := 12 {TIme perIods};
BuIIFear := (HHV(HIGH,n) - LLV(HIGH,n))/2 + LLV(HIGH,n);
BearFear := (HHV(LOW,n) - LLV(LOW,n))/2 + LLV(LOW,n);
Cross(BearFear,CLOSE) AND Ref(Sum(CLOSE < BuIIFear AND CLOSE > BearFear,4)
,-1) = 4
Close Short:
HIGH > Ref(HHV(HIGH,3),-1)
After enterIng the systems cIIck on the OptIons button In the System Tester dIaIog, go to the
TestIng tab and change the Trade PrIce to Open and set the Trade deIay to one.
FoIIowIng Is the formuIa for the movIng averages dIscussed In the artIcIe, but not contaIned
In the Traders TIp pubIIshed In TASC. PIease note, thIs formuIa wIII pIot aII three movIng
averages, but wIII not pIot them In three dIfferent coIours.
Moving Averages Formula for MetaStock
TP:=Input("TIme PerIods",1,100,12);
BLF:=((HHV(H,TP)+LLV(H,TP))/2);
BRF:=((HHV(L,TP)+LLV(L,TP))/2);
POB:=((BLF-BRF)/2)+BRF;
BLF;
BRF;
POB
(Go Top)
If you have Metastock formulas you would llke to share,
Please emall to
We look forwar to hearing from you!
To learn more about how to use Metastock and lts formula cllck here.
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Metastock Formulas - F Strona 9
copyright 2003 MetaStock Website Home
Metastock® is a registered trademark of Equis International.
http://www.meta-formula.com/Metastock-Formulas-F.html 2014-10-14 14:03:12
Wyszukiwarka
Podobne podstrony:
Metastock Formulas D 1
Metastock Formulas L
Metastock Formulas K
Metastock Formulas O
Metastock Formulas T
Metastock Formulas S 1
Metastock Formulas D
Metastock Formulas N
Metastock Formulas M 1
Metastock Formulas S
Metastock Formulas G
Metastock Formulas J
Metastock Formulas H
Metastock Formulas H
Metastock Formulas U
Metastock Formulas I
Metastock Formulas B 1
Metastock Formulas P
więcej podobnych podstron