MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Buy Expert Advisors in MetaTrader Market and Let Them Trade For You
To post a new code, please log in or register

Find us on Facebook!
Join our fan page

Access the CodeBase from your MetaTrader 5 terminal

Couldn't find the right code? Order it in the Jobs section

MQL4 Source Code Library for the MetaTrader 4 - Scripts

Do you know that all the programs in the MQL4 library are available directly in the MetaEditor? Now you do not need to worry about which folder to use to download the code of an Expert Advisor, indicator or script - the editor does it for you.

Open its Toolbox (Ctr+T), go to the Code Base tab and select "Download" in the right-click menu - that's all you need to do to get a program source code!

previous12345next
latest|best

The script recognizes and shows peaks and valleys of certain period.

Someone needed a quick way to open the Alert window again, after they had closed it. Place this script in your \experts\scripts folder.

Someone asked me to provide them a way to close all their orders. This script will serve that purpose. Place this script in your \experts\scripts folder. When you want to close all the orders just drop this script on a chart.

popup tip: any bar's local time, with help of a verticle line.

Take screenshot in the original chart size with labels (instrument, timeframe)

Check out any MQL5 closed positions on a chart.

A collection of predefined Scripts immediately available for use without having to key-in. Step-by-step instruction how to make your own Scripts from Scripts Collection.

Weekly and Monthly Pivot shows resistance and support lines of pivots using classic formula

English version of AllAmplitude.mq4 The original script was posted here: http://codebase.mql4.com/3852 . The output file will be stored in the MetaTrader 4\experts\files\ directory. The file name contains following information: "Symbol_Period---da

With 3 settable parameters (currency pair, timeframe, and template) opens a new chart on your screen at the initalization period of the script.

This scrip will close all your open positions in your MT4. You just need to drag it to the chart.

This script can close all your pending orders in your MT4, or you can select different pending orders.

This script can close all your open positions in your MetaTrader 4, or you can select different similar positions.

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier.

Drag n' drop wave counts.

Many developers face the same problem - how to get to the trading terminal sandbox without using unsafe DLLs. One of the easiest and safest method is to use standard Named Pipes that work as normal file operations.

Execute Script only one time and it will delete all pending orders i.e Limits and Stops by this script at once. No Need to run script for each order separately.

A simple script to quickly place letter/numbers on the chart for wave labeling (A, B, C or 1, 2, 3, etc)

Scripts to modify stop loss in buy or sell opened orders on current chart.

Calculates the profit from oppened trades if the Price reaches the dropped Price

Customizable Fibonacci Tool scripts to make these tools more informative on chart as per your needs.

Automatically does volume calculation based on percentage of desired account balance and enters instant or pending trades. Optional take profit is automatically at 1:1 with respect to SL.

A set of scripts to install and work with Gann fan. Custom fan has correct angles and is scale insensitive.

Scripts of pending, market orders, placing and removing stops.

The script (in the absence of communication) rescans the server, will make paging history, emulates the ticks for the indicators and experts.

Review the results of the work of your strategy (in history) by the hour.

This is a script to view a myfxbook's CSV statements file in MT4.

This is a "conceptual" script that uses the WinINet functions to load a HTTP page directly from mql4, without a C++ dll

Rewrites JForex csv data without the weekend candles and the seconds.

WatchDog sends an e-mail when things go wrong, an order has opened or closed, on requotes, on log errors, on server shut down... Just drag the script in a chart window.

Exports your history into a .csv file which can be read by excel or similar. You can sort your trades and see easily how much a certain EA won or lost.

These scripts will record and file a picture of the chart at the time of each trade executed with them.

This script is useful when you drop lines on chart and want to see the distance to current market price. You can drag line and see the distance in pips.

Just a simple script , that reads the HTML file a report , or detailed report , and draws a transaction from it on the chart

This script reads your unread GMail messages.

The script prints the week day and time.

Reads all available instruments and their characteristics and generates an HTML report. Positive Swaps are highlighted.

This script uses the Windows API to modify the "From:" and "To:" fields within the strategy tester according to user input. For this script the strategy tester should already be open. Tested on Windows 7 64 bit. If you are using another version of win

Drop the script on your chart to send a screenshot to twitpic with or without a message

This script will set your stoploss at the fractal level of your choosing. Money management built in helping take some of the guess work out of your trading.

previous12345