Rank: Member
Groups: Registered, Registered Users Joined: 10/19/2005(UTC) Posts: 22
|
Hi,
If I want to run an exploration whereby I want to explore those stocks which have shown a certain event in the last 7 days how do I write it?
I am new to writing Meta languages.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Use the the alert function ...
Alert( "Your event" , 7)
Patrick :mrgreen:
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 10/19/2005(UTC) Posts: 22
|
Hi Patrick,
I am actually trying to create an exploration which will show those stocks only, which have shown the ellot wave indicator value of +1 atleast once within the past 10days.
If I write
x:=Fml(" EW") = 1;
If(Ref(C,-10)=x,1,0)
it does not work
thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
... :eek:
Use :
Alert(Fml(" EW"),10)
Patrick :mrgreen:
|
|
|
|
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)
|
Patrick
Using the Alert() function to extend a signal in the Explorer is ineffective unless the number of bars being explored is set high enough to accomodate the Alert period on top of the highest "Periods" parameter used anywhere in the exploration. An exploration set to scan "Minimum Records" will only include the bars required to generate Signal, not Alert(Signal,10).
ValueWhen(), BarsSince(), HighestSince() and most functions without a "Periods" parameter, have the same sort of problem when used in the Explorer.
New users are seldom aware that exponential moving averages also need about 5 times the "Periods" parameter to guarantee an accurate result. Neither are they aware that as many as 30 standard MS functions use Wilders Smoothing internally and give the same inaccurate results as Mov(C,x,E) when used with the "Minimum Records" setting.
Roy
MetaStock Tips & Tools
|
|
|
|
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.