Here's the 20/20 bar formula that I used

botelho64

Junior member
Messages
12
Likes
0
thanks for the reply - here are the details of what I was trying to use

Ref(c<o,-3)
Ref(C>L+(H-L)*0.8,-1) AND Ref(O<H +(H-L)*0.2,-1) AND Ref(H-L>1.0,-1)
AND Ref(L,-1)>Ref(L,-2)
AND Ref(H,-1)>Ref(H,-2)
AND C>30.0 AND GapUp()>0.5

but no results.

What I am wanting is

3 days ago is a black candle - Ref(c<o,-3)
Yesterday - is a long black candle ( by at least one dollar) with the open in the top 20% of the bar and the close in the bottome 20% and that this had lower highs and lows than the previous day --Ref(C>L+(H-L)*0.8,-1) AND Ref(O<H +(H-L)*0.2,-1) AND Ref(H-L>1.0,-1) AND Ref(L,-1)<Ref(L,-2)
AND Ref(H,-1)<Ref(H,-2)

Today is a gap up by 50 cents - gapup()>0.5

grateful for any help on this
 
Im looking to

There is a lot of the pristine method plays that go off of these 20/20 bars. I am working on it too. Have you found any way of programming it?




thanks for the reply - here are the details of what I was trying to use

Ref(c<o,-3)
Ref(C>L+(H-L)*0.8,-1) AND Ref(O<H +(H-L)*0.2,-1) AND Ref(H-L>1.0,-1)
AND Ref(L,-1)>Ref(L,-2)
AND Ref(H,-1)>Ref(H,-2)
AND C>30.0 AND GapUp()>0.5

but no results.

What I am wanting is

3 days ago is a black candle - Ref(c<o,-3)
Yesterday - is a long black candle ( by at least one dollar) with the open in the top 20% of the bar and the close in the bottome 20% and that this had lower highs and lows than the previous day --Ref(C>L+(H-L)*0.8,-1) AND Ref(O<H +(H-L)*0.2,-1) AND Ref(H-L>1.0,-1) AND Ref(L,-1)<Ref(L,-2)
AND Ref(H,-1)<Ref(H,-2)

Today is a gap up by 50 cents - gapup()>0.5

grateful for any help on this
 
20/20 Bar Formula In Metastock

This one works
bullish
C>O AND C-O>1.00 AND O-L<=.2*(H-L) AND H-C<=.2*(H-L) AND C>20
bearish
C<O AND O-C>1.00 AND C-L<=.2*(H-L) AND H-O<=.2*(H-L) AND C>20



There is a lot of the pristine method plays that go off of these 20/20 bars. I am working on it too. Have you found any way of programming it?
 
There is a lot of the pristine method plays that go off of these 20/20 bars. I am working on it too. Have you found any way of programming it?

Hi nguos1,

Let me know if you still want the code for what botelho64 was proposing?
 
hi rnr,

would like to take u on ur offer.

can u give me a ms9 formula for ranking top 5 overbought and oversold scrips in my favourites folder? here's one that seems to be based only on rsi, and i'm not sure whether it will rank the scrips in overbought and oversold terms.

Name: Wilson Relative Price Channel
Formula:
Periods:=Input("Channel Periods",1, 250, 34);
Smoothing:=Input("Smoothing", 1, 55, 1);
Value2:=Input("Over Bought", 50, 99, 70);
Value3:=Input("Over Sold", 1, 50, 30);
Value4:=Input("Upper Neutral Zone", 50, 99, 55);
Value5:=Input("Lower Neutral Zone", 1, 50, 45);

OB:=Mov(RSI(Periods)-Value2,Smoothing,E);
OS:=Mov(RSI(Periods)-Value3,Smoothing,E);
NZU:=Mov(RSI(Periods)-Value4,Smoothing,E);
NZL:=Mov(RSI(Periods)-Value5,Smoothing,E);

{OverSold}
CLOSE-(CLOSE*(OS/100));

{OverBought}
CLOSE-(CLOSE*(OB/100));

{NeutUp}
CLOSE-(CLOSE*(NZU/100));

{NeutLower}
CLOSE-(CLOSE*(NZL/100));




thanks a million
regards
 
Top