Newbie Need Help !!

To add comments, please log in or register
INS
46
INS  
NEWBIE NEED HELP

Excuse me, may I ask? I am a newbie in the MQL4 programming and is currently just starting to learn to make EA.

1. In an EA, I saw the following statement
# define SIGNAL_NONE 0
# define SIGNAL_BUY 1
# define SIGNAL_SELL 2
# define SIGNAL_CLOSEBUY 3
# define SIGNAL_CLOSESELL 4

I've read the MQL4 Doc, but not found # define xxxx. Could you please explainwhat it means, where we can read the theory about the # define xxxx.

2. In an EA that I read on the forums, there AddP () function.
I do not find that function in MQL4 Doc. Please help explain the meaning ofthat functions and where can I read the theory.

Thank you for all your help.
Simon Gniadkowski
17661
Simon Gniadkowski  

Here you are: https://docs.mql4.com/basis/preprosessor/constant

It's a constant . .

AddP() might be a funtion that someone has created themselves . . . read about it here: https://docs.mql4.com/basis/functions

e.g.

int AddP (double a, double d=0.0001, int n=5, bool b=true, string s="passed string")
  {
   Print("Required parameter a=",a);
   Print("The following parameters are transmitted: d=",d," n=",n," b=",b," s=",s);
   return (0);
  }
INS
46
INS  
RaptorUK:

Here you are: https://docs.mql4.com/basis/preprosessor/constant

It's a constant . .

AddP() might be a funtion that someone has created themselves . . . read about it here: https://docs.mql4.com/basis/functions

e.g.


Dear RaptorUK
I will learn again. Next time I will ask again if there is a problem.
Thank you very much
To add comments, please log in or register