logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
testsql  
#1 Posted : Friday, April 2, 2010 8:52:50 AM(UTC)
testsql

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/2/2010(UTC)
Posts: 2

Hi. Can anybody tell me the price is exactly between the 100 and 200 day moving average. (AND)

the price is exactly between the 100 and 200 day moving average for last 5 trading days 5.

Thanks in advance for your efforts.
wabbit  
#2 Posted : Saturday, April 3, 2010 1:00:04 AM(UTC)
wabbit

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)
[moved from hamming thread -- hijack]

Please read the MS Users Manual and/or the free Equis Formula Primer and/or the multitude of posts on the forum about how to code this for yourself. You will need the If() and Sum() functions.



wabbit [:D]



testsql  
#3 Posted : Saturday, April 3, 2010 9:06:18 AM(UTC)
testsql

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/2/2010(UTC)
Posts: 2

Hi Wabbit,
I am poor in writing the code. Can you pl post your valuable code here. Thanks in Advance.
johnl  
#4 Posted : Monday, April 5, 2010 7:50:14 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

The code should look something like:

a1:=Mov(C,100,S);
a2:=Mov(C,200,S);
a3:=(C>a1)*(C<a2);
a4:=Sum(a3,5)>4;
a4

You can play around with it from here.
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.