Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 324
- Rating:
- Published:
-
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
combination of many familiar indicators for beginner traders
Indices Tester
The EA only trades buy positions and does not use Sl and TP.
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.