lippmaje / プロファイル
Software test engineer & MQL coder
pm me for projects
pm me for projects
lippmaje
パブリッシュされたコードLog4mql(mini) MT5
A light header-only version of Log4mql that provides standardized logging.
1
190
lippmaje
パブリッシュされたコードLog4mql(mini) MT4
A light header-only version of Log4mql that provides standardized logging.
lippmaje
How to display the error text of a runtime error, MQL 4/5 compliant:
#ifdef __MQL5__
#include <errordescription.mqh>
#else
#include <stdlib.mqh>
#endif
int OnInit ()
{
ResetLastError ();
// do something that might set an error
if ( _LastError )
{
Print ( "error: " , _LastError , " " ,ErrorDescription( _LastError )); // error: 4802 Indicator cannot be created
return INIT_FAILED ;
}
return INIT_SUCCEEDED ;
}
And the errordescription.mqh (needed for .mq5) you get from here:
https://www.mql5.com/en/code/79
#ifdef __MQL5__
#include <errordescription.mqh>
#else
#include <stdlib.mqh>
#endif
int OnInit ()
{
ResetLastError ();
// do something that might set an error
if ( _LastError )
{
Print ( "error: " , _LastError , " " ,ErrorDescription( _LastError )); // error: 4802 Indicator cannot be created
return INIT_FAILED ;
}
return INIT_SUCCEEDED ;
}
And the errordescription.mqh (needed for .mq5) you get from here:
https://www.mql5.com/en/code/79
lippmaje
パブリッシュされたコードiRSIOnArray for MT5
Header with iRSIOnArray function for use with MQL 4 or 5 code.
386
: