Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
Can somebody help please !
Can somebody please write an exploration for ADX(14) which is equal to or greater than the 30 level mark from yesterday to the last 30 days.
This exploration should show all ADX(14) which are above the 30 levels ......since the last 30 days as well as last week or as early as yesterday.
What I am trying to do is track trending stocks which are above the 30 levels as far as yesterday to 30 days.
Based on this exploration I plan to look for entries.
Thank you in advance.
|
|
|
|
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)
|
Perty, Although I don't fully understand your explanation of your criteria (its really early in the morning and there is no coffee!), I think this might help get you started: Code:ind:=adx(14);
pds:=30;
llv(ind,pds)>30;
or another way: Code:ind:=adx(14);
sum(ind>30,pds)=30;
Have a look in the MS Users Manual for other altenatives including Alert() for more ideas. Hope this helps. wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
Thank you wabbit .... appreciate your help. As you would have noticed, I am a newbie to programming though I have had experience in Technical Analysis for some years (fyi, I use Metastock 7.2 EOD).
As you might not have understood my question completely, I will try and rephrase it.
Basically I am looking for strong trending stocks as defined by the adx(14) indicator. The adx(14) indicator should be equal to or greater than 30 levels. Also the adx(14) should have risen above the 30 levels within the last 30 days.
The scan results should show all stocks whose adx(14) is equal or greater than 30 level for the last 30 days. So the scan results would show stocks whose adx(14) is above 30 levels 30 days ago, 29 days ago .........15 days ago and as lastest as yesterday.
I am not interested in stocks whose adx(14) is above 30 levels for more than 30 days .... I am interested in recent stocks (30 days) ... young and emerging trends.
The idea is to buy the young trendy stocks on dips in the current bull market. I would like to use the Explorer functionality in Metastock for this scan.
Thank you in advance for your assistance.
|
|
|
|
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)
|
If I understand the condition properly, "The adx(14) indicator should be equal to or greater than 30 levels. Also the adx(14) should have risen above the 30 levels within the last 30 days." Try this then: Code:ind:=adx(14)>=30;
ind and alert(ind=0,30);
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
Thank you wabbit ... that was quick.
You understand the question correctly.
I pasted the exploration in colA and ran the scan .... this did not provide the results I wanted. Basically it showed all the securities in the reports except the ones which had incomplete data.
Any further help will be appreciated.
Thank you.
|
|
|
|
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)
|
You might have noticed all the values in Column A from the exploration had values of 1, 0 or NA? Put the code in the filter and run the exploration again, it will return only those instruments that meet the required condition.
For more information on creating explrations and using filter conditions, consult the MS Users Manual.
Hope this helps.
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
Thank you wabbit ...... the exploration worked (filter column).... the results are what I require.
Many thanks for your assistance.
|
|
|
|
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.