background

Tradematic Support Center

Guides, articles, videos and links for Tradematic users and developers.

Как работают операторы *AtLimit и *AtStop?

62784РЕДАКТОР КОДА BUYATLIMIT BUYATSTOP SELLATLIMIT SELLATSTOP SHORTATLIMIT SHORTATSTOP COVERATLIMIT COVERATSTOP BUYATPRICE SELLATPRICE SHORTATPRICE COVERATPRICE СИГНАЛ СДЕЛКА ЗАЯВКА ОТКРЫТИЕ ЗАКРЫТИЕ

BuyAtLimit(bar, price)

  • если цена price < low, позиция не открывается
  • если open < цены price, то открывается по цене open
  • если open >=price, то открывается по цене price
BuyAtStop(bar, price)
  • если цена price > high, позиция не открывается
  • если open > цены price, то открывается по цене open
  • если open <=price, то открывается по цене price

Для Sell все меняется наоборот:
SellAtLimit(bar, price, LastPosition)

  • если цена price > high, позиция не открывается
  • если open > цены price, то открывается по цене open
  • если open <=price, то открывается по цене price
SellAtStop(bar, price, LastPosition)
  • если цена price < low, позиция не открывается
  • если open < цены price, то открывается по цене open
  • если open >=price, то открывается по цене price

Для Short и Cover будет так же, как и для Sell и Buy соответственно

Так же есть функция *AtPrice, когда позиция открывается в любом случае по указанной цене price.

This website uses cookies. By continuing to use this website, you consent to our Privacy Policy. OK