Codes

Log4mql(mini) MT5 for MetaTrader 5

A light header-only version of Log4mql that provides standardized logging

Log4mql(mini) MT4 for MetaTrader 4

A light header-only version of Log4mql that provides standardized logging

Log4mql (MT5) for MetaTrader 5

A logging library similar to Log4j but for MQL

Log4mql (MT4) for MetaTrader 4

A logging library similar to Log4j but for MQL

iRSIOnArray for MT5 for MetaTrader 5

Header with iRSIOnArray function for use with MQL 4 or 5 code

Forum

iRSIOnArray Bug

There seems to be a minor bug in iRSIOnArray for that I couldn't find a reason why it would not work. See this code: double buffer[ 3 ] = { 100 , 101 , 102 }; int period= 2 ; int shift= 0 ; Print (iRSIOnArray(buffer, 0 ,period,shift)); // --> 0.0 (expected: 100.0) iRSIOnArray does not return

iRSIOnArray for MT5 indi?

I want to move an old indicator to MQL 5 and therefor need iRSIOnArray equivalent. Searched, but couldn't find anything so far. Would someone be so kind to point me to an implementation

OnDeinit logging during optimization

It looks like during optimization the tester agent does only call OnDeinit when the OnInit fails. If it passes, OnDeinit will not be called. I have no idea why. Sample EA to reproduce: input int InpStart= 1 ; input int InpStop= 2 ; int OnInit () { Print (" OnInit Start: ",InpStart," Stop

Is it possible to place the smiley icon to a different corner of the chart?

How could I place the smiley face and EA name to a different location, say the lower left corner , of the chart

Is it possible to generate an ERR_INVALID_PARAMETER error on class instantiation?

In MQL 4, I want to generate this error if my class fails to initialize. Like so: void CClass::CClass( int interval) // constructor { if (interval<= 0 ) { _LastError = ERR_INVALID_PARAMETER ; // constant cannot be modified compiler error ExpertRemove (); return ; }

Interface for MQL4-style indicator invocation

Sometimes I need to port an advisor to MQL5. To get this done I'm looking for a way to convert MQL4 style indicator invocations more easily. So instead of obtaining a handle and using CopyBuffer I'd like to be able to do this: // MQL 5 code block double ima= iMA

Indicator color issue

Hi, I'm experiencing a strange thing with a colorized indicator histogram. The histogram is defined like so: #property indicator_type1 DRAW_COLOR_HISTOGRAM #property indicator_color1 clrSteelBlue , clrRed #property indicator_style1 STYLE_SOLID #property indicator_width1 2 Note the two

ChartSaveTemplate error 4003 in strategy tester

While running in strategy tester my EA generates a few chart objects. But if I try to save the chart objects into a template it doesn't create the template file. void OnDeinit ( const int reason) { ResetLastError (); if (! ChartSaveTemplate ( ChartID (),"lasttest")) Print (" ChartSaveTemplate

Cannot embed images in my forum posts?

I am following this thread on how to put an image into a post: https://www.mql5.com/en/forum/277762 But the icon to add images that is shown in the instructions is missing in my editor menu (the one with the mountain shape that shows between 'add user link' and ' add video '.) Also Alt+I does not

Where is French in the list of languages dropdown?

Question above. Why isn't French supported in the forum