PDA

View Full Version : Profit stop and Pyramiding mutually exclusive?


adrianm
7th July 2006, 03:51 AM
Hi There,

I am trying to get profit stops to work with Pyramiding, but each time I add pyramiding to my code, my 10% profit stop stops working.

Is there a known reason why this might be the case, or does someone require more info (code) to see what the problem might be?

Cheers,

Adrian

adrianm
11th July 2006, 06:43 AM
David,

Can you please define if there are any problems with using both pyramiding and profit stops?

Below are the function calls that are causing the problems. With this arrangement, the system no longer exits after a 10% profit threshold.

When I remove the "ExtFml("TradeSim.EnableTradePyramiding",trigger,0,20);", the 10% profit stops work, however I can no longer utilise pyramiding.

Any help on this would be appreciated. As you can see, I want to execute pyramiding irrespective of the current profit status on existing positions (hence the zero after the trigger.).

ExtFml("TradeSim.SetProfitStop",10);
ExtFml("TradeSim.EnableProtectiveStop",0);
ExtFml("TradeSim.EnableTradePyramiding",trigger,0,20);
ExtFml( "TradeSim.EnableDelayOfEntryByOneBar");
ExtFml( "TradeSim.EnableDelayOfAllExitsByOneBar");
ExtFml("TradeSim.SetExitPriceToInitialStop");
ExtFml( "TradeSim.RecordTrades",
"adret Profit stop final pyramid", { Trade Data Filename }
LONG, { Trade Position Type }
EntryTrigger, { Entry Trigger }
EntryPrice, { Entry Price }

David Samborsky
11th July 2006, 12:32 PM
Have you tried this on the latest beta. Also use the ShowChart function to analyse the trades ??