lock
Info
The lock is a Expert Advisor for MetaTrader 5 that idea by:. mql5 code by:.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use lock
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
idea by:.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: be c lockin dashboard manager - another powerful expert for MetaTrader 5 traders.
idea by
: .
mql5 code by
: .
suppose a trader enters the market with the buy and sell positions by an asset, where the currency is, say, at the level of 100. then the prices moves to 200. here, buying for 100 will be profitable, and selling for the same will be losing. we close our buy position, and the profit of 100 comes to our account. in this case, selling results in losing 100 units.
Also recommended: loong clock indicator - similar expert with strong performance on MetaTrader 5.
when using a grid, you should be sure of being able to make profit whatever direction is taken by the market. for this purpose, enter your buy and sell transactions again. now, for the sake of convenience, let us assume that the price is moving to level 100 again.the repeated selling will lead to +100, while the second buying will result in -100. according to the rules, you can close your sell position, and 100 more units will enter to your account. as a result, at this point, we have the total profit of 200.
now, the first sell position that has remained active is moving from level 200 to level 100. it is in the breakeven range now.
summing up the four transactions, we get the profits as follows: +100 for the first buy; +100 for the second sell; 0 for the first sell, and -100 for the second buy. the total profit has made +100. so we can delete all the orders and drink a glass of champagne. prior to each subsequent double opening (simultaneous opening of buy and sell), we increase the lot size by the factor of
lot exponential
.
there are many other market movements that make profitable these seemingly incomprehensible activities of simultaneous buying and selling.
however, in such trading, there is always a risk of "hanging" positions, i.e., positions that produce relatively high losses and have an opening price that is located very far from the current price. to overcome such "hanging" positions, we have introduced two parameters:
excess of balance over equity
(balance exceeding the equity) and
mimimum profit
.
in all cases, be careful, since two scenarios are possible: optimistic
and pessimistic
input parameters
lots
- initial lot;
take profit
- take profit;
lot exponential
- lot increase ratio;
excess of balance over equity
- balance exceeding the equity;
mimimum profit
- minimum profit;
magic number
- unique identifier for the ea.
You may also like: vr locker lite: a trading strategy based on positive locking - excellent alternative for expert users on MetaTrader 5.
Source Code
/
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.