Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

Top scripts for MetaTrader 5 based on user ratings - 8

Submit your code

The script is developed for selling with fixed Stop Loss and Take Profit values in points from the current price.

For day traders. 2 highly important indicators to turn strategies into extreme winning ones. The Win/Loss ratio and the Reward/Risk ratio will allow us to identify the best times and days our strategy works the best

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

This script reads all opened position and calculates their exposure for each currency.

Simple code for Candle Cross above or below Conditions..

It is taken into account that there are 30 days in a month, 365 days in a year The script demonstrates the counter of time until the beginning of the new year

A simple include file to print out the values and names of variables.

A way of sub-classing more functional objects, dynamically.

Have you ever wondered how to safely return automatic objects with functions without memory leaks?

Calculates the average range of prices (in points) for intraday periods.

Trade with no need to calculate lot size! This script calculates the proper lot size and opens the position(s) for you.

I find the lot calculation tedious so I just use this script and tell it the dollar amount to use. It then does the rest. This works for any currency.

This unit test frameworks eases the development of unit tests for more complex expert advisor programs. The MQL5 developer can test single components. The test framework starts the strategy tester so that there is test data available if required. I am using the framework to do test driven development (TDD) on my MQL5 programs.

This script draws Fibonacci Expansion OBJ_EXPANSION with options to add your own custom values

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

This is a simple script that Closes all Orders and Positions available

Display the actual stored value of a floating-point number (float or double type), with very high precision up to 55 decimal digits. This helps to debug exact value of floating-point numbers for other MQL5 programs.

The script is best use to clean up all drawings ( Delete All Object, Comment, horizontal line, vertical line, arrows etc) on current chart. Please feel free to modify based on your needs.

This script opens order with maximal amount of volume available.

Print info about a closed position by its position ticket or identifier.

Building good trading habits by seeing things in terms of percentage not in terms of money.

A simple and effective Expert Advisor based on Stochastic Oscillator reversal signals on the H1 timeframe. Buy signals are triggered when %K crosses above %D below the 20 level. Sell signals are triggered when %K crosses below %D above the 80 level. Risk is calculated based on the account balance, with the lot size set to 0.1 (adjustable as needed). Take Profit (TP) is set to 300 points for all positions. Stop Loss (SL) is dynamically calculated based on the opposite crossover signal. The position is closed when a crossover in the opposite direction occurs, as well as when TP or SL is reached

Risk Reward Tool calculates Risk reward like 1:2 1:3 1:4 and 1:5

short-term forex strategy for beginners.

This script draws Fibonacci Retracement OBJ_FIBO with options to add your own custom values

This script draws Fibonacci Fan OBJ_FIBOFAN with options to add your own custom values

Aquarium Canvas Background for Chart This script adds cool live canvas background on the chart like aquarium

closing partially script and Stop loss to Break Even point

This script opens all market watch symbols with the default template using the selected period. Save prefferred template as default.tpl to have all charts open with same template of your choice. Happy Trading.

Rates Version of a script https://www.mql5.com/en/code/30791

Building good trading habits by seeing things in terms of percentage not in terms of money.

This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL5 Trade Signals functionality.

3 fibo levels.

SymbolInfo example script lacks margin and leverage data wich are nowhere to be found explicitely in Metatrader, the trader must search thoroughly into the broker site in order to find them. The aim of this script is to provide a remedy to it from a standard tool.

he script estimates the bar's High-Low-Close, based on the stream similarity.

The script (not an Expert Advisor) sets and moves the Stop Loss for all positions on the current symbol to the specified price

CloseAll script complying FIFO rules.

Export the history of transactions on the trading account.

Service Script for aggregating Economic Calendar data to a .txt file

12345678