OCO (one- cancels- others) order is pair of conditional orders which stipulates that if one order executes then the other order is automatically cancelled in this case.


Please refer the link to use OCO for placing Forever Order :  Forever Order using OCO