Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
324
Rating:
(3)
Published:
OpenTrade.mq5 (4.61 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This function executes the main logic for initiating a trade.

  • It calculates the opening price, take profit levels and stop loss based on the symbol information and parameters provided by the user.
  • Prepares a trade request (MqlTradeRequest) with essential details such as symbol, volume, order type, slippage, comment, magic number, etc.
  • Invoke the OrderSend function to send the trade request and get the result.


SetTypeFillingBySymbol function:

  • This function determines the type of order fulfilment (Fill or Cancel, Immediate or Cancel or Return) according to the symbol's fulfilment policy.


GetMinTradeLevel function:

  • Calculates the minimum trade level considering the freeze level and stop level of the symbol. Adjusts the minimum level to ensure that it is within specified limits and returns the result."

    Translated from Spanish by MetaQuotes Ltd.
    Original code: https://www.mql5.com/es/code/48110

    ATR_Momentum_Colour ATR_Momentum_Colour

    combination of many familiar indicators for beginner traders

    Indices Tester Indices Tester

    The EA only trades buy positions and does not use Sl and TP.

    Accelerator Oscillator (AC) Accelerator Oscillator (AC)

    The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

    MACD Signals MACD Signals

    Indicator edition for new platform.