MetaTrader4
Mastering the exp_iCustom_v1 EA for MetaTrader 4: A Trader's Guide
What is the exp_iCustom_v1 EA?
The exp_iCustom_v1 is a powerful EA designed to work seamlessly with any custom indicator that displays buy and sell arrows. Just a heads up, it won't work with indicators that have string parameters!
You’ll need to specify the name of your custom indicator in the EA's settings, along with the parameters and buffer numbers for the buy/sell signals. This flexibility allows you to tailor the EA to your unique trading strategy.
Even though the EA utilizes a string list for parameters, you can optimize up to five of the indicator's parameters. Instead of using the values from the iCustomParam string list, you can tap into the Opt_1_Value to Opt_5_Value variables for your optimization needs.
Key Parameters of the EA
TimeFrame: Set the working timeframe for the EA (0 for the chart timeframe or specific values like 1, 5, 15, etc.).
iCustomName: Your custom indicator's name.
iCustomParam: The parameter list separated by slashes. Remember to use 1 for true and 0 for false. If there are string parameters, the EA won’t function!
iBuyBufIndex: Specify the buffer index for buy arrows.
iSellBufIndex: Specify the buffer index for sell arrows.
iShift: Indicator offset (1 for completed bars, 0 for current forming bar, not recommended).
Opt_1_Use: Enable this to optimize the first variable. If activated, it overrides the value from iCustomParam with the Opt_1_Value.
Opt_1_Index: Index for the first variable to optimize (starts at zero).
Opt_1_Value: Value for the first variable to optimize.
... (continue in similar fashion for remaining parameters)
Important Note
The EA comes with a settings example file (test_example.set) for the ind_Test indicator, which uses two moving averages. You’ll also find the ind_Test indicator attached for your convenience.
Version Updates
Version 2: You can now use different indicators for opening and closing signals. Opening indicator parameters start with _O_, while closing ones start with _C_. There are three modes for using these indicators:
Mode 1: No closing indicator; orders close via stop loss and take profit only.
Mode 2: Closing via opening signals alongside stop loss and take profit. Set StopLoss and TakeProfit to 0 to disable them.
Mode 3: Use a separate closing indicator for closing signals, with an option to copy parameters from the opening indicator.
Version 3: Added a new mode (_O_Mode): Mode 4, which detects extremums using three points.
Version 4: Enhanced functionality includes working with pending orders and added section separators in the properties window. The order type can now be selected via the OrdType variable (0 for market, 1 for stop, 2 for limit).
PendLevel: Level from the current price to place pending orders.
PendPromPrice: Price to place the pending order based on the zero bar.
PendNewSigMode: Controls how new signals affect pending orders.
PendPriceFollow: Modify orders based on price changes.
PendDelete: Delete pending orders based on opposite signals.
PendExpiration: Set the order expiration time in minutes (minimum 11 minutes).
2016.05.16