Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Accedi al CodeBase dal tuo terminale MetaTrader 5
Non hai trovato il codice che fa per te? Ordinane uno dalla sezione Freelance
Come scrivere un Expert Advisor o un indicatore

I migliori codici sorgente MQL4 e MQL5 in base ai giudizi degli utenti - 3

Invia il tuo codice

With these classes you can create and test your signals runtime.

a Versatile automated trading tool for the MetaTrader 4 platform. This EA is designed to assist traders in managing their positions effectively by offering features such as setting a breakeven point, trailing stop, stop loss, and take profit levels. It works with various input parameters, allowing you to customize its behavior to fit your trading strategy.

This time, we're providing a sample that enters based on the Golden Cross and Dead Cross of the moving averages. If you want to see a sample where a long entry is made when the closing price of the candlestick crosses above the moving average, please refer to this article.

The purpose of this indicator is to demonstrate newbie friendly way a structure of a multi time frame indicator based on recursion.

The Breakeven Point, or Titik Impas, denotes the price level at which a trade's profit becomes zero. By setting a position to Titik Impas Breakeven, the stop-loss is aligned with the position's opening price. This strategy proves valuable when you aim to allow profits to accumulate while ensuring that the trade remains secure and does not revert to negative territory.

Break on Code Error ! This script is a general example of using error brake in any strategy.

Bars Pips for Chart Symbol and Period selected

Reverses all open trades after Closure for all symbols .

This MQL4 EA is designed to close positions for a basket of currency pairs based on certain profit and loss thresholds.

This is a simple code to mimic onTradeTransaction Event handler defined in MQL5

This script will close all active trades sequentially. following the order in which they were opened

This script will close all active trades and delete pending orders based on the order type passed on the input.

This script will scan all the open trades and then will close the biggest winning/losing trade

Displays a Histogram of Momentum, ATR, CCI or RSI indicators relative to a specified level.

The DJ Lines belongs to the Pivot group. All similar indicators operate on the principle - «Based on the values of the previous day (days) it is possible to calculate a point, passing which would mean a change in the trend».

Power of CAD indicator shows actual strength of currency CAD calculated of 7 pairs that contain CAD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD CAD, AUD CAD, CAD JPY, EUR CAD, GBP CAD, NZD CAD, CAD CHF.

Th Expert will set the TP based on the SL manually set using the input multiplier. Using this you can set 2,3,4 etc times the SL set.

MACD indicator with possibility to establish mode of moving average and applied price.

Shows you profit history in real time.

The history_data_analysis_v3 script checks the history for missing bars, determines the size of the holes, gaps and makes a list of them.

Indicator StepMA Stoch KV1.

Ещё одна разновидность Индикатора WcciPaterns, только в качестве осциллятора.

The indicator draws the channel of regression by High and Low prices.

Steve Nison 'three line break' strategy on chart.

Scripts to Close Orders under various conditions

Script closes all opened and pending positions.

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.

This indicator is based on the Money Management approach used by VP from nononsenseforex.com It uses ATR to calculate Stop Loss, Take Profit and Volume you should enter into a trade based on the percentage of your Equity you want to risk.

Most EAs tend to close orders in take profit based on the distance in pips from the purchase price. However, this MQL4 code is based mainly on the current profit.

The ADXm indicator, unlike the traditional one, allows to see the positive and negative waves of the trend. The method for working with this indicator is the same as with the traditional one.

The script downloads history for all timeframes and symbols in the Market Watch.

Shown all TF candle direction on Chart.

This Indicator shows the potential breakout/stop levels.

Changing the size of the chart window is important in my EA, but it may serve as inspiration for others.

Function library and Experts for trailing (11 types). Simple usage of complex algorithms.

Spearman's Rank Correlation è un metodo non parametrico utilizzato per effettuare studi statistici delle relazioni tra fenomeni.è un metodo non parametrico utilizzato per effettuare studi statistici delle relazioni tra fenomeni. In questo caso verrà rilevato il grado di parallelismo effettivo tra due sequenze numeriche.

Indicator RBCI

Updating of version VIII.

The indicator Acceleration&Speed shows speed and acceleration of a price change.

Functions for handling two dimensional string arrays. Usefull for prototyping.

12345678910...102