Codes

Dealing with time (2) functions for MetaTrader 5

Calculate DST for USA, EUR, AUD and RUB and the offset time of the broker automatically from the 70's until 2030 - even in the Strategy Tester of MQ

Articles

Dealing with Time (Part 2): The Functions for MetaTrader 5

Determing the broker offset and GMT automatically. Instead of asking the support of your broker, from whom you will probably receive an insufficient answer (who would be willing to explain a missing hour), we simply look ourselves how they time their prices in the weeks of the time changes — but not

Dealing with Time (Part 1): The Basics for MetaTrader 5

Functions and code snippets that simplify and clarify the handling of time, broker offset, and the changes to summer or winter time. Accurate timing may be a crucial element in trading. At the current hour, is the stock exchange in London or New York already open or not yet open, when does the

Cluster analysis (Part I): Mastering the slope of indicator lines for MetaTrader 5

Cluster analysis is one of the most important elements of artificial intelligence. In this article, I attempt applying the cluster analysis of the indicator slope to get threshold values for determining whether a market is flat or following a trend

Enhancing the StrategyTester to Optimize Indicators Solely on the Example of Flat and Trend Markets for MetaTrader 4

It is essential to detect whether a market is flat or not for many strategies. Using the well known ADX we demonstrate how we can use the Strategy Tester not only to optimize this indicator for our specific purpose, but as well we can decide whether this indicator will meet our needs and get to know

Forum

Broker selection

MetaQuotes (MQ) is NOT a broker nor does it provide any financial, investment, brokerage, trading or data feed services, nor is it involved in any commission payments in connection with any trading operations. Any money that you transferred to your account with MQ should be meant for paying market

No Trade-Copier Based on DDE for Win XP,Vista,7,8,10 and even Linux/Wine ..?

I just saw there is a DDE solution for MT5 that comes with it own DDE-Server! Now I am wondering why there are quite some attempts for trade-copiers based on pipes and sockets but not on that quite simple DDE which exists for Windows XP,Vista,7,8,10 and even Linux/Wine and probably MAC. One only

Matringale or Grid-EA Optimized by AI or NN - does this exist?

Hi, I think it would be quite interesting to see the outcome of Martingale- or Grid-EAs which were optimized by Atrificial Intellingence and or neural networks . As for Martingale- or Grid-EAsthe the crash risk is very high - I would like to know what the AI or an NN would tell us. Does anybody know

compiles but then write file error

Comments that do not relate to the " Somebody that could help me to write this code please. ", have been moved into this topic

bitchy preprocessor ..

This does not compile: #define _arWsz(A) #A+ "[] sz: " + ( string ( ArraySize (A))) // print array with array name template < typename T> int ArrayPrt(T &arr[], const string lne) { int i = ArraySize (arr); string s = _arWsz(arr); string S = #arr+ "[] sz: " + ( string ( ArraySize

invalid stops

Comments that do not relate to the " Free hosting for algorithmic trading: Inquire with your broker ", have been moved into this topic

ChatGPT

In the Freelance section there could/should be opened a new section for maybe specialized coders: Correcting ChartGPT code. After some time I guess one could get a routine and could be able to offer special prices? On the other hand, has anyone ever tried asking ChartGPT why its code has bugs and

indicators as resources fails - why, where?

I want to load my indicator as resource: #resource "\\Indicators\\MyEMA_R.ex5" ... int OnInit () { ... hMA = iCustom ( _Symbol , PERIOD_H1 , "::Indicators\\MyEMA_R.ex5" ,PER,cFLATT,REL,DEV,BRK); if (hMA == INVALID_HANDLE ) { Print ( "Handle MyEMA_R failed, err:" ,err()); return (

TesterHideIndicators()

The function TesterHideIndicators() is not listed here where all MQL5 function appear: https://www.mql5.com/en/docs/function_indices I recommend this link to others for a search (Ctrl+F) with simple keywords acc. to the idea "What is the name of the function that does ...?" On the other hand it is

no. of columns of the resulting xml of an optimization

Are theses always the first columns from the left side of the xml file resulting from the optimization: Pass Result Profit Expected Payoff Profit Factor Recovery Factor Sharpe Ratio Custom Equity DD % Trades so that the first column of the optimized parameters start at #10