Paul Mansion / Publications
Forum
Invalid Stops when modifying orders with CTrade
{ StopLoss = NormalizeDouble ((Bid - ( 15 *pipstotrade* Point ())), SymbolInfoInteger (CurrentSymbol, SYMBOL_DIGITS )); TakeProfit = NormalizeDouble ((Bid + ( 30 *pipstotrade* Point ())), SymbolInfoInteger (CurrentSymbol, SYMBOL_DIGITS )); trade.PositionOpen(CurrentSymbol, ORDER_TYPE_BUY , lotsize