logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Vega  
#1 Posted : Thursday, April 19, 2007 4:24:13 PM(UTC)
Vega

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/4/2007(UTC)
Posts: 11

Hello,

1) Can I filter out stocks where volume is greater than 100.000 per day and price perhaps
over 10 $ using explorer ?

2) Using explorer, what would be a formula for find out stocks which has come down from the top 50% ie. in 6 months period ?


Anyone can suggest any metastock book for learning formulas, formula primer have so few examples to give.

Thankx,


Vega
*PP  
#2 Posted : Thursday, April 19, 2007 6:07:09 PM(UTC)
*PP

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/1/2006(UTC)
Posts: 135
Location: Romania

1) v>100000 and c>10

2) c<=hhv(c,180)/2

3) Vega your question denote that u did not read metastock help. U should do it

cheers

wabbit  
#3 Posted : Thursday, April 19, 2007 6:24:49 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Vega,

This is a very basic filter that you should have been able to build after completing the Equis Formula Primer. The easiest way to handle any programming cahllenge is to break the requirement into its smallest components.

In this case yuo want an exploration that concentrates on volume and price actions. We will deal with the filter conditions later, but lets start by making a new exploration with column that will display the data for our equities.

{Column A - Volume}
VOLUME

{Column B - Close}
CLOSE

{Column C -HHV}
HHV(H,128);
{128 daily bars is representative of about 6 months}
{if you want precise calendar based lookback}
{Is uggest using Jose's calendar tools}


You could run this exploration with no filter condition to see the results given by all stocks in the search, but you dont want to see all of the stock, you only want to see a selection that meets a specified criteria, so in the filter we start building our conditons.

Build one filter condition at a time and run the exploration each time (on a small handful of stocks, no need to do the entire exchange whilst we are still testing)

Lets start with the volume condition:

{filter}
ColA>100000;

Notice I used ColA here to refer to the value of Column A, it is up to you to whether you use ColA or V>100000 which will produce the same results

Run the exploration. Are the results as expected by out condition? Do all of the stocks return have a value in column A, the volume column greater than 100000? Are there any errors?

Then we add to the criteria, using the AND condition (because you are looking for multiple criteria where each criteria must be met)

{flter}
ColA>100000 AND
ColB>10;

NOTE: this could also be written:

{flter}
V>100000 AND
C>10;

Run the exploration. Are the results as expected by the condition? Do all of the stocks return have a value in column A, the volume column greater than 100000 AND a closing price in column B greater then 10? Are there any errors?

Then we add to the criteria,

{filter}
ColA>100000 AND
ColB>10 AND
C<(HHV(H,128)*0.5)

for the retracement.


NOTE: There is a big difference between a stock having a price 50% of the recent high, and a stock that has retraced 50% of the HHV-LLV trading range. Make sure you understand exactly what you are asking for in the filter as MS will show you the results for the conditions you actually code, not for the conditions that you think you mean.



Hope this helps.

wabbit [:D]

Vega  
#4 Posted : Wednesday, April 25, 2007 4:45:08 PM(UTC)
Vega

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/4/2007(UTC)
Posts: 11

Thank for you very mucho, your feedback&help in this forum is asthoning!

Vega

Vega  
#5 Posted : Saturday, May 5, 2007 7:22:43 PM(UTC)
Vega

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/4/2007(UTC)
Posts: 11

Hello wappit,

A bit time to practise again formula&metastock.

1)

As you mentioned there´s big difference if price has retraced off it´s high ie. 50%, there´s big difference. Could I also pick up bars for example 360 (one year) and then take fibonacci retracement of it using same formula or similiar which would consider both, low and high point and then calcucalte 50% retracements ? I suppose this would require using both, LLV and HHV formulas.


Thankx in advance,


Vega






wabbit  
#6 Posted : Sunday, May 6, 2007 12:15:55 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Coding Fib retracements in MS can be a little tricky sometimes, but if you can get your head around some of the basic issues then it actually becomes quite easy.

Look to use the HHV and LLV, also the ValueWhen() or BarsSince() functions to find when these events occurred.


wabbit [:D]
Vega  
#7 Posted : Wednesday, May 9, 2007 6:41:18 AM(UTC)
Vega

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/4/2007(UTC)
Posts: 11

Cross (HHV(C,240)-LLV(C,240)*.382;

I suppose this would be the formula ie. plotting 240 days
.382 retracement. Weird thing is that when I plot it to my
chart, it´s not going to placed exactly in the same place
as metastock automatically added fibonacci lines.

What did you mean by using "valuenwhen" indicator,
I suppose to take out any timeframe fibonacci line
starting point should allways be very sharp bottom line.
Fib lines won´t work so well for the equities which has
had very narrow trading range, bottom and top should
be very clear&sharp to recognice, but I don´t have a clu
how to tell this for metastock. Perhaps fibstarting line (0%)
should be placed where powerfull ABC correction has ended.
To see such an example could be found from this link>

http://www.acrotec.com/ewt.htm

This site gives even more clear picture of different wave structures>

http://www.tradersedgeindia.com/elliott_wave_theory.htm

There seems to be very few issues in this forum about fibonacci´s,
which really surprize me as they are very powerfull in the market
when important retracement reversal appears.

1) Actually only formula I found from here is written by you I think
as following code. Btw. Would it be possible to change colours of
each line automatically of those lines to be more clearly recognable ?

