Metastock Formulas: BAR PATTERNS
Common Metastock Bar Patterns
BAR - 3 Higher Highs
H>Ref(H,-1) AND Ref(H,-1)>Ref(H,-2) AND Ref(H,-2)>Ref(H,-3)
BAR - 3 Lower Lows & Reversal H
L>Ref(L,-1) AND Ref(L,-1)Ref(L,-3)
BAR - 3 Lower Lows
L
BAR - 5 Lower Lows
LRef(L,-3)
BAR - Expansion Buy
If(C > Ref(HHV(C,42),-1) AND H-L >= Ref(HHV((H-L),9),-1),1,0)
BAR - Expansion Sell
If(C < Ref(LLV(C,42),-1) AND (H-L) >= Ref(HHV((H-L),9),-1),1,0)
BAR - Fractal-down
If(LOW < Ref(LOW, -1),1,0) AND If(LOW < Ref(LOW, -2),1,0) AND If(LOW <
Ref(LOW,+1),1,0) AND If(LOW < Ref(LOW,+2),1,0)
BAR - Fractal-up
(If(HIGH > Ref(HIGH, -1),1,0) AND If(HIGH > Ref(HIGH, -2),1,0) AND If(HIGH
> Ref(HIGH, +1),1 ,0)AND If(HIGH > Ref(HIGH,+2),1,0))
BAR - Gap Down
GapDown()
BAR - Gap Up
GapUp()
BAR - H > Yesterday's H
H>Ref(H,-1)
BAR - Highest Bars Ago
HighestBars(CLOSE)
BAR - Highest High Value Bars Ago
HHVBars(CLOSE,50)
BAR - Inside Day + Day 3
Ref(Fml("BAR - Inside Day"),-3)
BAR - Inside Day
HIGH < Ref(HIGH,-1) AND LOW > Ref(LOW,-1)
BAR - Lizard Buy
If(O >= L + ((H-L) * .75) AND C >= L + ((H-L) * .75) AND L <
Ref(LLV(L,9),-1),1,0)
BAR - Lizard Sell
If(O <= L + ((H-L) * .25) AND C <= L + ((H-L) * .25) AND H >
Ref(HHV(H,9),-1),1,0)
BAR - Narrow Range 4
HIGH - LOW < Ref(LLV(H-L,3),-1)
BAR - Narrow Range 7
HIGH - LOW < Ref(LLV(H-L,6),-1)
BAR - O > Yesterday's C
O>Ref(C,-1)
BAR - Outside Day & > C
Outside() AND C>Ref(C,-1)
BAR - Outside Day
HIGH > Ref(HIGH,-1) AND LOW < Ref(LOW,-1)
BAR - Pivot Buy
If(H-L > Ref(HHV((H-L),9),-1) AND ((L <= Mov(C,50,S)) OR Ref(L,-1) <=
Ref(Mov(C,50,S),-1))
AND C > Mov(C,50,S),1,0)
BAR - Pivot Sell
If(H-L > Ref(HHV((H-L),9),-1) AND ((H >= Mov(C,50,S)) OR Ref(H,-1) >=
Ref(Mov(C,50,S),-1))
AND C < Mov(C,50,S),1,0)
BAR - Reaction Day with Volume
ReactionWithVol()
BAR - Reaction Day
Reaction()
BAR - Surprise Day Down
OO AND C
BAR - Surprise Day Up
O>Ref(C,-1) AND CRef(C,-1)
BAR - Trough Value - 5
Trough(1,CLOSE,5)
BAR - Typical Price
Typical()
BAR - 3 Higher Highs
H>Ref(H,-1) AND Ref(H,-1)>Ref(H,-2) AND Ref(H,-2)>Ref(H,-3)
BAR - 3 Lower Lows & Reversal H
L>Ref(L,-1) AND Ref(L,-1)Ref(L,-3)
BAR - 3 Lower Lows
L
BAR - 5 Lower Lows
LRef(L,-3)
BAR - Expansion Buy
If(C > Ref(HHV(C,42),-1) AND H-L >= Ref(HHV((H-L),9),-1),1,0)
BAR - Expansion Sell
If(C < Ref(LLV(C,42),-1) AND (H-L) >= Ref(HHV((H-L),9),-1),1,0)
BAR - Fractal-down
If(LOW < Ref(LOW, -1),1,0) AND If(LOW < Ref(LOW, -2),1,0) AND If(LOW <
Ref(LOW,+1),1,0) AND If(LOW < Ref(LOW,+2),1,0)
BAR - Fractal-up
(If(HIGH > Ref(HIGH, -1),1,0) AND If(HIGH > Ref(HIGH, -2),1,0) AND If(HIGH
> Ref(HIGH, +1),1 ,0)AND If(HIGH > Ref(HIGH,+2),1,0))
BAR - Gap Down
GapDown()
BAR - Gap Up
GapUp()
BAR - H > Yesterday's H
H>Ref(H,-1)
BAR - Highest Bars Ago
HighestBars(CLOSE)
BAR - Highest High Value Bars Ago
HHVBars(CLOSE,50)
BAR - Inside Day + Day 3
Ref(Fml("BAR - Inside Day"),-3)
BAR - Inside Day
HIGH < Ref(HIGH,-1) AND LOW > Ref(LOW,-1)
BAR - Lizard Buy
If(O >= L + ((H-L) * .75) AND C >= L + ((H-L) * .75) AND L <
Ref(LLV(L,9),-1),1,0)
BAR - Lizard Sell
If(O <= L + ((H-L) * .25) AND C <= L + ((H-L) * .25) AND H >
Ref(HHV(H,9),-1),1,0)
BAR - Narrow Range 4
HIGH - LOW < Ref(LLV(H-L,3),-1)
BAR - Narrow Range 7
HIGH - LOW < Ref(LLV(H-L,6),-1)
BAR - O > Yesterday's C
O>Ref(C,-1)
BAR - Outside Day & > C
Outside() AND C>Ref(C,-1)
BAR - Outside Day
HIGH > Ref(HIGH,-1) AND LOW < Ref(LOW,-1)
BAR - Pivot Buy
If(H-L > Ref(HHV((H-L),9),-1) AND ((L <= Mov(C,50,S)) OR Ref(L,-1) <=
Ref(Mov(C,50,S),-1))
AND C > Mov(C,50,S),1,0)
BAR - Pivot Sell
If(H-L > Ref(HHV((H-L),9),-1) AND ((H >= Mov(C,50,S)) OR Ref(H,-1) >=
Ref(Mov(C,50,S),-1))
AND C < Mov(C,50,S),1,0)
BAR - Reaction Day with Volume
ReactionWithVol()
BAR - Reaction Day
Reaction()
BAR - Surprise Day Down
OO AND C
BAR - Surprise Day Up
O>Ref(C,-1) AND C
BAR - Trough Value - 5
Trough(1,CLOSE,5)
BAR - Typical Price
Typical()
0 Comments:
Post a Comment
<< Home