Hi,

How do you set the parameters in order to have Trailing Stop and 
Profit Target working together? I want to trade with 1 bar delay and 
trade on next bar Open.

The settings I use is as follows.
SetOption("AllowSameBarExit",1);
SetOption( "ActivateStopsImmediately", 1);
SetTradeDelays( 1, 1, 1, 1 );
BuyPrice=Open;
SellPrice=Open;
ApplyStop(stopTypeProfit,stopModePercent,ProfitTarget,1,True,0 );
ApplyStop(stopTypeTrailing,stopModePercent,TrailingStop,2,True);

This does not work as the Profit Target has higher priority than the 
Trailing Stop so if a Trailing Stop is hit because of the previous 
bar H-L range then it should exit on next day Open instead of hitting 
the Profit Target on the same day. If I could change the priority 
order, then it would probably be OK.

Do you have an idea how to solve this?

Thank you.

Br,
Zozu

Reply via email to