How to code s/l and exit strategy based on buy price in pi

You have to hard code for your exit and stop loss after a trade has happened for each and every trade, Instead you have two alternatives

  1. After trade you can enter manually two orders,one for exit and one for stop loss but after one is traded you have to manually cancel the other and this is really painful.

  2. Best way is to use BO(Bracket order) option to place trades as before entering the trade only you can mention your entry price,target,and stop loss and can also trail the stop loss when the trade is in your favor.When the second leg of BO is traded the 3rd leg will be canceled automatically.Also you can take advantage of high leverage.