
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
Bug reported and confirmed by ServiceDesk :
Is OnChartEvent() actually called during a "Stratagy Tester - Visual Testing" mode session?
Win 10 latest build, MT5 V5 build 1966, UHD 4K screen
Tester (EA) in Visual Mode breaks synchronisation between Candles and horizontal time scale on chart, when changing resolution (magnifier +/-). Screen shot attached. 0900h candle shows on scale at 0745h.
Reported in parallel to Service Desk, now.
Hello, I got a problem when written and tested the following code that all of sudden all of my expert advisors execute buy and sell order at the same time in every expert advisor despite the signal, I didnt have this problem until I coded following advisor. Then I sent this code to my friend and he got same problem, could you give us some advice how to fix it? Thank you a lot.
Hello, I got a problem when written and tested the following code that all of sudden all of my expert advisors execute buy and sell order at the same time in every expert advisor despite the signal, I didnt have this problem until I coded following advisor. Then I sent this code to my friend and he got same problem, could you give us some advice how to fix it? Thank you a lot.
Categorically it is NOT possible to receive an indicator handle AT EVERY TICK! An indicator handle must be created ONCE in OnInit ().
Example:
Creating an iMA indicator handle, getting indicator values
Now, now I have corrected your code. The EA checks the signal ONLY AT THE TIME OF THE NEW BAR BIRTH (it makes no sense to work inside the bar on every tick).