I have coded a strategy that opens positions with the EnterLong(int quantity) function.
I would like to know if it is possible to set a profit target that will automate the closing of a part of the position ?
Example :
- open a position with function call EnterLong(10000, "mystrategy");
- some minutes later, when the target profit is reached, automatically close a part of the position as if were called function ExitLong(5000);
Thanks
Comment