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

Notification

Icon
Error

Options
Go to last post Go to first unread
sharezack  
#1 Posted : Friday, September 15, 2006 4:32:30 AM(UTC)
sharezack

Rank: Member

Groups: Registered, Registered Users
Joined: 9/15/2006(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)

Hi

I am new to metastock hence i need to know the steps in creating few explorations.

1. i want exploration for buy when the stock price closes above the last 5 days high.

2. I want exploration for Exit or sell when the stock price closes below the low of last 5 days.

3. I want exploration for finding support and resistance levels of a stock based on its last 20Day moving avarage.

4. I want exploration to know the stocks trading above its 3DMA, 9 DMA and 12DMA.

I would be glad if some one can give me step by step approach for like what goes in colum A and Colum B etc for the above 4.

hayseed  
#2 Posted : Friday, September 15, 2006 6:29:04 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey zack.... your number 1 and 2 rules using stock price closes above the last 5 days high and low of last 5 days just about needs the 'ref ' function included in column a and column b....

your rule 3 is subjective...... within 1% proximity was used in the exploration but you can easily change that value for closes closer to the moving average ....

my view of 'proximity' might vary from yours so below the exploration is a indicator in which you can vary both percent 'proximity' and the moving average period....

it might not be just what you wanted but it should get ya headed in the right direction.....h

====================


Exploration notes

Col A: c>high If(C>= Ref(HHV( H,5 ),-1),1,0);
Col B: c<low If(C<= Ref(LLV( L,5 ),-1),1,0);
Col C: near mov Abs(C-Mov(C,20,E))<=C*.01;
Col D: c>3ma C>Mov(C,3,E);
Col E: c>9ma C>Mov(C,9,E);
Col F: c>12ma C>Mov(C,12,E);
Filter colA OR colB OR colC OR colD OR colE OR colF

Filter enabled Yes
Periodicity Daily
Records required 1000

=====================

indicator

==========================

a:=Input("moving average periods",2,200,20);
aa:=Input("percent from moving average",.01,100,1);

Abs(C-Mov(C,a,E))<=C*(aa*.01);

===========================

sharezack  
#3 Posted : Friday, September 15, 2006 8:50:10 AM(UTC)
sharezack

Rank: Member

Groups: Registered, Registered Users
Joined: 9/15/2006(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)

Hi

Thanx for the reply but i guess you have clubbed all the points in one..

I am actually wanting exploration for each point seperately not combined can you help me pls

sharezack  
#4 Posted : Friday, September 15, 2006 9:15:12 AM(UTC)
sharezack

Rank: Member

Groups: Registered, Registered Users
Joined: 9/15/2006(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)

To be more presise here is what i am looking at.

Exploration 1:

Buy signal has to come when the stock closes above the 5 day high it would have made and in the same exploration in colum b i should get the Highest low it had during that 5 day period

Exploration 2

Sell signal should be generated when the stock closes below the highest low and in colum B i should get the highest high it made in that 5 days.

Exploration 3: Want to know the support and resistance levels of the stock based on its 20 Day high low prices

Exploration 4: want to know the stocks trading above its 3DMA , 9DMA and 12DMA.

All explorations have to be different not one signle one.

If you can help me with the code for the above it would be really greatfull

hayseed  
#5 Posted : Friday, September 15, 2006 9:21:16 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey zack..... you might find its better to have all included in one to better relate each column to the others....

to do it singlely , remove all but the column wanted in the filter section....

so if you only want the "c>mov(c,12,e)" , you would remove everything except colf in the filter section.... only column f results will be returned......

do it both ways for awhile.... you might see the advantage to the all-in-one......h

just remove everything except colf

===========================

colA OR colB OR colC OR colD OR colE OR colF

===========================

Users browsing this topic
Guest (Hidden)
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.