Adrian Miller
6th March 2005, 07:44 AM
David,
I don't seem to have much luck with testing pyramiding strategies.
I am testing a stop order entry system that tests well without pyramiding (there are no errors in the error log)
When I start adding pyramiding functions, all seems to go pair shaped.
The entry criteria is
LongEntryTrigger:=
Cross(Mov(C,3,S),Mov(C,9,S)) AND
C>Mov(C,100,S) AND
Ref(H,1)>=H+2;
LongEntryPrice:= Ref(H+2,-1);
LongEntryPrice:=If(LongEntryPrice<O,O,LongEntryPrice);
If(LongEntryPrice>H,H,LongEntryPrice);
If I add a pyramid trigger based on an additional trigger, the trade log generates three errors. This is becasue the trade is entered on the trigger day, and not the day after the trigger day. This forces errors as the trade entry price is higher than the high of the day, as the entry condition is Ref(H,1)>=H+2
If I add a pyramid trigger based on an additional trigger or 5% profit, with the profit threshold detection being based on the entry price, I get a million errors in the error log, with trade entries being generated every day (none of them being valide trade entries).
My question is this - can trade pyramiding be used when using stop order entries, or can it only be used when entry prices are the close or open?
And if this is the case, what viable alternatives are there to test pyrmading strategies on stop order entry systems (if any)
I've read and reread the pyramiding notes.
I'd appreciate some advice on this, as I always seem to get to this level and then stumble.
Thanks
Adrian
I don't seem to have much luck with testing pyramiding strategies.
I am testing a stop order entry system that tests well without pyramiding (there are no errors in the error log)
When I start adding pyramiding functions, all seems to go pair shaped.
The entry criteria is
LongEntryTrigger:=
Cross(Mov(C,3,S),Mov(C,9,S)) AND
C>Mov(C,100,S) AND
Ref(H,1)>=H+2;
LongEntryPrice:= Ref(H+2,-1);
LongEntryPrice:=If(LongEntryPrice<O,O,LongEntryPrice);
If(LongEntryPrice>H,H,LongEntryPrice);
If I add a pyramid trigger based on an additional trigger, the trade log generates three errors. This is becasue the trade is entered on the trigger day, and not the day after the trigger day. This forces errors as the trade entry price is higher than the high of the day, as the entry condition is Ref(H,1)>=H+2
If I add a pyramid trigger based on an additional trigger or 5% profit, with the profit threshold detection being based on the entry price, I get a million errors in the error log, with trade entries being generated every day (none of them being valide trade entries).
My question is this - can trade pyramiding be used when using stop order entries, or can it only be used when entry prices are the close or open?
And if this is the case, what viable alternatives are there to test pyrmading strategies on stop order entry systems (if any)
I've read and reread the pyramiding notes.
I'd appreciate some advice on this, as I always seem to get to this level and then stumble.
Thanks
Adrian