Forum

multiple INDICATOR_DATA flagged buffers involve CopyBuffer error ?

Hi, (I apologize in advance if this isn't the right section) so following the SL dev. guidelines have a very simple indicator like this : //--- indicator buffers double BufferA[]; double BufferB[]; double BufferC[]; static int counter= 0 ; // for test purpose only

Restrictions over Service Desk profile section?

Hi everyone, I found that Service Desk section ( https://www.mql5.com/en/articles/24#servicedesk ) is missing in my profile, are there any restrictions ? (I use the MT5 in real mode). Tnks in advance

Any chance to have optional parameters on a macro?

#define D2S(_double) DoubleToString (_double) // ok #define D2S(_double, [digits= 8 ]) DoubleToString (_double, [digits]) // possible ? any suggestion ? tnx in advance

Can I invoke a macro with a string parameter in the form a+b+c ?

Hello, here it's hard to understand for me why the compiler generate this error and how I can fix it: #define __Log__(_msg) {StringConcatenate(_msg,"<session_id>\t",_msg); \ Print(_msg);} int OnInit () { string fn = __FUNCTION__ , msg= " started" ; __Log__(fn+msg); // compilation error : "+" -

Can a macro return value be concatenated ?

Hello, I probably missing some macro related knowledge here, so well I would appreciate if someone can help me to understand & fix this little problem : macros.mqh #define I2S(_int) IntegerToString (_int); EA.mq5 #include "macros.mqh" int OnInit () { int i = 1 ; string valid = I2S(i);