I have the Initial StopLoss set as:
SetStopLoss("", CalculationMode.Ticks, iStopLoss, false);
Where the StopLoss setting is set when you configure the strategy based on your risk tolerance.
So then I try to set the StopLoss as the trade progresses to minimize any losses by using:
SetStopLoss("", CalculationMode.Currency, dCurrStopLoss, false);
Where dCurrStopLoss is adjusted based on current price compared to purchase price.
I get this message in the Output Window:
Stop/target handling set to 'By strategy position' since currency based stop order was placed.
And even though the StopLoss target that is set is reached the position does not close.
What is the preferred method for adjusting stop loss in an Automated Trade?
Thanks.
Comment