2) Do you have anything similiar code for this to use it in explorer ?

b:=Input(".236",.01,2,.78);
bb:=Input("..382",.01,2,.382);
bbb:=Input(".50",.01,2,.50);
bbbb:=Input(".618",.01,2,.618);
bbbbb:=Input("when applying, always choose overlay without scale",0,0,0);
m:=1;
d:=3;
y:=2006;

a:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,Ref(C,-1));
aa:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,O);

aaa:=(b*(a-aa))+aa;
aaaa:=(bb*(a-aa))+aa;
aaaaa:=(bbb*(a-aa))+aa;
aaaaaa:=(bbbb*(a-aa))+aa;

a;aa;aaa;aaaa;aaaaa;aaaaaa;






Jose  
#8 Posted : Wednesday, May 9, 2007 7:04:22 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Vega wrote:
a;aa;aaa;aaaa;aaaaa;aaaaaa;
Check your keyboard, Vega - something tells me that one of the keys is jammed. jose '-)
wabbit  
#9 Posted : Wednesday, May 9, 2007 6:59:00 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Have you read the MS Users Manual and completed Formula Primer yet? If you have then you should be able to figure this one out.

There is something that the learning cannot help you with, and that is you.

You need to ensure the instructions you give MetaStock are the right instructions. Computers are dumb and will do whatever you tell them to do. Computers cannot read minds and cannot interpret yuor code as to what you think you want, it will plot whatever yuo tell it to.

Vega wrote:

Cross (HHV(C,240)-LLV(C,240)*.382;

I suppose this would be the formula ie. plotting 240 days
.382 retracement. Weird thing is that when I plot it to my
chart, it´s not going to placed exactly in the same place
as metastock automatically added fibonacci lines.


Thats right. The canned Fib lines will be different to your code because you have not told MS to plot retracement! You have plotted a range!

If you start by getting the basics right first, the rest will follow in time.



wabbit [:D]

Jose  
#10 Posted : Wednesday, May 9, 2007 7:17:26 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
wabbit wrote:
Computers are dumb and will do whatever you tell them to do.  Computers cannot read minds...
Don't count on it, Wappit - computers are evil creatures constantly monitoring the urgency of the situation, waiting to pounce (crash) on you when you least expect it. ;) jose '-)
wabbit  
#11 Posted : Wednesday, May 9, 2007 7:28:11 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
My computer crashed at 02:36 this morning! All my housekeeping is schedules to start at 03:00, so I had to do it all this morning when I got up and its thrown out my entire day [:(]

waBBit [:D]

Jose  
#12 Posted : Wednesday, May 9, 2007 8:32:19 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
There you go, WaBBit... now you know who is really in charge, eh!?. :) jose '-)
Chin  
#13 Posted : Sunday, December 9, 2007 8:34:08 PM(UTC)
Chin

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/10/2007(UTC)
Posts: 1

How to create password to protect my explorer's formulas ? What are the detailed steps ?

After created the password, how to export it so that I can email to my friend ?

At my friend's PC, how he imports my protected explorer formula to his MetaStock ?

Users browsing this topic
Guest (Hidden)
Similar Topics
To get lowest 10 points in last 365 bars using explorer (Advanced Coding Techniques)
by ankur_chops 10/10/2012 3:48:15 AM(UTC)
Converging Moving averages detection using Explorer (Basic Coding Techniques)
by Sylar Trader 1/27/2012 2:08:27 AM(UTC)
Help required using Explorer: formula to find stocks 50D ExpMA cross 200D Exp MA for 40 tradings sessions or less (Formula Assistance)
by jshee921 3/6/2010 7:54:52 AM(UTC)
Using Explorer offline (MetaStock)
by Gregor 2/9/2010 11:47:41 AM(UTC)
Manipulating chart when using Explorer & exporting data (Product Wish List)
by Bulltard 1/28/2010 9:13:00 AM(UTC)
RSI value is different using EXPLORER , INDICATOR (Basic Coding Techniques)
by hatem 12/13/2009 3:37:07 AM(UTC)
Using Explorer to find Roc monthly (Formula Assistance)
by norwayturtle 5/24/2009 5:20:55 AM(UTC)
How to display MACD() for Day-1 when using Explorer? (Formula Assistance)
by dragonik 5/13/2007 8:11:22 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.