MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2011.04.01 08:31
Place OCO Order, One pip Limit Order and One Pip Stop Order

Place OCO Order, One pip Limit Order and One Pip Stop Order - expert for MetaTrader 4

| English Spanish Portuguese

Views:
12792
Rating:
votes: 3
OCO_EA.mq4 (8.4 KB)view

Description:

Places One-Cancels-the-Other Order (OCO Order), One pip Limit Order and One Pip Stop Order on MetaTrader 4 (MT4) platform.

Global variables:

  • OCO_BUY_LIMIT - Buy Limit Price
  • OCO_BUY_STOP - Buy Stop Price
  • OCO_SELL_LIMIT - Sell Limit Price
  • OCO_SELL_STOP - Sell Stop Price
  • OCO_confirmation - After input Buy Limit Price, Buy Stop Price, Sell Limit Price or Sell Stop Price set OCO_confirmation = "1"
  • OCO_lots - Lots
  • OCO_oCO - if OCO_oCO = "1", One Canel Others
  • OCO_sL_Pips - Stop Loss Pips
  • OCO_tP_Pips -Take Profit Pips