Metastock Formulas - G Strona 1
Metastock Formulas - G
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
Gain By % Gap Trading
MetaStock Llnks
Gann High Low Gap Up Formulas
Gann Hi-Lo Gap Up System with Delayed Exit
Rave Revlews
Gann-Swing Gilligan's Island Buy
Gann Swing Update Gilligan's Island Sell
About Us
Gann-Trend Guppy MMA Exploration from Trading Tactics, part 2
Gap 1 System Guppy MMA Indicators
Gap 2 System Guppy's MMA Long
Contact Us
Gap 3 System Guppy MMA Oscillator
Gap Days Guppy's MMA Short
SlteMap
Gap Identification GRIIF1 Identification Oscillator
Genesis of a Simple Futures Trading System
Gain By %
CoI A: CLOSE
CoI B: ROC(C,5,%)
FIIter: (ROC(C,5,%)>10 OR ROC(C,5,%)<-10) AND C>5
FIIter enabIed: Yes
(Go Top)
Gann High Low
{name: GANN-HILo}
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{eIse}If(CLOSE
[{then}-1,]
{eIse}0));
HLv:=VaIueWhen(1,HLd<>0,HLd);
HILo:=If(HLv=-1,
{then}Mov(H,3,S),
{eIse}Mov(L,3,S));
HILo;
(Go Top)
Gann Hi-Lo
coIA
BUY
BarsSInce(C< FmI("GANN-HILo"))
coIB
SELL
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Metastock Formulas - G Strona 2
BarsSInce(C> FmI("GANN-HILo"))
fIIter
coIA=1 OR coIB=1
(Go Top)
Gann-Swing
{Market swIng Is defIned as:
Up = 2 hIgher hIghs,
Down = 2 Iower hIghs.}
Us:=BarsSInce((H > Ref(H,-1)) AND (Ref(H,-1) >
Ref(H,-2)));
Ds:=BarsSInce((L < Ref(L,-1)) AND (Ref(L,-1) <
Ref(L,-2)));
Sd1:=If(Us=0,
{then}If(Ref(L,-1)<>LowestSInce(1,Ds=0,L),
{then}1,
{eIse}0),
{eIse}If(Ds=0,
{then}If(Ref(H,-1)<>
HIghestSInce(1,Us=0,H),
{then}-1,
{eIse}0),
{eIse}0));
Sd2:=If(Sd1=1,
{then} If(Ref(BarsSInce(Sd1=1),-1) >
Ref(BarsSInce(Sd1=-1),-1),
{then}1,
{eIse}0),
{eIse} If(Sd1=-1,
{then}If(Ref(BarsSInce(Sd1=1),-1) <
Ref(BarsSInce(Sd1=-1),-1),
{then}-1,
{eIse}0),
{eIse}0));
TD1:=VaIueWhen(1,Sd2<>0,Sd2);
Td1;
(Go Top)
Gann Swing Update
ThIs Is an update to Gann-SwIng IndIcators I had posted severaI months
back. Most of the code has been Improved and I have modIfIed the swIng
defInItIon sIIghtIy.
Gann WeekIy Expert InstructIons
1. FIrst create a new expert and name It whatever you want.
2a. under "trends" tab put thIs code for buIIIsh:
ut:=FmIVar("GANN-Trend","TDV");
upIot:=If(BarsSInce(Ut=1)<
BarsSInce(Ut=-1),1,0);
upIot=1;
2b. and thIs for bearIsh:
dt:=FmIVar("GANN-Trend","TDV");
dpIot:=If(BarsSInce(dt=1)>
BarsSInce(dt=-1),1,0);
dpIot=1;
Then cIIck on the "rIbbon" optIon and turn off "DIspIay VertIcaI LInes", I
aIso turn off
the corner optIon.
3a. Under hIghIIghts tab create a new and caII It "HILo Change", choose
coIor, and enter thIs code:
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{eIse}If(CLOSE[{then}-1,]
{eIse}0));
HLv:=VaIueWhen(1,HLd<>0,HLd);
HLv<>Ref(HLv,-1);
3b. Create new and caII It "Up-Trend", choose coIor, and enter thIs code:
ut:=FmIVar("GANN-Trend","TD");
upIot:=If(BarsSInce(Ut=1)<
BarsSInce(Ut=-1),1,0);
upIot=1;
3c. Create new and caII It "Down-Trend", choose coIor, and enter thIs code:
dt:=FmIVar("GANN-Trend","TD");
dpIot:=If(BarsSInce(dt=1)>
BarsSInce(dt=-1),1,0);
dpIot=1;
4a. Under "SymboIs" tab create new and caII It " UpSwIng", enter thIs code:
FmIVar("GANN-SwIng","SD2")=1;
then under graphIc choose "Buy Arrow", choose coIor (Dark Green), and smaII
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Metastock Formulas - G Strona 3
sIze, then pIck "Above PrIce PIot".
4b. Create new and caII It "DownSwIng", enter thIs code:
FmIVar("GANN-SwIng","SD2")=-1;
then under graphIc choose "seII arrow", choose coIor (Dark Red), and smaII
sIze, then pIck "BeIow PrIce PIot".
As for the HILo ....just pIot It as a reguIar IndIcator and choose the Iast
"styIe" optIon under "coIor/styIe" tab.
Note: For daIIy bar charts rIbbon use these formuIas:
2a. ut:= FmIVar("GaW-Trend","TDV") ;
upIot:=If(BarsSInce(Ut=1)<
BarsSInce(Ut=-1),1,0);
upIot=1;
2b. dt:= FmIVar("GaW-Trend","TDV") ;
dpIot:=If(BarsSInce(dt=1)>
BarsSInce(dt=-1),1,0);
dpIot=1;
(Go Top)
Gann-Trend
{SwIng DIrectIon}
Sd:= FmIVar("GANN-SwIng","TD1") ;
{SwIng Change HIgh}
Sch:=If(Sd=1 AND Ref(sd,-1)=-1,
{then}1,
{eIse}0);
{SwIng Change Low}
ScI:=If(Sd=-1 AND Ref(Sd,-1)=1,
{then}1,
{eIse}0);
{Peak VaIue}
Pv:=If(ScI=1,
{then}HIghestSInce(1,Sch=1,H),
{eIse}0);
{Trough VaIue}
Tv:=If(Sch=1,
{then}LowestSInce(1,ScI=1,L),
{eIse}0);
{Trend DIrectIon}
Td:=If(H>VaIueWhen(1,Pv>0,Pv),
{then}1,
{eIse}If(L0,Tv),
{then}-1,
{eIse}0));
{UpTrend=1 DownTrend =-1}
Tdv:=VaIueWhen(1,Td<>0,Td);
Tdv;
(Go Top)
Gap 1 System
{BUY}
L>Ref(H,-1) OR
Cum(1)=LastVaIue(Cum(1))
{SELL}
H[Cum(1)=LastVaIue(Cum(1))]
(Go Top)
Gap 2 System
{BUY}
N1:=5;
L>Ref(HHV(H,N1),-1) OR
Cum(1)=LastVaIue(Cum(1))
{SELL}
N1:=5;
H[Cum(1)=LastVaIue(Cum(1))]
(Go Top)
Gap 3 System
{Enter Long}
N1:=5;
L>Ref(HHV(H,N1),-1) OR
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Metastock Formulas - G Strona 4
Cum(1)=LastVaIue(Cum(1))
{ExIt Long}
N2:=3;
C[Cum(1)=LastVaIue(Cum(1))]
{Enter Short}
N1:=5;
H[Cum(1)=LastVaIue(Cum(1))]
{ExIt Short}
N2:=3;
C>Ref(HHV(H,N2),-1) OR
Cum(1)=LastVaIue(Cum(1))
(Go Top)
Gap Days
Shows stocks whIch have gapped up or down on the open compared to yesterdays prIce.
The search returns 1 for Ok and 0 for not ok.
GapUp()
(Go Top)
Gap Trading
Here Is the gap-tradIng system code for use In EquIs InternatIonaI's MetaStock software. For
practIcaI reasons, the system has been defIned as an IndIcator rather than a system,
showIng the cumuIated profIt.
dn:= 1.0;
up:= 1.0;
gap:= 100*(OPEN - Ref(CLOSE, -1))/Ref(CLOSE, -1);
prf:= If(gap>=up, OPEN-CLOSE, If(gap<=-dn, CLOSE-OPEN,0));
Cum(prf);
(Go Top)
Gap Up Formulas
The MetaStock formuIas to caIcuIate these percentages are shown beIow. The
fIrst Input Is the mInImum gap (e.g., 1%), and the second Input Is the gap
Increment (e.g., 1%, whIch wouId gIve you a range of 1-2%). To caIcuIate
gaps down, change the percentage to a negatIve.
FormuIa to determIne whether the cIosIng prIce Is equaI to or exceeds the
openIng prIce on a gap day:
MInGap := Input("MInImum gap to consIder (%)",-10000,10000,1);
GapIncrement := Input("Gap Increment (%)",0,100,1);
LookIngForGapUp := MInGap >= 0; LookIngForGapDown := MInGap < 0;
{ Gap percentage }
Gap := (OPEN - Ref(CLOSE,-1))/Ref(CLOSE,-1)*100;
NumGaps := If(LookIngForGapUp, Cum(Gap >= MInGap AND Gap < MInGap +
GapIncrement), If(LookIngForGapDown, Cum(Gap <= MInGap AND Gap > MInGap -
GapIncrement),0));
If(LookIngForGapUp, Cum(If(Gap >= MInGap AND Gap < MInGap + GapIncrement,
If(CLOSE >= OPEN, +1,0),0)),
If(LookIngForGapDown, Cum(If(Gap <= MInGap AND Gap > MInGap - GapIncrement,
If(CLOSE <= OPEN, +1, 0),0)), 0))/NumGaps*100;
FormuIa to determIne whether the daIIy range crosses the prevIous day s
cIose on a gap day:
MInGap := Input("MInImum gap to consIder (%)",-10000,10000,1);
GapIncrement := Input("Gap Increment (%)",0,100,1);
LookIngForGapUp := MInGap >= 0; LookIngForGapDown := MInGap < 0;
{ Gap percentage }
Gap := (OPEN - Ref(CLOSE,-1))/Ref(CLOSE,-1)*100;
NumGaps := If(LookIngForGapUp, Cum(Gap >= MInGap AND Gap < MInGap +
GapIncrement), If(LookIngForGapDown, Cum(Gap <= MInGap AND Gap > MInGap -
GapIncrement),0));
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Metastock Formulas - G Strona 5
If(LookIngForGapUp, Cum(If(Gap >= MInGap AND Gap < MInGap + GapIncrement,
If(LOW <= Ref(CLOSE,-1), +1,0),0)),
If(LookIngForGapDown, Cum(If(Gap <= MInGap AND Gap > MInGap - GapIncrement,
If(HIGH >= Ref(CLOSE,-1), +1, 0),0)), 0))/NumGaps*100;
FormuIa to determIne whether the foIIowIng day s open contInues the gap
trend:
MInGap := Input("MInImum gap to consIder (%)",-10000,10000,1);
GapIncrement := Input("Gap Increment (%)",0,100,1);
LookIngForGapUp := MInGap >= 0; LookIngForGapDown := MInGap < 0;
GapYesterday := (Ref(OPEN,-1) - Ref(CLOSE,-2))/Ref(CLOSE,-2)*100;
NumGapsthruYesterday := If(LookIngForGapUp, Cum(GapYesterday >= MInGap AND
GapYesterday < MInGap + GapIncrement), If(LookIngForGapDown,
Cum(GapYesterday <= MInGap AND GapYesterday > MInGap - GapIncrement),0));
If(LookIngForGapUp, Cum(If(GapYesterday >= MInGap AND GapYesterday < MInGap
+ GapIncrement, If(OPEN > Ref(CLOSE,-1), +1,0),0)),
If(LookIngForGapDown, Cum(If(GapYesterday <= MInGap AND GapYesterday >
MInGap - GapIncrement, If(OPEN < Ref(CLOSE,-1), +1, 0),0)),
0))/NumGapsthruYesterday*100;
(Go Top)
Gap Up System with Delayed Exit
Enter Iong
GapUp()
CIose Iong
Ref(GapUp(),-5)
InItIaI equIty 10000
PosItIons Long and short
Trade prIce Open
Trade deIay 1
Entry commIssIon 0%
ExIt commIssIon 0%
Interest rate 0%
MargIn req. 100%
(Go Top)
Gilligan's Island Buy
A:CIose
B:GapDown()<=Ref(LLV(L,40),-1) and C>=O and
C>=((H-L)*.50)+L
C:{entry}H+.125
D:{stop}H+.125-1
FIIter: GapDown()<=Ref(LLV(L,40),-1) and C>=O and
C>=((H-L)*.50)+L
(Go Top)
Gilligan's Island Sell
A:CIose
B:GapUp()>=Ref(HHV(H,40),-1) and C<=O and
C<=((H-L)*.50)+L
C:{entry}L-.125
D:{stop}L-.125+1
FIIter: GapUp()>=Ref(HHV(H,40),-1) and C<=O and C<=((H-L)*.50)+L
(Go Top)
Guppy MMA Exploration from Trading Tactics, part 2
NOTE ThIs EXPLORATION uses the resuIts of severaI INDICATOR FORMULAS. You must
create the INDICATORS fIrst before runnIng the expIoratIon. AIso, dependIng on your system
you may have some probIems ImportIng thIs Into earIy versIons of Metastock 7.
Ref(C,-1)
Ref(C,-2)
FmI("mma 3/30") +FmI("mma 5/35") +FmI("mma 8/40") + FmI("mma 10/45")+FmI("mma
12/50")+FmI("mma 15/60")
Ref(FmI("mma 3/30") +FmI("mma 5/35") +FmI("mma 8/40") + FmI("mma 10/45")+FmI
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Metastock Formulas - G Strona 6
("mma 12/50")+FmI("mma 15/60"),-1)
Ref(FmI("mma 3/30") +FmI("mma 5/35") +FmI("mma 8/40") + FmI("mma 10/45")+FmI
("mma 12/50")+FmI("mma 15/60"),-2)
When(coID,>,0) AND When(coIE,<=,0)
(Go Top)
Guppy MMA Indicators
(Note thIs Is not the same as the formuIa gIven In TradIng TactIcs. DaryI Guppy)
Try MMA (MuItIpIe MovIng Averages). The shorter ones are cIoser to the
actIon and the Ionger ones teII you about the trend. I use two IndIcators
IIke thIs:
Name: MMA Long Term
--------
Mov(C,40,E);
Mov(C,45,E);
Mov(C,50,E);
Mov(C,55,E);
Name: MMA Short Term
--------
Mov(C,5,E);
Mov(C,8,E);
Mov(C,11,E);
Mov(C,14,E);
In the current market I IIke takIng short momentum trades where the MMA
Short Is bouncIng up off a sIowIy rIsIng MMA Long Term. The exIt at the top
of the bubbIe Is IndIcated by MMA Short turnIng down after a good separatIon
from the underIyIng MMA Long.
from Jeff Lederman.
{SuggestIon: Create a sIngIe TEMPLATE wIth aII the above IndIcators, gIvIng
SHORT and LONG MMAs separate coIours; e.g., RED for the SHORTs and BLUE for
the LONGs.}
(Go Top)
Guppy's MMA Long
{Iong-term}
Mov(C,30,E);Mov(C,35,E);Mov(C,40,E);
Mov(C,45,E);Mov(C,50,E);Mov(C,60,E)
(Go Top)
Guppy's MMA Short
{short-term}
Mov(C,3,E);Mov(C,5,E);Mov(C,7,E);
Mov(C,10,E);Mov(C,12,E);Mov(C,15,E);
(Go Top)
Guppy MMA Oscillator
by Leon Wilson
((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)))*10;
(Mov((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)),13,E))*10;0;
(Go Top)
Gap Identification
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Metastock Formulas - G Strona 7
If(L,>,ref(H,-1),1, If(H,<,ref(L,-1),-1,0))
(Go Top)
GRIIF1 Identification Oscillator
GRIIF1 Momentum Oscillator
tsf(C,9)-ref(tsf(C,9),-1)
GRIIF2 Momentum Oscillator
(ref(tsf(C,9),-1)-(ref(tsf(C,9),-2)))
GRIIF3 Momentum Oscillator
(ref(tsf(C,9),-2)-(ref(tsf(C,9),-3)))
GRII4 Momentum Oscillator
(tsf(C,9)-ref(tsf(C,9),-1))+((ref(tsf(C,9),-1)-ref(tsf(C,9),-2)))+((ref(tsf (C,9),-2)-(ref(tsf
(C,9),-3))))
(Go Top)
Genesis of a Simple Futures Trading System
It s quIte easy to use MetaStock for WIndows to dupIIcate the GenesIs of a SImpIe Futures
TradIng system whIch Is presented In the TASC May 97 Issue's IntervIew of Jay KaeppeI. In
MetaStock for WIndows, choose System Tester from the TooIs menu. CIIck on the New
button and enter In the foIIowIng ruIes:
Signal Formulas
Enter Long
Cross( Mov( CIose,9,S), Mov( CIose,50,S)) And CIose > Mov( CIose,80,S)
Close Long
Cross( Mov( CIose,50,S), Mov( CIose,9,S)) And CIose > Mov( CIose,80,S)
Enter Short
Cross( Mov( CIose,50,S), Mov( CIose,9,S)) And CIose < Mov( CIose,80,S)
Close Short
Cross( Mov( CIose,9,S), Mov( CIose,50,S)) And CIose < Mov( CIose,80,S)
When testIng futures In MetaStock It s best to use a "poInts onIy" test. To do thIs, choose
OptIons from the System Tester dIaIog and then PoInts OnIy Test from the TestIng page.
To use The ExpIorer to screen for futures generatIng a recent sIgnaI wIth thIs system,
choose The ExpIorer from the TooIs dIaIog and enter In the foIIowIng ruIes:
Column Formulas
Column A: Buy SIgn
Cross( Mov( CIose,9,S), Mov( CIose,50,S)) And CIose > Mov( CIose,80,S)
Column B: Shrt SIg
Cross( Mov( CIose,50,S), Mov( CIose,9,S)) And CIose < Mov( CIose,80,S)
Filter Source
Filter Enabled: Yes
Formula: coIA = 1 OR coIB = 1
Next choose ExpIore and The ExpIorer wIII search for and then dIspIay any futures, whIch
have generated new sIgnaIs.
(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.
copyright 2003 MetaStock Website Home
Metastock® is a registered trademark of Equis International.
http://www.meta-formula.com/Metastock-Formulas-G.html 2014-10-14 14:03:25
Wyszukiwarka
Podobne podstrony:
Metastock Formulas D 1
Metastock Formulas L
Metastock Formulas K
Metastock Formulas O
Metastock Formulas F
Metastock Formulas T
Metastock Formulas S 1
Metastock Formulas D
Metastock Formulas N
Metastock Formulas M 1
Metastock Formulas S
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