Codes

Envelopes beginner tutorial By William210 for MetaTrader 5

Envelopes beginner tutorial to learn how to code in MQL5

Donchian Channel for beginners by William210 for MetaTrader 5

Donchian Channel for traders or young developers by William210

Keltner Channel code for beginners by William210 for MetaTrader 5

Keltner Channel for traders or young developers by William210

ATR - Average True Range - code for beginners by William210 for MetaTrader 5

ATR - Average True Range - beginner tutorial to learn how to code in MQL5

AO - Awesome Oscillator - without iAO() code for beginners by William210 for MetaTrader 5

AO - Awesome Oscillator - without iAO() beginner tutorial to learn how to code in MQL5

AMA - Adaptive Moving Average - code for beginners by William210 for MetaTrader 5

AMA - Adaptive Moving Average - beginner tutorial to learn how to code in MQL5

Alligator code for beginners by William210 for MetaTrader 5

Alligator beginner tutorial to learn how to code in MQL5

Rsi without Irsi() code for beginners by William210 for MetaTrader 5

Rsi without Irsi() beginner tutorial to learn how to code in MQL5

Stochastic code for beginners by William210 for MetaTrader 5

Stochastic beginner tutorial to learn how to code in MQL5

Momentum code for beginners by William210 for MetaTrader 5

Momentum beginner tutorial to learn how to code in MQL5

Forum

How to Configure the Tester

Good morning I have a problem with testing it for one of my codes and I cannot test it in the debugger because it generates an out of range , but not on the terminal where it works Here is the code gf_TfNumberbars = Bars ( gf_Symbol, gf_TFDef); g_message += StringFormat ( "Number of bars retrieved =

Different timeframe values in execution and debug

Good morning I have a problem that doesn't help me write my code. Here is a test code which reproduces the problem on my side it will just display in Comment() the choice of user input ENUM_TIMEFRAMES g_TimeFrameInp = PERIOD_D1 ; and display the current outstanding value selected on the

Ibarshift Request for explanation.

Good morning I found a workaround, but would like some explanation on how ibarshift() works My code is in oncalculate(). Time[i] is therefore just the constant and "i" an iteration of For The goal was to recover X bars on a higher timeframe i_UpIndEnd = iBarShift ( gf_symbol, gf_TFDef

Asynchronous oncalculate

Good morning In the doc, it is not specifically said that oncalculate is asynchronous. It is said that the event is launched at each tick Am I correct in thinking that the instructions in oncalculate are synchronous and each tick launches a new instance of oncalculate? Instances of Oncalculate

Terminal-Server Synchronization

Good morning I looked at a lot of code on this subject Codes in codebase, in this forum, and in the official doc https://www.mql5.com/en/docs/series/timeseries_access In the comments of this code we can read for the checkloadhistory() function //--- force timeseries build with copytime() //--- ask

Define g_debug or input g_debug?

Good morning Happy holidays to everyone. I wonder. I like codes that have error handling to easily track any issues, to track whether step-by-step validations are valid. Example if ( ! SetIndexBuffer ( g_indexiMA, g_BufferMA, INDICATOR_DATA )) { if ( g_Debug) PrintFormat ("Error %d: Failed to

Mql5 community account

Good morning Still fine ? How do I know if I already have an account before creating one please? Where can I find this information on my profile

What are these 2 letters at the beginning of lines?

Good morning How are you ? I'm looking at the terminal log to debug some of my code for data synchronization between the server and the terminal. Here it is IM 0 09 : 57 : 10.990 (GOLD,M1) History check for GOLD for timeframe M1 FF 0 09 : 57 : 10.990 (GOLD,M1)

What is codebase copyRight?

Good morning. What does code copyright protect in CodeBase? The code or the code and its idea? I saw some code which suggests a good idea for associating indicators but I find it very poorly written. I would like to rewrite the code and put it in marketplace. It's possible or I'm violating CopyRight

What should I know before putting a code in MarketPlace?

Good morning There you go, I think that now in a short time, I should put my first code in the MarketPlace. Of course, I don't want to violate any site rules. I'm sure you certainly have some advice to give me. The right things to do. Dead ends to avoid or mistakes not to make. For example, from