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

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

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.

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

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.

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.

CloseAll script complying FIFO rules.

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

Script to download EVZ data for Euro FX Vix indicator

Export the history of transactions on the trading account.

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

12345678