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

  • Welcome to the newest version of Trade2Win! We're running on the latest version of, what we consider to be, the best forum software available today. Our aim was to keep things as familiar as possible but focus on improving speed, security and usability. We hope you like the result! Please post your questions, comments, suggestions and feedback in the What's New and Feedback Thread - Sharky.
Feb 16, 2005
12
0
11
Hong Kong
#1
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
 
Feb 8, 2008
2
0
11
Washington
#2
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
 
Feb 8, 2008
2
0
11
Washington
#3
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?
 

rnr

Member
Oct 27, 2007
34
0
16
#4
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?
 
Feb 22, 2008
2
0
11
#5
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