Can not reproduce. My advisors that use MODE_TICKVALUE (and other MarketInfo values) work without problems in the tester on weekends.
I'll tell you more - MarketInfo can return 0 in live mode too. Therefore you should check the error and return value of MarketInfo every time you call it. If the data is not available, then do not trade this tick.
I also request MarketInfo values (which are necessary to calculate the lot) with each tick so that the terminal keeps this data up to date.

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
you got me good, MT4.
I was building stuff last weekend and it kept giving me 'divide by zero' errors and was driving me NUTS, I couldn't figure out how or where my math was 'wrong'.
It wasn't. I only figured it out because I was back-testing last night and using a spreadsheet to record my historical; then resumed again today with the same bot on the same pair etc etc to just get a straight up "NOPE" from my computer.
so either I have to 'adjust' my dynamic lot sizing in the weekends, or find another hobby :)