Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/22/2006(UTC) Posts: 5
|
Can any one tell me how to insert this formula?
The simple 200 day Moving average of today > The simple 200 day moving average of yesterday
AND The high of today > The simple 200 day moving average of today
AND The low of today < The simple 200 day moving average of today
AND The slow stochastics (8,3,3) %K <= 40%
Would this formula be an exploration or a filter?
Many thanks
Regards
Lesmor
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
The simple 200 day Moving average of today > The simple 200 day moving average of yesterday
AND The high of today > The simple 200 day moving average of today
AND The low of today < The simple 200 day moving average of today
AND The slow stochastics (8,3,3) %K <= 40%
A:=Mov(C,200,S);
B:=Mov(Stoch(8,3),3,S);
Sig:=If(A>Ref(A,-1) and H>A and L<A and B<=40,1,If(A<Ref(A,-1) and H>A and L<A and B>=60,-1,0));
Sig
This will plot +1 for your condition, -1 for the reverse
Place the whole formula in ColA and in the filter section
ColA<>0
|
|
|
|
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)
|
Lesmor, Welcome to the Forum... I think you will benefit greatly by reading the MS Users Manual and attempting
all the exercises in the free Equis Formula Primer (from the downloads
section). Both of these will give you the knowledge and know-how to
build your own indicators, experts, explorations and systems; simple
ones like expressed in this thread, and with some time and practice you
will be able to code more complex ideas. To get you started try this: Code:
New Exploration}
{Filter}
sma:=Mov(C,200,S);
{simple 200 day Moving average of today > The simple 200 day moving average of yesterday}
sma>Ref(sma,-1) AND
{The high of today > The simple 200 day moving average of today}
H>sma AND
{The low of today < The simple 200 day moving average of today}
L<sma AND
{The slow stochastics (8,3,3) %K <= 40%}
Mov(Stoch(8,3),3,E)<=40
You can take the comments out if you desire, you dont need them. wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/22/2006(UTC) Posts: 5
|
Thanks very much for taking the time to reply, it has been of great benefit
I will take you advice on the Equis Formula Primer
Regards Andy
|
|
|
|
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.