Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
MetaTrader 5 terminalinizden Kod Tabanına erişin
Doğru kodu bulamadınız mı? Freelance bölümünden sipariş edin
Bir Uzman Danışman veya gösterge nasıl yazılır?

MetaTrader 5 için MQL5 Uzman Danışman kaynak kodları - 5

icon

Uzman Danışmanlar, fiyat grafiklerini analiz eder ve dayandığı kuralları takip ederek otomatik olarak işlem yapar. Buradan çeşitli sorunları çözen MQL5 kaynak kodlarını bulabilirsiniz. Hem hareketli ortalama çaprazlamasına dayalı basit Uzman Danışmanları hem de sofistike sinyal oluşturma algoritmalarına ve alım-satım hatalarına karşı korumaya sahip karmaşık Uzman Danışmanları seçebilirsiniz.

Sunulan Uzman Danışmanları MetaTrader 5'te indirebilir ve başlatabilirsiniz. Alım-satım robotlarını kullanmadan önce Strateji Sınayıcıda test ve optimize etmeniz önerilir. Uzman Danışman kütüphanesine doğrudan MetaTrader 5 platformundan ve MetaEditor geliştirme ortamından da erişebilirsiniz.

Kod ekle

CDialog sınıfına dayalı panel. Mevcut sembol üzerinde çalışın. Bir grup pozisyon üzerinde silme, Kar Al ayarı, Başabaş ayarı

İMA göstergesi ile ticaret sistemi (Hareketli Ortalama, MA). MA Trendinin Gelişimi.

Algoritma döngüsü: açık pozisyon olmadığında, iki zıt pozisyon açın. Her iki pozisyonun da kapanmasını bekleyin.

Bir Uzman Danışmanın OnTick () olay işleyicisinde yeni bir çubuğun veya mumun başlangıcını algılama.

"Algoritmik Ticaret için MQL5’te Sinir Ağları" kitabı, hem yapay zeka ve sinir ağlarının teorik temellerini hem de MQL5 programlama dilini kullanarak finansal ticarette uygulanmalarının pratik yönlerini kapsayan kapsamlı bir kılavuzdur.

Kitabın yedinci ve son bölümü, MetaTrader 5 için program geliştirirken faydalı olacak MQL5 API'sinin gelişmiş yeteneklerini tartışmaktadır. Bunlar arasında özel finansal semboller, yerleşik ekonomik takvim olayları ve ağ, veri tabanları ve kriptografi gibi genel amaçlı teknolojiler bulunmaktadır.

“Yatırımcılar için MQL5 Programlama” kitabının 6. bölümünde, MQL5 dilinin önemli bir bileşeni olan ticaret otomasyonu hakkında konuşacağız. Finansal enstrüman özellikleri ve işlem hesabı ayarları gibi temel unsurların açıklamasıyla başlayacağız. Bunlar, düzgün çalışan Uzman Danışmanlar oluşturmak için ön koşullardır.

Kitabın 5. bölümünde, finansal veri analizi ve işleme, grafik görselleştirme, otomasyon ve kullanıcı etkileşimleri dahil olmak üzere algoritmik ticaretle ilişkili API'leri daha derinlemesine inceleyeceğiz.

Kitabın dördüncü bölümünde, yerleşik fonksiyonlarda (MQL5 API) ustalaşmaya odaklanacağız ve kademeli olarak özelleşmiş alt sistemlere gireceğiz. Herhangi bir MQL5 programı çok sayıda teknoloji ve işlevsellikten yararlanabilir. Bu nedenle, çoğu programda kullanılabilecek en basit ve kullanışlı fonksiyonlarla başlamak mantıklıdır.

“MQL5'te nesne yönelimli programlama” başlıklı 3. bölüm, MQL5 dilinde nesne yönelimli programlama (OOP) dünyasına bir giriş sunar. Yazılım geliştirme genellikle birden fazla unsurun yönetimiyle ilgili karmaşıklığa sahiptir ve programlama kolaylığını, üretkenliği ve kaliteyi artırmak için ileri teknoloji gerektirir.

“MQL5 programlamanın temelleri” başlıklı 2. bölüm, bu programlama dilinin temel kavramlarına bir giriş niteliğindedir. Kitabın bu bölümü veri türleri, tanımlayıcılar, değişkenler, ifadeler ve operatörlere ayrılmıştır. Program mantığını oluşturmak için farklı talimatları nasıl kombine edeceğinizi öğreneceksiniz.

