[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 277

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
Can you tell me why OrderOpenPrice doesn't work? The task is to look for an order in the pool at a certain price, and if it's not there, put the order and set a flag that it's set.
Function ExistPosByPrice().
https://www.mql5.com/ru/forum/131859/page2#434212
Read the last line of my post. Who said I was writing a closing example?
The rest of it is the plain truths. Write your own textbook.
I cannot put the divergence signal from the indicator into my EA.
Indicator FX5_Divergence_V2.1.mq4
How do I take the arrow out of the indicator?
Clarified not for you. My post is exclusively for newcomers. So there is no need to be offended.
You know, if you have only one order, it might work, but if you still open it manually, it won't be the same. The ticket number should be stored in a variable, and after selecting an order, we should compare its ticket with the stored one:
And in general, the order selection must be done using the OrderSelect() function in the loop:
This is just an example for understanding, not the finished working code, if anything... :)
Thank you!)))
When closing orders, if there is more than one order, a cycle like this should be used:
Thank you too!))
I cannot put the divergence signal from the indicator into the Expert Advisor.
Indicator FX5_Divergence_V2.1.mq4
How do I take the arrow out of the indicator?
Can you tell me why OrderOpenPrice doesn't work? The task is to look for an order in the pool at a certain price, if it's not there, put the order in and flag it as set.
It goes something like this:
I wrote it by hand - don't kick me... :)The 2nd and 3rd buffers the indicator. The second is the up arrow and the third is the down arrow. Use iCustom(); with data check of these buffers.
These buffers are empty. They give the same value 27.........., in short, lots of numbers that never change...
They only change on the bar with the arrow. Press Ctrl+D and move the mouse over the indicator chart, observing the data of these buffers. You owe me a beer :))
ZS. These numbers are nothing but EMPTY_VALUE (empty buffer value)