How do I add a Stoploss and TakeProfit level?

 

How do I add a Stoploss and TakeProfit level?

ticket = OrderSend( Symbol(), OP_BUYSTOP, lotSize(), Ask + ( totalBuyStop + 1.0 ) * ( Point * Offset ), Slippage,0,0,TradeComment, MagicNumber, 0 );    
ticket = OrderSend(Symbol(), OP_SELLSTOP, lotSize(), Bid - ( totalSellStop + 1.0 ) * ( Point * Offset ), Slippage,0,0,TradeComment, MagicNumber, 0 );
 
mr2014:

How do I add a Stoploss and TakeProfit level?

Simply check OrderSend in documentation.