[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 711

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
Hello gentlemen. Question, if there is a function or something to determine how previous positions closed with plus or minus???? If the topic has been raised drop the link. Thanks in advance....
https://www.mql5.com/ru/forum/107476/page21#79649
https://www.mql5.com/ru/forum/107476/page21#79908
In the output after all these manipulations in the printout we see:
PeakUP Size = 3 - it means that two additional values were found and the peaks array size increased to 3 - everything is correct here, next:
PeakUP[0] = 49,9119 - this is the value found when searching for additional values. here it should be; next:
PeakUP[1] = 0 - this should be the value of the first extrema found (about 82 pennies)
PeakUP[2] = 0 - this should be the value of a single extreme found (about 173 pennies)
Question - where did I loose two values? And in general - am I trying to put them in correctly? The code initially filling the PeakUP array with values of extrema works correctly,
the second part - repeated addition of additional values to the array - does not work.
Can you tell me what is wrong?
Question - where did I lose two values? And in general - am I trying to put them in correctly? The code that initially fills the PeakUP array with extremum values works correctly,
the second part - repeated addition of additional values to the array - does not work.
Could you tell me what's wrong?
Please tell me how to do it. I tried to copy it as a report, but it gives in htm and does not show the number of losing trades in a row all the same.
I do not need to copy anything. In deinit() is inserted the necessary code which analyses results and saves them in the file. Sometimes I use this method when I need to get my own optimization criterion.
The function
It is written black and white that OBJ_ARROW uses only one coordinate. WHICH??? Where do I take the datetime value from the indicator? Or should I memorize it along with the extremum found? In short - a mountain of questions and misunderstanding, and I did not find an answer on the site, except for working with other types of graphical elements...
Help, point fingers please... :)
It's written in black and white that OBJ_ARROW uses only one coordinate. WHICH??? Where do I get the datetime value from the indicator? Or should I memorize it along with the extremum found? In short - a mountain of questions and misunderstandings, I did not find an answer on the site, except for working with other types of graphical elements...
Help, point the finger please... :)
When an extremum is found, it is located at a certain bar and you paste it in:
datetime time1=extreme value, double price1=Time[bar number].
When you find an extremum, it is at a certain bar, so you insert it:
datetime time1=extreme value, double price1=Time[bar number]
It's written in black and white that OBJ_ARROW uses only one coordinate. WHICH ONE???
This is an inaccuracy in Helpe. Of course, not one coordinate, but one point (which has two coordinates).
A graph of an indictor? It's essentially the same thing. Extremes are only on the bars anyway, not between them.
Inducator is a separate window (if you draw it separately, below the price window). This window has the same coordinates - indicator value and time.