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
i have been searching for method to cover this bug for some time, but none of the gurus have given proof that their methods work, so I have always been uncertain who to believe but I have found this in the docs. I have been watching the print out data for almost 5 mins non stop, and see not even 1 line that has 0.0. I hope the doc page help you too.
I do coding for both mt4 and mt5, and both indicators and eas. Please confirm that the example in the docs page below, at the bottom of the page will re-populate the OHCL data for current and past candles, for both ea's (in OnTick func) and indicator (in start() or OnTick()); coding AND for both MT4/5.
https://www.mql5.com/en/docs/series/copyrates
yes it worked!!! feedback needed
It does happen for ask and bid. Allso there is allso mind scratching thing. If you want to get the bid value of another symbol, you will not get that because you will be able to call data based on the current symbols tick. The way is prevent that to call data every X ms possible. That way atleast you will get different ticks based on the symbols. Not all symbols creating the tick at the same time. That is another issue of MT5 :) OnTick gets updated only based on the symbol you are in. OnTimer is the best for such cross pair tick data. Then you will get the most realistic data but again. Still reason is unknown for 0.0. Not an exact explanation
This is completely wrong statement. Or you need to prove it.
Yes OnTick() is only triggered for the current chart symbol, but beside that there are several methods to be notified about ticks on other symbols. Do some researches, it's all publicly available on this site.
Yes as I said temporarily fix using Bid price
Again. This is NOT a bug, it's a feature which allow MT5 to be way faster then MT4, at the price of simplicity for sure.
Learn to deal with it.
Again. This is NOT a bug, it's a feature which allow MT5 to be way faster then MT4, at the price of simplicity for sure.
Learn to deal with it.
ok thanks. But i did give context in my last msg. Please read my previous msg and confirm that it should suite my "context".
And, yeah, ok. maybe the word "bug" does not apply here. However, anything that requires error correction is labeled as a bug to 99% of coders i have conversed with; whether that behavior is NORMAL behavior or not. If it is NORMAL behavior it goes on the "to be fixed list", or the "shit list", all of these fall under the same banner of "bugs" :D
This is completely wrong statement. Or you need to prove it.
Yes OnTick() is only triggered for the current chart symbol, but beside that there are several methods to be notified about ticks on other symbols. Do some researches, it's all publicly available on this site.
it is publicly available but the search feature of this website sucks and is very limited. Its no wonder the same questions get asked so many times.
yes it worked!!! feedback needed
sweet! i am happy it worked for you. It is working for me too, albeit i have not tested it in ea codes yet.
it is publicly available but the search feature of this website sucks and is very limited. Its no wonder the same questions get asked so many times.
Maybe, but it's not my role to do the search for other people. Or to go back read what you think I should have read.
If you have a question not answered, ask it again.
not_synchro=(rates[j].high==0.0);