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

Notification

Icon
Error

Options
Go to last post Go to first unread
Rounder  
#1 Posted : Friday, February 16, 2007 3:52:10 AM(UTC)
Rounder

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/16/2007(UTC)
Posts: 3

Hello all,

I am a new member and have stumbled along on to this great forum of meatstock users. First I would like to thank all the people that keep this place running for new people like myself to learn more about my charting package :)

I have been trying to create a Explorer that will give me a list of stocks/indices that have just made a moving average cross to the up or down side. So far I have been able to find this much

If(Mov(C,10,S)>Mov(C,30,S),1,If(Mov(C,10,S)<Mov(C,30,S),-1,0));
If(BarsSince(If(Mov(C,10,S)>Mov(C,30,S),1,If(Mov(C,10,S)<Mov(C,30,S),-1,0));=1) <BarsSince(If(Mov(C,10,S)>Mov(C,30,S),1,If(Mov(C,10,S)<Mov(C,30,S),-1,0));=-1),1,-1)

Im not sure if the code is completely wrong but if anyone out there could show me how to get all working it would be much appreciated.

Thank you in advance.

wabbit  
#2 Posted : Friday, February 16, 2007 4:55:42 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)
Rounder,

Welcome to the forum... I have been away for a while so my programming skills may be a little rusty, but try something like this:

Code:

ma1:=Mov(C,10,S);
ma2:=Mov(C,30,S);
up:=ma1>ma2;
up:=up and Alert(up=0,2);
dn:=ma1<ma2;
dn:=dn and Alert(dn=0,2);
up OR dn;


Hope this helps. If it doesn't then let me know and I will try to put my programing head back on!

wabbit [:D]
PTJim  
#3 Posted : Friday, February 16, 2007 5:10:02 PM(UTC)
PTJim

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/10/2006(UTC)
Posts: 252

Thanks: 11 times
Was thanked: 9 time(s) in 6 post(s)
Since Wabbit is much smarter than me, all I can add is "Meatstock? Yum!" Where do I get that version?

Rounder  
#4 Posted : Friday, February 16, 2007 7:43:24 PM(UTC)
Rounder

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/16/2007(UTC)
Posts: 3

Maybe its because I had a late night and just woke up but I still cant seem to get the MA cross Explorer working.

Thanks for your reply Wabbit, I hope you had a good holiday.

Rounder  
#5 Posted : Friday, February 16, 2007 8:05:15 PM(UTC)
Rounder

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/16/2007(UTC)
Posts: 3

I have a expert adviser formula (Mov(C,10,S)>Mov(C,30,S)) that seems to agree with the MA cross' on the chart but my troubles still lay in the fact I cant get an explorer to search through the market and pick the crosses that have just been made.

Sorry I was wrong about the above it gets ploted on the chart like a indicator, if you place it on you own charts and also place a 10day and 20 day MA you will see they do the same thing. But as anyone who has had a read of this thread will know I am trying to get an explorer for this formula.

Sorry if I am being a pain.

Any help would be great.

Thanks

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.