How can we make an MQL5 EA buy something?
Knowing the spread is nice, but how can we make a trade in MQL5?
To start trading in MQL5 you need to understand what a MQLTradeRequest is. We are going to cover that in the advanced course in more detail. Basically it is all the data that you need to have when you place a trade by hand like the direction (Buy or Sell), the current price, the settings for StopLoss and TakeProfit and so on.
Here is how to use the MQL5 Help to understand the MQLTradeRequest
- Open MetaTrader 5
- Press F4 to open the MetaEditor
- Type in MqlTradeRequest
- Put your mouse cursor over that word and press F1
Now you should see the context sensitive Help window come up
Congratulations! You have made it through the very basic part of this course. If you would like to continue you can sign up FOR FREE for the advanced part REAL MQL5 TRADES