Developer: Forex Robot Easy Team
Developer's site: forexroboteasy.com
This code is an expert advisor for MetaTrader 4 platform that implements a swing trading strategy based on the iPump indicator. The expert advisor trades on the specified symbol and timeframe using predefined lot size, stop loss, and take profit levels.
The expert advisor uses the iPump indicator to identify sharp impulses in the market. The iPump indicator calculates the impulses based on the closing prices. The strategy is as follows:
- Initialize the expert advisor by setting the trade parameters and creating the iPump indicator.
- On each tick, calculate the impulse using the iPump indicator and get the current market price.
- If the impulse is negative and the current price is higher than the overbought level of the iPump indicator, enter a buy trade with the specified lot size, stop loss, and take profit.
- If the impulse is positive and the current price is lower than the oversold level of the iPump indicator, enter a sell trade with the specified lot size, stop loss, and take profit.
- Perform necessary cleanup before deinitializing the expert advisor by deleting the iPump indicator.
To use this expert advisor, follow these steps:
- Include the necessary libraries:
Trade.mqh
andiPump.mqh
. - Define the constants for lot size, stop loss, and take profit.
- Initialize the global variables:
trade
andiPump
. - Implement the
OnInit()
function to set the trade parameters and initialize the iPump indicator. - Implement the
OnTick()
function to execute trades based on the swing trading strategy and iPump indicator. - Implement the
OnDeinit()
function to perform necessary cleanup before deinitializing the expert advisor. - Optionally, implement the
TestEA()
function to test the expert advisor in different market conditions.
This code is provided as a sample implementation of the Impuls Pro MT4 expert advisor. Forex Robot Easy is not the official developer of this product. For detailed reviews and trading results of this product, please visit the official developer's website: forexroboteasy.com. To find the official developer of this product, please use MQL5.