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

MQL4 Source Codes of Scripts for MetaTrader 4 - 9

icon

Scripts are small applications that perform one-time actions. For example, you can delete all objects from a chart or place a set of orders for an open position. Find here hundreds of applications that can automate small analytical or trading functions.

Scripts are free to download and run in MetaTrader 4.

Submit your code
latest | best

Risk advisor script based on balance Risk Percent.

Close all multi currency open orders and cancel pending orders according to various scenarios. Slippage for open orders is calculated for each currency. Choose only one scenario per visit, the script processes the first menu item selected.

There are some scripts in the zip archive which could be very usefull in intraday trading. With them you can respond on market changes very quickly.

This script will plot Fibonacci golden spiral on the chart.

This Script creats HTML Report To Your Current Chart. It contains a usefull information. Try it.

Get all the Account and MarketInfo details for a currency pair at a glance.

Quckly generate histoircal data from any M1 data such as alpari for all time frames up to D1. Shift Time to suit your server.

Quickly close open orders by dragging and dropping this expert on chart. Will ask for confirmation to close each order within 2 pips of the drop.

Revers Script.

Demo of functions in StringArraySuite.mqh

Simple csv-to-fxt Converter

This script evaluates in points account history loaded into client terminal.

This script takes orders from trade history and places arrows on chart for trades.

Use this script to make own nonstandard timeframes.

The script sends SELL STOP pending order with expiration data and printing number of ticket.

Modify pending order - script choosing first in list pending order, printing selected pending order data, modifying pending order and printing pending order data after modification.

Modify - script choosing first in list buy or sell order, printing selected order data, modifying order and printing order data after modification.

Delete pending order - script printing selected first in list pending order data and deleting pending order.

Close - script closing first market order if it is first in the list.

Example of file read and write operations

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

123456789