Discussions
»
Product and Service Development
»
Formula Assistance
»
Check wether a signal X has occured during last 6 days and combine with signal Y ?
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.
|
|
|
|
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 ?
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Check wether a signal X has occured during last 6 days and combine with signal Y ?
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.