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
Scripts

EMA and SMMA are identical - script for MetaTrader 4

Views:
9592
Rating:
(14)
Published:
2016.03.25 15:51
Updated:
2016.03.25 15:51
ema_smma.mq4 (0.55 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This topic had been humorously mentioned by Rosh here: The "classic" system based on two MAs. And it surfaced once again here: https://www.mql5.com/ru/forum/51841 .

I managed to strictly prove the identity of the recurrent formulas of these indicators at a certain ratio of their periods, namely, at EMA_Period = 2 * SMMA_Period - 1. The proof details are hardly interesting for practitioners, however it is quite simple.

The script is absolutely useless for trading, it simply dispels one little illusion. The differences in the behaviors of these MAs at the early stages are caused only by different initializations of these MAs and are not considered substantial. Run the script on the current chart and see the output file. The figure with these two moving averages is provided below. The blue is EMA(159), the red is SMMA(80). I deliberately show the initial part of the moving averages calculation, as well as choose a large period to show how quickly the difference between them disappears.

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

FirstStrike FirstStrike

Displays what was reached first - Low or High for the current bar.

cloud's trade 2 cloud's trade 2

An example for my yet unpublished article. An easy template for writing custom experts.

Arbitrage Arbitrage

The multi-currency arbitrage tactics.

Roboost v1 Roboost v1

Roboost is an EA for MetaTrader 4 trading using several half-scalping and traditional trade management techniques. It shall work on different pairs and TF. Target is H1 for major pairs.