Cross Line Trader

Cross Line Trader
Download ALL MT5 experts (1734)
YouTube Video Thumbnail



Similar MetaTrader Tools

Cross Line Trader

Info

The Cross Line Trader is a Expert Advisor for MetaTrader 5 that it is a semi-automatic expert advisor that opens positions at the intersection of lines drawn on the symbol chart. Supported line types:- Trendline- Trendline by angle- Vertical line- Horizontal lineThree interaction modes:- Open position as indicated in line description- Buy only- Sell onlyOnce a position is opened, the line becomes inactive and its type changes as per settings to avoid reopening.

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 Cross Line Trader

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

It is a semi-automatic expert advisor that opens positions at the intersection of lines drawn on the symbol chart.

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: Change Point: Bayesian Online Change Point Detection - another powerful expert for MetaTrader 5 traders.

It is a semi-automatic expert advisor that opens positions at the intersection of lines drawn on the symbol chart.

Also recommended: Fx Craft Example EA: MA Cross Strategy Explained - similar expert with strong performance on MetaTrader 5.


Supported line types:

- Trendline

- Trendline by angle

- Vertical line

- Horizontal line

Three interaction modes:

- Open position as indicated in line description

- Buy only

- Sell only

Once a position is opened, the line becomes inactive and its type changes as per settings to avoid reopening.

Intersection types:

- Trendlines: Intersection is counted if the 'ray to the right' parameter is enabled, or if the right edge of the line is on or to the right of the current bar.

- Horizontal line: Open prices of past and current bars must cross the line to open a position.

- Vertical line: Position is opened when the current bar opens behind the bar where the line is set.

Designed for hedging accounts. A warning will appear if used on a netting account.

Position volume, stop loss, and take profit are configurable. The EA adjusts values if they are invalid or if the lot size is incorrect.

Input parameters:

- Direction of opening positions: As per line description, always buy, or always sell.

- Description for buy/sell positions: Line description for opening buy/sell positions.

- Inactive line style: Style for inactive lines.

- Expert's magic number: Unique identifier for positions opened on intersection.

- Lots: Volume of positions to open.

- Stop loss and take profit in points: Stop loss and take profit values in points.

- Slippage of price: Maximum allowed slippage when opening a position.

- Multiplier spread for stops: Spread multiplier for calculating proper distance for stop orders.

- Waiting for environment update (in seconds): Time to wait for trading environment updates.

- Number of attempts to get the state of the environment: Number of attempts to obtain accurate trading environment.

- Log messages: Enable/disable logging of line intersection messages.

Note: The EA adjusts stop loss and take profit values if they are invalid, and lot size if incorrect. It ensures positions are opened with the available balance.

You may also like: News Lines Utility: Economic Calendar On Your Chart - excellent alternative for expert users on MetaTrader 5.

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.