Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
6185
Rating:
(21)
Published:
2012.12.12 13:13
Updated:
2023.03.29 13:42
ma_rounding.mq5 (7.75 KB) view
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The real author:

BACKSPACE

Crossed МА and ZigZag. To be more exactly, МА drawn on the Zigzag principle. In the input data except the Moving Average itself also the parameter is present.

input uint MaRound=50; //coefficient of rounding 

This parameter determines on what number of points to the side opposite the previous movement the МА doesn't respond.

This indicator was first implemented in MQL4 and published in Code Base on 11.02.2010.

The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging price series for intermediate calculations without using additional buffers".

Fig.1 The MA Rounding indicator.

Fig.1 The MA Rounding indicator.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1211

TrendPaint TrendPaint

The indicator draws candlesticks depending on the trend direction.

Exp_Kolier_SuperTrend Exp_Kolier_SuperTrend

Trading system using the Kolier_SuperTrend trend indicator

MA_Rounding_Channel MA_Rounding_Channel

The indicator draws the channel for flat market based on the MA Rounding.

2pbIdealXOSMA_Candles 2pbIdealXOSMA_Candles

This indicator draws candlesticks in accordance with the color of the bars in histogram of the 2pbIdealXOSMA indicator.