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

Notification

Icon
Error

Options
Go to last post Go to first unread
Lordvader  
#1 Posted : Monday, September 24, 2007 5:03:18 PM(UTC)
Lordvader

Rank: Member

Groups: Registered, Registered Users
Joined: 9/13/2006(UTC)
Posts: 24

Hi Guys!

Well, I want to create this simple Advisor:

When MA is increasing for the last 5 days and adx is greater than 25, I need a buy symbol:

Mov(c,50,e) > Ref(Mov(c,50,e),-5) and Adx(14)>25

The problem is: I have (n) symbols while this condition is "verifiable" and need this symbols only, when this condition is verified for the first occurrence.

Can you help me?

Thanks a lot!

henry1224  
#2 Posted : Monday, September 24, 2007 5:33:21 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 3 time(s) in 3 post(s)

Mov(c,50,e) > Ref(Mov(c,50,e),-5) and Adx(14)>25

some changes that you may think abut

A:=Sum(Mov(c,50,e) > Ref(Mov(c,50,e),-1),5)>4 and Adx(14)>25;

A=1 and Ref(A,-1)=0

Lordvader  
#3 Posted : Tuesday, September 25, 2007 3:00:55 AM(UTC)
Lordvader

Rank: Member

Groups: Registered, Registered Users
Joined: 9/13/2006(UTC)
Posts: 24

Thank you very much henry1224!

This was really what I needed!

I'm just curious: with do use use "Sum" and ">4" in your formula?

Could you help me again with the same formula, but this time, replacing Adx with: Pdi(14) greater than Mdi(14) ?

Regards,

Lord

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.