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)
|
mozillan,
To achieve your aim, place the code for the system in one of the exploration columns and amend it using the BarsSince() function to return the period elapsed since the signal was TRUE. You can then filter the results.
Maybe this will help:
{column A} {Elapsed} x:=((MACD()>Mov(MACD(),45,E) AND C>Mov(C,25,E))=TRUE) AND (Ref(MACD()>Mov(MACD(),45,E) AND C>Mov(C,25,E),-1)=FALSE) AND BarsSince(Ref(((MACD()>Mov(MACD(),45,E) AND C>Mov(C,25,E))=TRUE) AND (Ref(MACD()>Mov(MACD(),45,E) AND C>Mov(C,25,E),-1)=FALSE),-1)) >= BarsSince(Ref(Cross(0.9*Ref(C,-7),C),-1)); BarsSince(x);
{filter} ColA>0 AND ColA<48
wabbit [:D]
P.S. I haven't checked the code for its accuaracy with the canned system. I found this code somewhere on the web a few days ago but have been too distracted by other projects to validate this code. I can see that it can be simplified considerably, but I will leave that up to you.
|