Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/6/2008(UTC) Posts: 10
|
I would like to guage the market mood from my data, say FTSE100 constituents.
High = Count all of the increasers on the data
Low = Count all of the decreasers on the data
Mid = Count all of the no or low movers on the data
then I'd take a ratio of High/Low. maybe H/(L+M) dunno...
Is there a function which does this?
Thanks
Philip
|
|
|
|
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 Philip
There’s no particular MetaStock function that does the sorts of things you want but there is a DLL that allows you to use the Explorer for counting almost any condition you might care to define. The GV DLL is available from my website free but you’ll probably need additional help to develop code that works properly. A recent issue of MSTT (my MetaStock Tips &Tools newsletter) has a model exploration that generates ascending counts and can create percentages or other stats from those counts.
The principles for creating a counter are quite simple. First, one or more global variables must be defined by a preliminary exploration. With that done the main counter exploration simply reads the counter’s current value, adds that to the logical state or value being counted, and writes the new value back to the appropriate global variable. No standard MFL function or routine can do this.
Multiple counts can be performed by each of the main exploration’s columns but usually only one count or other value would be displayed in the report. However it’s not that difficult to display a counter integer result along with a percentage result presented as a decimal fraction. Once the exploration is complete the report will probably need sorting (as easy as clicking on a column header) so that the last line of the report truly is the last line processed by the Explorer.
Roy
www.metastocktips.co.nz
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/6/2008(UTC) Posts: 10
|
Hi Roy, sounds promising, I'll download and see!
|
|
|
|
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.