Rank: Newbie
Groups: Registered, Registered Users Joined: 11/20/2010(UTC) Posts: 2
|
Hi everyone,
I want to create an indicator which shows the percentage of a certain set of stocks (eg Dow Jones 30), which is below and/or above a user- defined MA, at a user-defined periodicity.
Can anyone help ?
Thanks
petros
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
I guess at it by running a explorer and visually comparing the count of accepted and rejected securities .
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
I'm afraid johnl's solution is correct. The formula language does not have a way to count the number of securities that meet a given condition. The explorer can list those that past a filter, but the total number is not stored or reported in any fashion
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Petros
Your concept has been covered in a past issue of MSTT (MetaStock Tips and Tools). In fairness to the many subscribers who paid good money for their copy of that newsletter I cannot give you a free copy. However, if you email me I'm sure that we can agree on a modest price for the relevant issue, and any assistance you need from that point on to see the project through to a successful conclusion.
The concept is implemented by using global variables (stored in Mark Pyle's GlobalVar DLL) in an exploration to count historical events, and then saving the results to a custom data file. From then on a different exploration is run to count each days results so that the historical data file can be manually updated.
Creating a useful historical file can take a while (anywhwere from a few minutes to a couple of hours), and regular updating should take less than 5 minutes a day.
Roy
rlarsen@quik.co.nz
|
|
|
|
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.