Questions from Beginners MQL4 MT4 MetaTrader 4 - page 239
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
Good day. Can you tell me, there are two linear oscillators (levels of both 0-100), how to make mql4 so that the written indicator would signal when the two lines are close to each other, within, say, 5 points, that is, the difference between the lines was not more than 5.
Here is what I have written so far (in short)
if iStochastic() - iRsi() == <5 && iStochastic() - iRsi() == >0 (>0 is in case if RSI is higher than stochastic, for example if we take away stochastic value of say 70 and rsi value 80 we get -10 and then result will always be lower than 5) --- "code" for the case when rsi is lower than stochastic, and so on...
|| iRsi() - iStochastic() == <5 && iRsi() -iStochastic()==>0 ---- the same only in reverse if rsi is higher
So < or > after == is an operand expected, what should be written here to avoid errors, or simply how to write it correctly?
Good day. Can you tell me, there are two linear oscillators (levels of both 0-100), how to make mql4 so that the written indicator would signal when the two lines are close to each other, within, say, 5 points, that is, the difference between the lines was not more than 5.
Here is what I have written so far (in short)
if iStochastic() - iRsi() == <5 && iStochastic() - iRsi() == >0 (>0 is in case if RSI is higher than stochastic, for example if we take away stochastic value of say 70 and rsi value 80 we get -10 and then result will always be lower than 5) --- "code" for the case when rsi is lower than stochastic, and so on...
|| iRsi() - iStochastic() == <5 && iRsi() -iStochastic()==>0 ---- the same only in reverse if rsi is higher
So < or > after == is an operand expected - what should I write here to avoid errors, or simply how should I write it correctly?
if (MathAbs(PSI - Stoch) <= 5*_Point)
{
//---
}
MathAbs() - this function returns an absolute number, without the minus sign, if there is one
<= - less or equal
5*_Point - five points at the current instrument, it can be 0.00005 or 0.005 if it is JPYUSD
Thank you
Good evening, is it possible to install MT4 terminal with the same login on different computers?
Help me recover my MT4 password. I know the username but I have lost the password. My account is a training account. I bought an indicator for this login. I need to install MT4 on another computer. Can not install without password...
Look in the postal tab in the terminal.