Watch how to download trading robots for free

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 Freelance section

How to Write an Expert Advisor or an Indicator

MQL4 Source Codes of Technical Indicators for MetaTrader 4 - 21

The library of technical indicators for MetaTrader 4 developed in MQL4. Regardless of the market (forex, securities or commodity market), indicators help to represent quotes in an accessible form for easy perception.

This section contains thousands of applications that analyze financial markets using different algorithms. Conventionally, they can be divided into a few categories: trend indicators, oscillators, volume indicators and so on. In addition, there are sets of indicators based on algorithms by famous financiers. For example, Bill Williams' indicators and likes of it. All of them are characterized by different parameters of reliability, efficiency, lagging and others. There are more than 2000 indicators for technical analysis: trend indicators, reversal indicators, indicators of levels, predictors, scalping indicators and many others.

To post a new code, please log in or register

Camarilla Level Pivots.

Multi timeframe fractal indicator with "Extend_Line" and "Show_Validation_Candle" functions (compatible with MT4 build 600 or later).

Combine Candle sticks and Market Profile indicator.

This indicator will write the price of Pivot Point on the trading chart, ranging from Price Support 6 to Price Resistance 6. When prices change or pass one of Pivot Price level, the indicator will be given alerts.

Fibonacci Retracement Levels indicator draws Fibonacci Retracement Levels on the trading chart.

Scan for conditions in which you have an interest. Show where the condition arose historically on the current Symbol and timeframe. On a separate panel, show where the condition has currently arisen for any of your chosen symbols and timeframes.

The indicator ыimulates the full structure of the market profile system that described by "James Dalton" in his book "Mind Over Markets".

A tool to give us a better market perspective.

This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this. 5MIN charts are the best on current settings.

With this indicator you can follow the evolution of account profit.

Shown all TF candle direction on Chart.

This indicator is a modification of classical Awesome indicator. It computes the smoothed rate of change of two exponential means.

Where is the herd of Bulls and Bears within the candle? A candle does not show where most of the activity has been during the candle's timeframe. TFV does. TFV shows with 1 simple dot where the battle has taken place in the candle, where the trenches are

This indicator is a small modification of classical Fractals Indicator. You can choose the number or left/right bars to have a new top or bottom as well a shift parameter.

This is a indicator to see if you can find a trend by drawing a graph with bars counted.

Taking a Closer Look at the Workings of the ZigZag Indicator.

The indicator draws support & resistance levels based on the last MN1, W1, D1, H4 and H1 fractals.

Detects and displays the fixed value of Constant Range Bars/Candles.

Detects and displays the fixed size of Renko Bars/Candles on offline chart.

Value Chart as developed by David Stendhal. Value Chart was designed to show the valuation of the market.

Time indicator displays broker time and local computer time on the chart.

Draws label of the chart symbol and Period. Any text size, color and position on chart.

Shows the distance to assumed stop with two lines located at a predetermined distance from the current price.

Alerts on New Bar. Alert options - 1: Popup Alert, 2: Sound, 3: Email, 4: Push Notification for iOS and Android.

Triggerlines ported from NinjaTrader to be used with existing strategy and to help identify key buying and selling areas.

Draws a Weekly Open Horizontal Line and Horizontal Target Line above and below the Weekly Open Line.

EURX=34.38805726 x [(EURUSD x 0.3155) + (EURGBP x 0.3056) + (EURJPY x 0.1891) + (EURCHF x 0.1113) + (EURSEK x 0.0785)]

Indicator measures the momentary USD currency strength, using combined data from the following four USD pairs: EURUSD, GBPUSD, AUDUSD and USDJPY.

TRYBASK= 1 x [(USDTRY x 0.50) + (EURTRY x 0.50)]

Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.

Shows the Max and Min levels of the previos day and today's open price. Change the "up" and "dn" parameters to see the day candle.

The indicator shows the current market conditions.

The indicator shows the remaining candle time.

This scripts uploads data of open and pending trades to a webserver and with additional webscripting saves it to a database for further processing. May be a good basic for providing signals in your site.

this sideway or trend...confuse?? use this indicator

Specific support and resistance indicator is based on indicators MW_ZigZag.ex4 and High_Low v2.ex4.

You confuse where the next target? Use this indicator - it will show you where the next target.

Draws different color candles above and below MA lines. Supported MA methods: SMA, EMA, SMMA, WMA & TMA.

This Indicator draws different color candles above and below a Kijun Sen line.

Draws Tenkan and Kijun with Color Fill between 1. Price and Tenkan, 2. Price and Kijun, 3. Tenkan and Kijun and 4. No Fill.