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

Notification

Icon
Error

Options
Go to last post Go to first unread
manageacc  
#1 Posted : Tuesday, April 5, 2011 6:20:02 AM(UTC)
manageacc

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/21/2011(UTC)
Posts: 5

Hi All,

I want to have a simple explorer function that basically retrieves all data/stocks that;

Either
1) CCI (20 period) exceeds 200 level and
2) CCI (20 period) goes below -200 level.

So far, I have the following, and its not working.. as I am not that aware of Metastock's language, can you please help. Thank you!

COL A: Longs: CCI(14)<-200
COLB: SHORTS: CCI(14)>200

FILTER: COL A OR COLB




wabbit  
#2 Posted : Tuesday, April 5, 2011 8:08:50 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)
If you want a 20 period CCI() then why have you specified only 14 periods in the exploration? Do some revision of writing codes in the MS User Manual and the free Equis Formula Primer.

try:

Code:

{ColA - CCI}
CCI(20);

{filter}
ind:=CCI(20);

ind>200 OR
ind<-200;

{this could be simplified by using : abs(ind)>200 }



wabbit [:D]

manageacc  
#3 Posted : Wednesday, April 6, 2011 5:10:09 AM(UTC)
manageacc

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/21/2011(UTC)
Posts: 5

Thank you Wabbit, works like a charm,,,
appreciate it.
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.