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
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...
MaratGum: 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...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.