entryOrder = EnterLong(1, 100000, LONG_POSITION);
As it runs the strategy is supposed to take 25% partial profits when it reaches the 1R mark. Although I have coded pretty complex strategies which override onExecution and onOrderUpdate I have never taken partial profits. Do I simply exit with a partial amount?
exitOrder = ExitLong(1, 25000, "Exit Long Position", LONG_POSITION);
Is that it? Will I still be long 75,000 units after that? I am just wondering if that is all there is to it.
Also, I will have to update the quantity in my stop as well, right? So do i overwrite the the stopOrder.quantity manually or is there a special call to make?
Any input would be appreciated.
Comment