EXP I Custom Expert Advisor

EXP I Custom Expert Advisor
Download ALL MT4 experts (893)
YouTube Video Thumbnail



Similar MetaTrader Tools

EXP I Custom Expert Advisor

Info

The EXP I Custom Expert Advisor is a Expert Advisor for MetaTrader 4 that change the type of variables _o_m3_buylevel, _o_m3_selllevel, _c_m3_closebuylevel, _c_m3_closeselllevel, from int to double, to allow input of fractional numbers. More details can be found on the page.

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 EXP I Custom Expert Advisor

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

Change the type of variables _o_m3_buylevel, _o_m3_selllevel, _c_m3_closebuylevel, _c_m3_closeselllevel, from int to double, to allow input of fractional numbers.

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: e-trailing2: enhanced trailing stop expert advisor - another powerful expert for MetaTrader 4 traders.

Change the type of variables _o_m3_buylevel, _o_m3_selllevel, _c_m3_closebuylevel, _c_m3_closeselllevel, from int to double, to allow input of fractional numbers. More details can be found on the page.

Also recommended: e-signal of trade expert advisor - similar expert with strong performance on MetaTrader 4.


Implemented the ability to include additional checks when closing orders based on the indicator: check of the order profit (close only orders with profit not less than specified), check of the order stop loss location (if stop loss fixes the specified profit, the order is not closed).

Variables:



Additional rules for closing


checkprofit
- Check the order profit when closing, orders with less than minimalprofit profit are not closed.

minimalprofit
- See the checkprofit variable.

checksl
- If the stop loss of the order fixes a profit not less than minimalslprofit, the order is not closed.

minimalslprofit
- See the checksl variable.


Added ability of trailing based on a custom indicator.
Any indicator can be used, for example, the channel, two-colored alternating indicators that draw dots or arrows, and the order modification will only happen if a dot or arrow is present.

Variables:


Trailing by indicator

_ts_on
- Enable trailing by indicator.

_ts_icustomname
- Name of the custom indicator.

_ts_icustomparam
- The list of parameters delimited by "/". For boolean variables, use 1 instead of true, 0 instead of false. If the indicator parameters contain string variables, the EA will not work!!!

_ts_iforbuybufindex
- Index of the buffer for buy orders.

_ts_iforsellbufindex
- Index of the buffer for sell orders.

_ts_ishift
- Indicator shift. 1 - on formed bars, 0 - on forming bar (not recommended). Values 2,3,4... are also possible.

_ts_opt_1_use
- Enable usage of optimized variable 1. When activated, the value of opt_x_value will be used instead of the value from the icustomparam string defined by opt_x_index.

_ts_opt_1_index
- Index of optimized variable 1 in the parameter array (icustomparam string). Numbering starts with zero.

_ts_opt_1_value
- Value of optimized variable 1.

_ts_opt_2_use
- Enable usage of optimized variable 2.

_ts_opt_2_index
- Index of optimized variable 2 in the parameter array (icustomparam string). Numbering starts with zero.

_ts_opt_2_value
- Value of optimized variable 2.

_ts_opt_3_use
- Enable usage of optimized variable 3.

_ts_opt_3_index
- Index of optimized variable 3 in the parameter array (icustomparam string). Numbering starts with zero.

_ts_opt_3_value
- Value of optimized variable 3.

_ts_opt_4_use
- Enable usage of optimized variable 4.

_ts_opt_4_index
- Index of optimized variable 4 in the parameter array (icustomparam string). Numbering starts with zero.

_ts_opt_4_value
- Value of optimized variable 4.

_ts_opt_5_use
- Enable usage of optimized variable 5.

_ts_opt_5_index
- Index of optimized variable 5 in the parameter array (icustomparam string). Numbering starts with zero.

_ts_opt_5_value
- Value of optimized variable 5.

_ts_indent
- Indent (in points) from the indicator value.

_ts_trailinprofit
- Minimum trailed profit. The stop loss is moved only if it fixes not less than _ts_trailinprofit points of profit.

Added the ability to use two-colored indicators (_o_mode=5, _c_mode=5). Indicators like Heiken Ashi or colored moving averages can be used.
Some indicators paint one bar in the past (try increasing _o_ishift and _c_ishift by 1) or overlay lines of different colors (these cannot be used).

Added MarketWatch mode - opening market orders without stop loss/take profit, which are set afterwards.

New parameters:

In the "Indicator for Opening" parameters section:

_o_m5_ibuybufindex
- Index of the buffer for the line displayed during an uptrend.

_o_m5_isellbufindex
- Index of the buffer for the line displayed during a downtrend.

In the "Indicator for Closing" parameters section:

_c_m5_ibuybufindex
- Index of the buffer for the line displayed during an uptrend.

_c_m5_isellbufindex
- Index of the buffer for the line displayed during a downtrend.

In the "Order" parameters section:

mw_mode
- Enable MarketWatch mode.

You may also like: e-news-lucky$ - automated news trading expert advisor - excellent alternative for expert users on MetaTrader 4.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
/*
   v6
              :  
        (       ),   
        (    ,   ).
      :
      ====    ====
      checkprofit -     ,   ,  minimalprofit   

.......

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.