Questions from Beginners MQL5 MT5 MetaTrader 5 - page 487

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!
At first glance, the task seems as simple as three cents. BUT! ....
There is a line of any oscillator in the indicator window, which wiggles relative to "0" with different amplitude.
The actual problem is:
- At "0" crossing from bottom to top, draw an arrow at the bottom border of the indicator window,
- At "0" crossing from the top downwards, to draw an arrow near the upper border of the indicator window,
- at self-scaling of the oscillator chart in the indicator window, the arrows should automatically remain at their borders of the indicator window.
I.e., scrolling the chart backwards and forwards through the history, or changing its horizontal scale, the arrows should always remain at the boundaries of the indicator window automatically.
Please don't give any advices, "help me with money")). I need an example of a working code, which implements this function, or a link to one.
Thanks in advance!
Alpari has been providing quotes for MT4 for 10 years - try there.
Technically, all the quotes can then be unloaded from MT4 via F2 -> Export
Dear MQL-developers, I need some help.
How can I bind the closing of an order to its opening time or to the number of bars after its opening? I looked through the reference book, but came up with nothing.
I don't think it's actually Alpari - it's the quotes from Metaquotes, there are a lot of missing candles, and the intraday only starts from 01.06.2009.
Dear MQL-developers, I need some help.
How can I bind the closing of an order to its opening time or to the number of bars after its opening? I looked through the reference book, but came up with nothing.
https://www.mql5.com/ru/code/13769
I'm asking for help again. I can't close an order. In log it says endlessly EURUSD,H1: OrderClose error 138.
Use the SRC button to paste the code! I don't want to repeat your code!
Close Buy by Bid and Sell by Ask! There are probably other errors, but have to look at it this way! Paste with SRC instead of the sheet, then I'll erase it here!
Use the SRC button to insert the code! So you don't have to repeat your sheet when you reply!
Close Buy at Bid and Sell at Ask! There are probably other errors, but have to look at it this way! Paste with SRC instead of the sheet, then I'll erase it here!
I've already figured it out, you're right you wrote Ask and Bid should have been changed. Something I got confused. It's closing all right now.
So change the Asc and Beed in your post as well, so as not to leave a mistake for history! There are a lot of newbies here, might take a mistake as a rule! ;)
It's good that it's working! Good luck!