Assista a como baixar robôs de negociação gratuitos
Encontre-nos em Twitter!
Participe de nossa página de fãs
Acesse o CodeBase em seu terminal MetaTrader 5
Não encontrou o código mais adequado? Encomende-o na seção Freelance
Como escrever um Expert Advisor ou um indicador

Biblioteca de códigos fonte MQL4 para MetaTrader MQL4 - 8

icon

A maior biblioteca gratuita de Expert Advisors (EAs), indicadores técnicos e scripts em código-fonte. Os aplicativos apresentados permitem que você negocie em modo automático e analise mais detalhadamente a dinâmica das cotações. Utilizando a biblioteca de códigos, você saberá mais sobre a dinâmica e o comportamento dos mercados financeiros.

Estes aplicativos podem ser livremente baixados, testados e executados no MetaTrader 4. O acesso a eles também pode ser obtido da plataforma MetaTrader 4 e do ambiente de desenvolvimento MetaEditor.

Adicionar código

Plot entry and exit as line objects from MQL5 signal CSV onto chart

Some call it as MCDx Smart Money Indicator. It's just modification from RSI indicator.

3LS

Converted 3 Line Strike by TheTrdFloor from TradingView to MQL4

It is a simple EA to alert profit or loss as per configuration. Just choose a higher value and a lower one. The alert will occur when the profit/loss is between these values. Ex: Maior_q_valor1 = 9.00 E_Menor_q_valor2 = 10.01 The result will be: 9.01 or 9.02....10.00 The EA does not open orders, it is just an add-on to be used with another trader. This EA makes a sum (Hedger) of only 20 buy orders and 20 sell orders, totaling 40 orders. The sum will be positive if one side covers the other and the alert will be sounded when it reaches the programmed amount. You can choose between Alert_Push or only Play Sound. It is necessary to have a Wav audio file in the root folder named "som.wav" .

Checking the Cross of First Two lines of the Ichimoku Indicator

Histogram of momentum

An Efficient EA to notify breakouts

Converted ATR Bands by AlexanderTeaH from TradingView to MQL4

Converted Trend Direction Force Index v2 - TDFI [wm] from TradingView to MQL4

Converted SSL Channel by MissTricky from TradingView to MQL4

Only successfully tested on INSTAFOREX broker, InstaForex-Europe.com server 5 digits, pair EURGBP daily, leverage 1:1000, with free swap account.

This Script is the example of using function LineNotify that use to send message to LINE APP via Line Notify service As the function LineNotify use webrequest to send HTTP request so it can be used in EA or Script program only , can't use in Indicator program

An exponential moving average of the true range and the offset of its average deviation

Indicator that shows higher timeframe candle on current timeframe.

Converted LazyBear Squeeze Momentum Indicator from TradingView to MQL4

This indicator gives the Speed and Acceleration of the price for a given period. In order to make a smooth graph, can be used a procedure using the Hull Moving Average method

a procedure that calculate most stats in one call: R-Squared and Linear Regression

Arrow Up and Down on each bar and other informations.

ScalpX is an indicator that uses Kalman filters to identify buy and sell opportunities whenever is indicated by the graph.

This indicator shows market highs and lows for any timeframe with period separators. You can see daily/weekly/monthly highs/lows on lower timeframes like H1/M30/M40. This is good for trading breakouts.

Kalman Speed oscillator... Just an experiment

a bit more EA frliendly version

Adaptive grid expert for mt4

CCI of Moving Average with Dynamic Signal Lines

A simple indicator plotting a channel with a constant range

Colors bars when their volume has exceeded more than a standard deviation, or a multiple of it. Volume is commonly used as confirmation for a break of a significant level.

Trade classes CTrade, CPositionInfo, COrderInfo, CSymbolInfo from MT5 rewritten for MT4

SmoothStep (generalized) - metatrader 4 version

SmoothStep (metatrader 4 version)

Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor.

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

Just simple codes to Disable/Enable Auto/Algo-Trading in both MT5 and MT4. Of course, DLLs must be allowed, This cannot be done without DLLs

Export the history of transactions on the MT4 trading account.

ADXm experiment (metatrader 4 versions)

Adviser-Utility for copying transactions from one MT5 account or MT4 account to another MT4 account.

Adds the ability to automatically export the transaction history after running the Expert in the strategy Tester.

Chaikin Oscillator with smoothing option.

Simple Slope Oscillator Normalized with symbol overlay for MT4

Recursive Moving Average calls itself a number of times in order to reach the appropriate smoothing. For instance DEMA,TEMA and Rainbow indicators are recursive exponential moving averages. The goal is to remove the loop limit while still running fast. In addition a trigger line provides the trading signal.

Not sure if anyone need this. Just showing the angle of the MA of current and adjacent candle.

123456789101112131415...105