Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1460
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 need your advice!
I am trying to test a multi-currency EA but the results are not accurate because the void OnTick(); function is called in case of a tick in the selected chart and not in case of another currency in the EA. How can I replace void OnTick(); with another function so that the code is executed continuously?
I need your advice!
I am trying to test a multi-currency EA but the results are not accurate because the void OnTick(); function is called in case of a tick in the selected chart and not in case of another currency in the EA. How can I replace void OnTick(); with another function so that the code is executed continuously?
solving with OnTimer(); with the timer value set to run, I think in the right direction?
Check it out, it's quick
I ran the Expert Advisor, and threw the indicator analyzing candlesticks on the tester chart...
Question: Why is requesting Ask or Bid of the current price and getting the price from the real-time chart, and not from the tester - is it a bug?
Hello, I ran into a bug in MT4 tester!
I launched an Expert Advisor, and threw a candlestick analyzing indicator on the tester chart...
Question: Why am I requesting the Ask or Bid of the current price and getting the price from the realtime chart, and not from the tester?
Try using SymbolInfoTick
Try using SymbolInfoTick
I'll try, thanks, but the question is, is it normal that Ask and Bid get real prices in the tester instead of the generated prices, which hasn't happened before?
I'll try it, thanks, but the question is different - is it normal that Ask and Bid get real prices in the tester instead of the generated ones, which hasn't happened before?
Good afternoon. Can someone tell me how to search for open positions, you can write their tickets in an array, according to the order of opening.
If we are going to brute force the positions
Will they be selected from the most recently opened to the earliest opened. Or just in random order? And then we need to add another definition by time of opening?
Good afternoon. Can someone tell me how to search for open positions, you can write their tickets in an array, according to the sequence of openings.
If we are going to brute force the positions
Will they be selected from the most recently opened to the very first opened. Or just in random order? And then we need to add another definition by time of opening?