Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Hi ,
Was wondering whether demarks COMBO system can be formulated?
I have found a code for it but the problem is resetting the code:
setup:=Sum(CCD:= C < Ref(C,-1) AND LRef(setup,-4) AND (Sum(cd,13)=13))
Hope someone can help
Rua
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
EDITED - Me giving the wrong answer ... :evil:
I removed it, to avoid any confusion.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Hi Patrick,
I think your code is for the sequential system. The combo system starts on the first bar of the setup and not the ninth bar. The criteria in addition to c <= ref(l,-2) is L < Ref(L,-1) . So each countdown bar is always less than the previous countdown bar. Does this make sense?
Rua
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
My bad, I do remember seeing the COMBO formula. I will have to dig around my work computer and find it tomorrow.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Ok I found it, however this is old stuff so you may want to double/triple check it :)
setup:=Sum(C<Ref(C,-4),9)=9;
CD:= C < Ref(C,-1) AND L<Ref(L,-1);
Ref(setup,-4) AND (Sum(cd,13)=13)
Let me know if this works for you
On a different note, may I ask why you wanted this formula? Because this is some tough criterias its looking for.
( Just trying to get information from you :wink: )
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Hi Patrick,
The system finds points of price exhaustion where the probabilities of a quick price reversal is high. I find the Combo much more effective than the Sequential however I have had problems programming it into Metastock.
Your code for the Combo is not strictly correct as each bar has to have a lower low than the previous countdown bar. The bars are also not necessarily consecutive. This is where your formula fails. It relates the current low to the previous low and not the previous countdown bar low.
Any other suggestions? I have fiddled with the code I posted you but the problem is it keeps looking for bars lower than the previous countdown bar low and does not reset after a countdown of 13 is reached.
Hope you can help
Rua
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
I'm affraid that our only option is to create our own reset.
For example we could limit the time for the COMBO to 60 periods.
if it has not happened within 60 periods then we will reset the indicator. I know this is not the answer you wanted but I don't see any other solution,especially if the countdowns do not have to be successive and etc ...
Or maybe create a dll with the developpers kit ...
|
|
|
|
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.