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

This is a discussion on Here's the 20/20 bar formula that I used within the Trading Software forums, part of the Commercial category; 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 ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Feb 20, 2005, 8:39am   #1
Joined Feb 2005
Here's the 20/20 bar formula that I used

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
botelho64 is offline   Reply With Quote
Old Feb 8, 2008, 4:45pm   #2
 
2 Posts
Joined Feb 2008
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?




Quote:
Originally Posted by botelho64 View Post
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
nguos1 is offline   Reply With Quote
Old Feb 8, 2008, 9:47pm   #3
 
2 Posts
Joined Feb 2008
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



Quote:
Originally Posted by nguos1 View Post
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?
nguos1 is offline   Reply With Quote
Old Feb 10, 2008, 9:31am   #4
rnr
Joined Oct 2007
Quote:
Originally Posted by nguos1 View Post
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?
rnr is offline   Reply With Quote
Old Feb 24, 2008, 4:06pm   #5
 
2 Posts
Joined Feb 2008
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
algae is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula 1 Chicken Curry The Foyer 24 Dec 5, 2007 8:10am
FOW Derivatives & Securities World expo 20-21st June 07 Directional Educational Resources 0 May 2, 2007 6:10pm
Help with formula martindelica Trading Software 1 Jan 6, 2007 3:46pm
Formula help jensfrode Trading Software 33 Aug 19, 2006 3:47pm
HELP! DDE Formula oatman Techies Corner 46 Sep 25, 2003 2:13pm

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)