Kitabın ilk bölümünde MQL5 dili ve geliştirme ortamı tanıtılmaktadır. MQL5 dilinde MQL4'e (MetaTrader 4 dili) kıyasla sunulan yeni özelliklerden biri, onu C++'a benzer kılan nesne yönelimli programlama (Object-Oriented Programming, OOP) desteğidir.

Bu Uzman Danışman ticaret yapmaz. Standart canvas kütüphanesi kullanılarak uygulanan basit bir panel, fare ile rakamlar çizmenize olanak tanır. Eğitilmiş mnist.onnx modeli rakamları tanımak için kullanılır.

This is an mql5 Expert Advisor trading the breakouts and using Martin Gale risk management.

This function allows you to retrieve and return the filling policy of a symbol in MetaTrader 5. This is useful for making trading decisions based on the filling policy of a specific financial instrument.

"This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."

The EA trades using the Rectangle, EMA and SMA indicators.

On contrast with Trailing Stop which a stop loss trails price until the price hits the stop loss and the position gets closed in profit, introducing Trailing Take Profit which take profit trails price when a position is in loss and ultimately the position gets closed with loss.

The AK-47 Scalper EA is fully automated. It employs a strategy of continuously entering Sell Stop orders and will modify them when the price moves against the pending orders.

Explore the implementation of equity-based position closure in your trading bot, where positions are closed automatically when the equity reaches a certain percentage threshold.

To use martingale money management when a position is in loss and price hits any of specific distances.

This code snippet implements a dynamic risk management strategy for existing trades. It focuses on closing trades based on profit or loss thresholds and employs a trailing stop loss to lock in profits as the trade moves favorably. The strategy helps manage risk and enhance profitability in a streamlined manner.

This MT5 Expert Advisor opens multiple buy and sell orders based on user input, featuring a simple interface with Buy and Sell buttons. The EA calculates lot size, checks the spread against slippage, and places orders accordingly. It is essential to test this EA in a demo account before using it in live trading.

This code initializes the necessary objects and input parameters, and defines a CheckTrades() function that calculates the risk and profit amounts based on the account balance and user input. It then iterates through open orders and checks if the current profit or loss meets the user-defined thresholds, and closes the position if necessary

This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

Close trades when the percentage profit or risk of the account is reached

to display trade history files(.csv) on charts.

MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Version 1.1 has automatic trail error fixed.

Returns the price for the most recent fractal high

Official example involve complex wrapper classes, Here is a simple one

This expert advisor is based on the alligator indicator and bollinger bands indicator. Currency pair: GBPAUD Time frame: 15min

Reversal strategy using Moving Average, Standard Deviation and RSI

US: This is a very simple code regarding an information panel. It doesn't use external files or anything like that! simply copy and paste it into your code the way the code was written. The dashboard displays; Active asset price Your position(Bought or sold) Maximum and minimum price of the asset Username open profit Balance PT-Br:Esse é um codigo bem simples a respeito de um painel de informações. Não utiliza arquivos externos ou algo do tipo! simplesmente, copie e cole no seu codigo da forma que o codigo foi escrito. O painel exibe; Ativo Preço do ativos Sua posição(Comprada ou vendida) Preço max e minimo do ativo Nome do usuario Lucro em aberto Saldo

Rsi close/ mtf use

MTF divergence settings

The DD_Relative function calculates the drawdown (relative loss) of the current trading account in percentage. To do this, it uses the Current_LossOrProfit() function to get the current profit or loss for all open positions and divides it by the current account balance. The result is rounded to two decimal places and displayed in the chart comment. The Current_LossOrProfit() function loops through all open positions in the account and adds the commission, swap, and current profit or loss for each position. The result is rounded to two decimal places and returned as the current profit or loss of all open positions.

The function takes two arrays of integers as parameters: "allowedPeriods" and "periodsToCheck". "allowedPeriods" is an array containing all the time periods allowed by the system, while "periodsToCheck" is an array containing the time periods used by the user in the indicator. The function iterates through the elements of the "periodsToCheck" array and checks if each of them is present in the "allowedPeriods" array. If it finds any time period that is not allowed, the function returns "false". If all time periods are allowed, the function returns "true". In short, this function is used to make sure that the time periods used in an indicator are valid and allowed by the system.

a Template for Multicurrency system for Metatrader 5

Strategy that uses the CCI indicator 0-line cross to spot trades and the MACD indicator to confirm them.

Forex Trade Manager MT5 simplifies managing open orders in MetaTrader 5.

123456789101112...38