I have exit strategy as below:
SetProfitTarget("Long1", CalculationMode.Percent, MyProfitPercent);
SetStopLoss("Long1", CalculationMode.Percent, MyStopPercent, true);
If a trade is stopped out, it's ok, the next trade can be triggered any time if the condition is met. But if a trade reaches the profit target, I want the program to wait a certain number of bars even though the condition is met again. How to do this?
In my case, when a trade reaches profit target, the next trade triggers immediately because the condition is met again... I want to avoid this, but I don't want to limit my program to have only one trade a day, besides for stopped out case, it's ok to let the next trade happen once the condition is met.
Thanks.
Comment