@Trader-2rba 

Para fazer dar certo o meu ficou desse jeito...

    

begin
  // Verifica se está vendido
  if (IsSold) then
    begin
      // Fecha a posição com uma compra
    if (LastCalcTime > 1700) or (MyPrice < (SellPrice-70)) or (MyPrice < (SellPrice-140)) or (MyPrice < (SellPrice-210)) or (MyPrice < (SellPrice-280))  then
        BuyToCoverStop((Myprice + 70),(MyPrice + 65))
         else if  MyPrice > (SellPrice + 140) then 
        BuyToCoverAtMarket;

 Dessa forma fiquei com um stop gain(BuyToCoverStop) e stop loss (BuyToCoverAtMarket)