I see now that the strategy closes only positions that opened by the strategy itself.
If a position opened manually, the strategy is not able to close it.
There is no way to alter and correct this? or to code in a different way the close function?
I am sending you the project file.
Valeria wrote:Please check the Position Side, it should be the same as the open order side.