Please tell me how to assign the time to the indicator line val1[]. Or tell me how to do it and what to use because I can't figure it out. Laguerre indicator.
i=CountBars-1;
while(i>=0)
{
L0A = L0;
L1A = L1;
L2A = L2;
L3A = L3;
L0 = (1 - gamma)*Close[i] + gamma*L0A;
L1 = - gamma *L0 + L0A + gamma *L1A;
L2 = - gamma *L1 + L1A + gamma *L2A;
L3 = - gamma *L2 + L2A + gamma *L3A;
CU = 0;
CD = 0;
if (L0 >= L1) CU = L0 - L1; else CD = L1 - L0;
if (L1 >= L2) CU = CU + L1 - L2; else CD = CD + L2 - L1;
if (L2 >= L3) CU = CU + L2 - L3; else CD = CD + L3 - L2;
if (CU + CD != 0) LRSI = CU / (CU + CD);
val1[i] = LRSI;
i--;
}
if(counted_bars>0)
counted_bars--;
limit=Bars-counted_bars;
if(limit>CountBars)
limit=CountBars;
for(int c=1;c<limit;c++)
{if(val1[c]>0.45)
// присваиваем время;}
For example, when line val1[c] crosses 0.45 upwards time value is set in variable TimeBegin and when it crosses downwards time value is set in variable TimeEnd. And so on through the entire chart.
The idea is that when the line crosses 0.45 up and after it crosses 0.45 down, for this period, count points in the chart (How many points has the indicator maximal given for this signal). I hope I was able to explain.
Hello, could you please tell me why the standard OrderSend function doesn't work ? Just taking the source code from the tutorial on this site, but nothing happens. When I added error output, it showed 4109 - uninitialized string in an array...
Golden-dark: Hello, could you please tell me why the standard OrderSend function doesn't work ? Just taking the source code from the tutorial on this site, but nothing happens. When I added error output, it showed 4109 - uninitialized string in an array...
Can you give me a hint? There are two conditions, for buy and for sell. After catching a false signal to sell, for example to buy, expert advisor starts to open the next position again by this false signal and again catches a fake one. How should I make my EA wait for the signal to the opposite direction after the loss and not open by the false signal again? Thank you!
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.
Please tell me how to assign the time to the indicator line val1[]. Or tell me how to do it and what to use because I can't figure it out. Laguerre indicator.
For example, when line val1[c] crosses 0.45 upwards time value is set in variable TimeBegin and when it crosses downwards time value is set in variable TimeEnd. And so on through the entire chart.
The idea is that when the line crosses 0.45 up and after it crosses 0.45 down, for this period, count points in the chart (How many points has the indicator maximal given for this signal). I hope I was able to explain.
Is there any way to disconnect MT4 itself from the internet without turning off the internet on your computer?
Disconnect from your broker via the "proxy" checkbox in the terminal settings. One move and you're either offline or online.
Hello, could you please tell me why the standard OrderSend function doesn't work ? Just taking the source code from the tutorial on this site, but nothing happens. When I added error output, it showed 4109 - uninitialized string in an array...
Greetings comrades!
Can you please tell me what could be the error in the following code:
And the gist is this: I want an indicator that displays a line of values dividing the upper Bollinger Band by the lower Bollinger Band.
But there is no result.
The indicator window is empty:
Thanks in advance if anyone can help!
Greetings comrades!
Can you please tell me what could be the error in the following code:
And the gist is this: I want an indicator that displays a line of values dividing the upper Bollinger Band by the lower Bollinger Band.
But there is no result.
The indicator window is empty:
Thanks in advance if anyone can help!
you have x2=0 on the leftmost bars. And dividing by zero is not a good thing...
you have x2=0 on the leftmost bars. And dividing by zero is not a good thing...
What, for example, can you do to prevent this?
What, for example, can you do to prevent this?