Please use the "SRC" button on the posting toolbar to add your source code.
"X" is a boolean variable that contains information if a value in the "bid" variable is higher or equal than the expression on the right side of the ">="
X is True if Bid greater or equal to the RIGHT side of the ">=" | Equivalent |
---|---|
X = bid >= Env_lower + Env_dif / 2.0; | if(bid >= Env_lower + Env_dif / 2.0) X = true; else X = false; |
whroeder1:
Line | X is true if bid greater or equal to the RIGHT side of the ">=" |
---|---|
X = bid >= Env_lower + Env_dif / 2.0; | if(bid >= Env_lower + Env_dif / 2.0) X = true; else X = false; |
oh thaks! and sorry for posting the code like that, other question, in the right side, i make the sum and then the / ?
sorry for my silly cuestions
marcosdom802: , i make the sum and then the / ?
| Nope, see Precedence Rules - Operations and Expressions - Language Basics - MQL4 Reference |
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi im learning to code and for that im checking EA codes so i have this with a EA based in envelopes
Env_upper = iEnvelopes(Symbol(), PERIOD_M1, Z_period_328, MODE_LWMA, 0, PRICE_OPEN, EnvelopesDeviation, MODE_UPPER, 0);
Env_lower = iEnvelopes(Symbol(), PERIOD_M1, Z_period_328, MODE_LWMA, 0, PRICE_OPEN, EnvelopesDeviation, MODE_LOWER, 0);
Env_dif = Env_upper - Env_lower;
X = bid >= Env_lower + Env_dif / 2.0;
i wnt to know what "x" means