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:
- 4988
- Rating:
- Published:
- 2018.09.27 15:10
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Idea by: Alberto Tortella
MQL5 code author: barabashkakvn
Input Parameters
- Lots - position volume (always fixed, dynamic calculation is not used);
- Stop Loss - stop loss ("0.0" == off);
- Take Profit - take profit ("0.0" == off);
- Trailing Stop - trailing stop ("0.0" == off);
- Trailing Step - trailing step;
- Number of elements (check iHighest and iLowest) - amount of bars, among which the highest and the lowest bars will be searched
- Moving Average First - parameters of the first Moving Average:
- MA First: averaging period;
- MA First: horizontal shift;
- MA First: smoothing type;
- MA First: type of price or handle.
- Moving Average Second - parameters of the second Moving Average:
- MA Second: averaging period;
- MA Second: horizontal shift;
- MA Second: smoothing type;
- MA Second: type of price or handle.
- MACD - MACD indicator parameters:
- MACD: period for Fast average calculation;
- MACD: period for Slow average calculation;
- MACD: period for their difference averaging;
- MACD: type of price.
- magic number - unique EA identifier.
EURUSD, H1, "Every tick based on real ticks":
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21672

The Trend Intensity Index oscillator displayed as a color histogram.

A colored smoothed PWMA that displays the most recent value as a price label with the possibility to round the indicator levels up to a required number of digits.

The Silence indicator displays aggressiveness (price change rate, the blue line) and volatility (the red line) in a separate window.

The Slope Direction Line indicator is displayed as a colored moving average line indicating the average market movement direction.