Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 223
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
Thank you. I've started to write according to your algorithm. But with flags, I'm as far from Peking as you are. Thanks again.
https://www.mql5.com/ru/forum/131516/page34
Down there - an early Article shared his experience. Exactly on this issue.
https://www.mql5.com/ru/forum/131516/page34
Down there - an early Article shared his experience. Exactly on this issue.
SPS
What could be the problem?
Sometimes a division by "O" error is shown during a test
What could be the problem?
Sometimes the division by "O" error is shown during a test.
Search for the "/" sign and see which variables from the user take part in the division:
SL ;
FV ;
TakeProfit1 .
Some of them may be 0.
What could be the problem?
Sometimes a division by "O" error is shown during a test
Do a type test:
And so on .Thank you again. I tried to make out your code and wrote comments. I did it for myself to understand and maybe I'll write something similar. I study and try to figure out the logic of other people's work. Then I try it myself.
Maybe you can find time to check my comments and correct them if necessary. One more question.
Does it mean that the indicator buffer is not empty or does this variable mean something else? The indicator buffer would be
All code with comments.
gince:
Does it mean that the indicator buffer is no longer empty or does this variable mean something else?
This line can be removed, because iFractals() returns zero, not "empty value"(EMPTY_VALUE), as absence of fractal.
My question is as follows: are you trying to make an indicator that will look for two consecutive fractals? Or are you searching in your EA for two consecutive fractals closest to the current bar? This question is not of idle curiosity because the search methods in the indicator and in the Expert Advisor are different - the indicator calculates from the end to the beginning - from past to present, and the Expert Advisor looks through the bars from present to past. Therefore, the search directions are also different for the Expert Advisor and the indicator.
One last question: what should the output result be?
This line can be removed because iFractals() returns zero as no fractal, not "empty value" (EMPTY_VALUE).
My question is as follows: are you trying to make an indicator that will look for two consecutive fractals? Or are you searching in your EA for two consecutive fractals closest to the current bar? This question is not of idle curiosity because the search methods in the indicator and in the Expert Advisor are different - the indicator calculates from the end to the beginning - from past to present, and the Expert Advisor looks through the bars from present to past. Accordingly, the search directions are also different in the Expert Advisor and in the indicator.
And the last question: what should be the output?
The search methods in the indicator and in the EA are different - the indicator calculates from the end to the beginning - from the past to the present, while the EA looks through the bars from the present to the past .
for (i=kilkict;i>0;i--)
The result - top two -> sell (arrow down), bottom two -> buy (arrow up). The signal will appear +2 bars to the right of the fractal. That is what I would like to see visually on the history at the beginning. And probably we will need a filter.
...
something like this...
...
Tell me, explain, how does it happen that instead of "this" they write "this"?
1. Don't you know that "it" is spelled with an "e", not a "f"?
2. Too lazy to move your hand to the letter "e", it's easier to press "e"?
3. is there no "e" key on the keyboard? If not, why not?
4. Is it some kind of special ponce?
5. Some other unknown reason. What's that?
Can you tell me how come instead of "it" people write "ito"?
1. Don't you know that "it" is spelt with an "e" and not with an "e"?
2. are you too lazy to move your hand to the letter "e", it's easier to press "e"?
3. is there no "e" key on the keyboard? If not, why not?
4. Is it some kind of special ponce?
5. Some other unknown reason. What is it?
I am not Russian and there are no Russian letters on the keyboard. Moreover, I use a phonetic keyboard (it's a software program). I press "p", but it says "p". The letter "e" is there too. I have to type "\".
There are grammatical mistakes, because the grammar has long been forgotten. I had to write in Russian only on forums and that after many years.
I apologize for the mistakes. Do not kick me too much.