Hey traders! If you're diving into automated trading, let’s chat about the RobotPowerM5 for MetaTrader 5. This Expert Advisor (EA) is designed to analyze the iBullsPower and iBearsPower indicators, providing you with insights to make informed trading decisions.
How It Works
The magic happens when the EA analyzes the first bar's indicator readings:
//+------------------------------------------------------------------+
//| Calculate indicators' value |
//+------------------------------------------------------------------+
void calculateIndicators()
{
bull = iBullsPowerGet(1);
bear = iBearsPowerGet(1);
Comment("bull+bear= ",bull+bear);
//b = 1 * Point() + iATRGet(1)*1.5;
//s = 1 * Point() + iATRGet(1)*1.5;
isBuying = (bull+bear > 0);
isSelling = (bull+bear < 0);
isClosing = false;
}
//| Calculate indicators' value |
//+------------------------------------------------------------------+
void calculateIndicators()
{
bull = iBullsPowerGet(1);
bear = iBearsPowerGet(1);
Comment("bull+bear= ",bull+bear);
//b = 1 * Point() + iATRGet(1)*1.5;
//s = 1 * Point() + iATRGet(1)*1.5;
isBuying = (bull+bear > 0);
isSelling = (bull+bear < 0);
isClosing = false;
}
Backtesting Results
We ran a test on the EURUSD M5 timeframe with a deposit of $100, covering the period from June 1, 2016, to October 31, 2016, using the default parameters:
This EA can be a game-changer for your trading strategy, leveraging powerful indicators to give you an edge. Give it a shot and see how it fits into your trading plan!
Comments 0