tamarac
23rd February 2004, 06:20 AM
Hi David,
Is there any chance that we might be able to use the protective stop function with pyramiding in the future?
I was testing a system using a fixed initial/protective stop and moving average exit strategy rather than a trailing stop as per code below. I was hoping I could combine this with trade pyramiding.
LongExitTrigger:=C<=Ref(Mov(C,10,VAR),-1);
LongInitialStop:=Ref(Mov(C,4,S),-1);
I was considering 2 scenarios: the initial protective stop would only be called for the initial trade, or alternatively a protective stop would be calculated for each pyramid trade.
Is this impossible with metastock code?
Regards,
Tamara
Is there any chance that we might be able to use the protective stop function with pyramiding in the future?
I was testing a system using a fixed initial/protective stop and moving average exit strategy rather than a trailing stop as per code below. I was hoping I could combine this with trade pyramiding.
LongExitTrigger:=C<=Ref(Mov(C,10,VAR),-1);
LongInitialStop:=Ref(Mov(C,4,S),-1);
I was considering 2 scenarios: the initial protective stop would only be called for the initial trade, or alternatively a protective stop would be calculated for each pyramid trade.
Is this impossible with metastock code?
Regards,
Tamara