Locking is a situation where a trader simultaneously holds a long (LONG) and a short (SHORT) position of equal volume on the same asset. As a result:
The presented VR Locker Lite trading algorithm demonstrates working with one positive lock:
Operation algorithm:
Important things not to forget:
Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/68602
EA Duplicate Detector
Allow the EA to determine whether there are duplicate EAs on the chart based on conditions.
Project Template Generator
This script serves as a practical example of how developers can programmatically work with files using MQL5. One of its key objectives is to demonstrate effective project file organization, which is essential for developers working on large-scale systems or aiming to create portable, self-contained projects. The concept can be expanded further and refined with additional ideas to support more advanced development workflows.
Binary tradng based on candle colors
A simple binary trading strategy that counts candle colors.
Сode that records balance and equity charts and calculates additional optimization criteria
If you have access to the Expert Advisor code, you can save balance and equity charts and calculate additional optimization criteria by adding additional code from this library.