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

Notification

Icon
Error

Options
Go to last post Go to first unread
Ben_Zurich  
#1 Posted : Friday, September 1, 2006 5:49:45 PM(UTC)
Ben_Zurich

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/4/2006(UTC)
Posts: 57
Location: Zurich, Switzerland

How can I combine a condition with one that has happened over the last x days?

E.g. want to generate a Buy Signal
IF
C>MovAvrg for more than 2 days
AND
Signal Y has been generated during the past 6 days.

?

Thanks in advance.





Ben_Zurich  
#2 Posted : Friday, September 1, 2006 5:59:53 PM(UTC)
Ben_Zurich

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/4/2006(UTC)
Posts: 57
Location: Zurich, Switzerland

sorry, forgot to mention that actually signal Y is being generated "too often" - multiple times.

So I want to combine it with the price crossing a moving average or regression line.

Also, I would then like to make sure that when the SAME signal would be triggered after is has been triggered for the first time, that I could ignore until it would reverse. Is that possible ?



wabbit  
#3 Posted : Friday, September 1, 2006 7:06:41 PM(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)
Ben,

Try something along these lines:

BarsSince(C<=MA)>2
AND
Alert(Signal Y,6)


If you have something more specific that needs 'latching' (search the Equis Forum for latches) then post your full code and I am sure someone will help...


wabbit [:D]

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.