How to Write a Script for Metatrader 5

Dear colleagues, friends and forex traders, hello! We continue our MQL5 lessons.

Today we will practice writing scripts and write one universal script for opening a position, deleting a grid of limit and stop orders, and changing Stop Loss and Take Profit for orders that are in the market. Having such scripts in a trader's arsenal greatly simplifies work in the forex market and they simply must be available. So, let's begin...

Homework assignment

  1. Write a function for opening a sell position for the script.
  2. Add to the script a function for closing all active orders that are in the market.

Respectfully, Sergey aka xbms TradeLikeaPro.ru

How to write a script for MQL5. We write a universal forex script for Metatrader 5. Training video, watch online