limits martin

limits martin
Download ALL MT4 experts (885)
YouTube Video Thumbnail



Similar MetaTrader Tools

limits martin

Info

The limits martin is a Expert Advisor for MetaTrader 4 that added trailing stop and breakeven features, which are activated if: 1) they are enabled in the ea settings; 2) the last order has either closed in profit or broken even. trailing_use=true; enable trailing of stop orders (works if the last order has closed in profit or broken even).

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use limits martin

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

added trailing stop and breakeven features, which are activated if: 1) they are enabled in the ea settings; 2) the last order has either closed in profit or broken even.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.

Description & Settings

Related: Martingale System with Random Entry - another powerful expert for MetaTrader 4 traders.


added trailing stop and breakeven features, which are activated if: 1) they are enabled in the ea settings; 2) the last order has either closed in profit or broken even.

Also recommended: Martini - similar expert with strong performance on MetaTrader 4.


trailing_use=true; enable trailing of stop orders (works if the last order has closed in profit or broken even).

profit_level_trailing = 100; profit level in points, when reached by an order, trailing stop is activated.

trailingstop=50; trailingstop distance in points, at which the stop loss will trail the price.

trailingstep=50; step in points, after which the stop loss is modified.

breakeven_use=true; enable breakeven.

profit_level=30; an order moves to profit of the stated number of points (for breakeven).

sl_plus = 10; sets the order breakeven+sl_plus in points.

at the default of "step" points (200 pt. by default) from the market price, the ea places pending buy limit and sell limit orders with the specified stop loss ("sl", 30 pt. by default) and take profit ("tp", 60 pt. by default).

if the price moves away from the pending order, the ea trails the pending orders after the price, with a step of "step_interval" points (10 pt. by default).

when any of the pending of orders is triggered, the opposite one is removed and new orders are not placed until the existing market order is closed. if the last order was closed in profit, the subsequent limit orders are opened with the initial lot, equal to the "lots" parameter. if the last order closed in a loss or if there is a series of multiple unprofitable orders in a row, the ea calculates the lot size of the subsequent pending orders in a way that closing the next order by take profit covers the previous losses (it is recommended to set the take profit at least twice the size of stop loss).

if the megalot is set to true (enabled), in case the previous order (series of orders) had closed in a loss, the next order will be opened with a lot size, that is able to cover the previous losses and earn extra in the deposit currency = the number of profit points taken by the initial lot.

the ea features a limit on the number of lot multiplications in the "limit" parameter. if there is a series of consecutive losing orders in the amount exceeding or equal to the "limit", the lot size of the subsequent orders will be set to the initial value and equal to the "lots" parameter, until there is an order closed in profit.

increase of the lot size after receiving unprofitable orders can be disabled by setting "martin = false".

the ea provides the ability to place pending orders at the price equal to the opening price of the last deleted order (it is better to leave "false").

You may also like: VR Overturn: Martingale and Anti-Martingale Expert Advisor - excellent alternative for expert users on MetaTrader 4.

Source Code

/

.......

Leave your opinion, ask a question, share some knowledge

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.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.