Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
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 - 30

Invia il tuo codice

The Expert Advisor has been created using the MQL5 Wizard, on the basis of MACD (Moving Average Convergence/Divergence) signals and the Parabolic SAR trend indicator.

A Keltner Channel drawn relative to the average value of the MFI oscillator as a sequence of candlesticks

The MFI_price indicator with the timeframe selection option available in the input parameters.

The NRTR_ZigZag indicator with the timeframe selection option available in the input parameters.

An example of determining the moment when a pending order has triggered.

Double stochastic - RSI floating levels.

The indicator colors candlesticks whose size multiplied by volume exceeds a preset value.

The Expert Advisor is based on the indicator with the same name. Lot is calculated based on the risk value as a percentage of free margin.

The indicator draws colored candlesticks of a larger timeframe as color filled rectangles using DRAW_FILLING buffers. Rectangles are color filled in accordance with the colors of the StreamСCandles indicator candlesticks, if there are any.

A trend indicator based on the intersections of Parabolic Sar and a moving average.

It is the MQL5 version of ZeroLag MACD.

The Exp_TotalPowerIndicatorX Expert Advisor is based on the signals generated by the TotalPowerIndicatorX oscillator. It also provides the possibility to set a strict trading time interval

A channel based on peaks and troughs of the Zigzag2_R_Color indicator.

A trading system based on the AFStar indicator signals.

The Four_MA_Strength indicator with the timeframe selection option available in input parameters.

Closing positions: all, only profitable or only losing positions.

A trading system based on the 'EMAAngle' and 'Laguerre RSI with Laguerre filter' indicators.

A variation of Deviation Stops (DevStops) indicator. Some are wrongly calling this version a Kase DevStops (which it is not - Kase DevStops indicator is calculated in a quite different way), but this version has its good points too and can be used in regular support/resistance mode. Additionally each DevStop value is colored according to the slope (trend) of the line - when all are aligned in the same direction, it can be treated as a confirmed trend change.

The Expert Advisor uses three iMA (Moving Average, MA) indicators and one iMACD (Moving Average Convergence/Divergence, MACD)

The indicator displays on the chart the previous trading day's channel.

An indicator of levels

Expert Advisor Exp_BlauTVI_Tm based on the signals of trend-following indicator BlauTVI

The indicator highlights caudate candlesticks of the "hammer" or "inverted hammer" type, the body of such candlestick being in the upper or lower half of the candlestick

A trading system based on the tick volume of bars.

Two independent trading systems using indicators BykovTrend_V2 and ColorX2MA within one EA.

Buff Dormeier's moving average weighted by volume.

Lentz Volatility indicator

Bollinger bands squeeze

Heiken ashi smoothed - zone trade

Indicator Colored Middle Point of Candles

RSI adaptive double smoothed EMA

Weighted deviation

Script gets information about input and output tensors of onnx-model, their types and shapes

To assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Sell is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading

wd.Multi_ClockPrice lite!" è la versione lite di "wd.Multi_ClockPrice", che fornisce una rappresentazione visiva dell'ora del server e dei prezzi bid sul grafico. Si sincronizza con l'orologio del PC ogni secondo, consentendo aggiornamenti continui anche quando MT5 è offline. Vengono visualizzati i prezzi bid in tempo reale, soddisfacendo in modo efficiente la necessità di informazioni sui prezzi. Posiziona le etichette informative nella sottofinestra specificata, regolando le posizioni in base alle necessità.

Questo script aiuta i trader a comprendere la distribuzione e l'intervallo delle candele in un periodo specifico, il che può essere utile per prendere decisioni di trading, ad esempio per determinare quali valori storici utilizzare per il Take Profit o lo Stop Loss.

La classe CDebugLogger è un'utility di log flessibile e completa, progettata per l'uso in ambienti MQL4/5. Consente agli sviluppatori di registrare i messaggi a vari livelli di importanza (INFO, WARNING, ERROR, DEBUG) con la possibilità di includere timestamp, firme di funzioni, nomi di file e numeri di riga nelle voci di log. La classe supporta la registrazione sia nella console che nei file, con la possibilità di salvare i log in una cartella comune e in formato CSV. Inoltre, offre la funzionalità di silenziare i log in base a parole chiave specifiche, garantendo che le informazioni sensibili non vengano registrate. Questa classe è ideale per gli sviluppatori che desiderano implementare solidi meccanismi di registrazione nelle loro applicazioni MQL4/5, con caratteristiche personalizzabili che soddisfano un'ampia gamma di esigenze di debug e monitoraggio.

Il Commodity Channel Index (CCI) misura la deviazione del prezzo delle commodities dal loro prezzo statistico medio.

Strategia di trading CCI di Woodie. La descrizione è allegata.

Questo indicatore traccia i punti di snodo, le resistenze e i supporti.

1...232425262728293031323334353637...197