Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1361

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
Thanks, that really solved the problem!!!
If you don't mind, can you tell me what kind of construction should be added to make it not display two highs/lows in a row, but a variability (high-low-high)? I understand that I need a check, like "if the previous array element was high, then the second consecutive high should not be included in the array, and wait for low", but how should it be done?
I have already explained it to you.
Forum on trading, automated trading systems and strategy testing.
Any MQL4 and MQL5 beginners questions, help and discussion on algorithms and codes
Alexey Viktorov, 2021.01.24 17:15
If you want to use the trade signal as an indicator, you should use the latest one.
Good afternoon, all. I've got the check on, but I forgot to test it. Good thing I remembered about it today... Here's this check on the mod stop level
When tested this check gives the errors shown in the screenshot below
And what's interesting as I was advised I added to this check domination by 1.5 as follows
This addition does not solve the problem appeared test gives errors as in the screenshot below.
If this check on the mod stop level commented out, there are no errors. What is the error on the check, please advise? Without it, you can not start the grail on the real world - will be banned immediatelyL O_o
I think the error is not in the test, but where you prescribed it
and also here you can remove "*1,5"
Good afternoon, all. I've got the check on, but I forgot to test it. Good thing I remembered about it today... Here's this check on the mod stop level
When tested this check gives the errors shown in the screenshot below
And what's interesting as I was advised I added to this check domination by 1.5 as follows
This addition does not solve the problem appeared test gives errors as in the screenshot below.
If this check on the mod stop level commented out, there are no errors. What is the error on the check, please advise? Without it, you can not start the grail on the real world - will be banned immediatelyL O_o
Check that it returns a stop level, it is often 0.
So like this.
Check what the stop level returns , it is often 0.
Like this.
He doesn't need that, it's "if less than stoplevel".
Good afternoon, all.
Gross mistake... didn't see it straight away.
It's supposed to be DOTS.
Not to display two highs/lows in a row, but to be variable (high-low-high)
You can do it in a simple way. Declare a global variable and change it depending on events.
In indicators, use OnCalculate function and all its variables.
And Start is already unfashionable:)
You can do it in a simple way. Declare a global variable and change it depending on events.
In indicators, use OnCalculate function and all its variables.
And Start is out of fashion:)
Thank you! It's a cool way!)
got it aboutOnCalculate, I'll be in it))
You can do it in a simple way. Declare a global variable and change it depending on events.
In indicators, use OnCalculate function and all its variables.
And Start is already unfashionable:)
Good afternoon. When I call the indicator in my Expert Advisor, there is an error indicated in the box. Why does it occur? And not always. It works fine on
terminal, it works fine.
Good afternoon. When I call the indicator in my Expert Advisor, there is an error indicated in the box. Why does it occur? And not always. It works fine on
terminal, it works fine.