Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Published by:
- Vladimir Karputov
- Views:
- 5056
- Rating:
- Published:
- 2017.01.19 16:55
- Updated:
- 2018.02.16 10:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The Expert Advisor is based on analyzing iBullsPower and iBearsPower indicator readings on the first bar:
//+------------------------------------------------------------------+
//| 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;
}
Testing on EURUSD M5, deposit $100, 2016.06.01-2016.10.31, default parameters:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/16741

Ehlers Center of Gravity indicator in the form of candles.

The trading system based on the three RVI oscillator signals from three different timeframes.

The indicator shows the price chart of any scaling level.

This Expert Advisor closes all positions if the total loss exceeds a predefined limit.