Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


ErrorDesc - library for MetaTrader 5

Based on | English Русский 中文 Español Deutsch 日本語 Português

Published by:
Audrius Stravinskas
votes: 14
2018.03.28 12:25
errordesc.mqh (84.01 KB)view
LibraryTest.mq5 (16.51 KB)view

The code is based on the ErrorDescription library.

Library contains ErrorDescription() function with two input parameters error_code and optional parameter txt_prefix.

string ErrorDescription(int error_code,string txt_prefix="")

GetLastError() return codes can be found here

OrderSend() function's retcode field values can be found in

Both tables are included in ErrorDescription() function.

LibraryTest.mq5 script can be used to check description of a known error code. Just execute script with an input error_value set to error code and it will print description. If error_value is set to -1 script will print all available error codes.

Schaff Trend Cycle Schaff Trend Cycle

The Schaff Trend Cycle (STC) indicator detects up and down trends long before the MACD. It does this by using the same Exponential Moving Averages (EMAs), but adds a cycle component to factor currency cycle trends. Since currency cycle trends move based on a certain amount of days, this is factored into the equation of the STC indicator to give more accuracy and reliability than the MACD.

MACD of average MACD of average

This is a MACD that can use average for input price instead of using "pure" price. That can help in filtering some false signals, but the main purpose of this code is to show how simple some things can be done using MetaTrader 5. In addition to all usual options when it comes to this type of indicators, option to have color changes based on MACD slope change or MACD crossing signal line.

Renko 2.0 Offline Renko 2.0 Offline

This non-trading utility generates custom symbol information on 1M chart. Configure using Tick Size, Pip Size, Points or R. Now with Asymetric Reversals!

Stochastic RSI Stochastic RSI

This version of Stochastic RSI uses a sort of a signal line to make it even more sensitive.