Watch how to download trading robots for free
Find us on Facebook!
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
Experts

MACD Sample - expert for MetaTrader 4

MetaQuotes
MetaQuotes
MetaQuotes Ltd is the software development company. One of our products is the MetaTrader 5 trading platform intended for trading in different financial markets.
Use the links below to download the latest builds:
| English Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
Views:
67418
Rating:
(39)
Published:
Updated:
MACD_Sample.mq4 (8.35 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance


Classical MACD Sample


Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/7150

TesterSafeLots - risk lot size that stays correct in the MT4 Strategy Tester TesterSafeLots - risk lot size that stays correct in the MT4 Strategy Tester

Risk-based lot size for MQL4 that does not depend on MODE_TICKVALUE in the Strategy Tester, so backtests of USDJPY, USDCHF or USDCAD on a USD account risk what the input says. Includes a test EA that measures the error.

AesHmac: AES-256 encryption with tamper check and password keys for MQL4 AesHmac: AES-256 encryption with tamper check and password keys for MQL4

One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked against the official NIST and RFC test vectors.

Three Colors Three Colors

Example: Moving Average indicator filling by different colors

Rotating text Rotating text

Easy example working with object: object creation, modification properties, redraw chart.