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
Anyone with this formula for the OnTester? Could be really useful.
Testing Statistics (https://www.mql5.com/en/docs/constants/environment_state/statistics) doesn't provide yet this parameter that we can see in the Tester Report: Average Position Holding Time
Up, anyone already test it ?
It's very useful i think
correct me if I'm wrong here
So I need to declare global variables and store the position holding time(s) everytime my trade closed in On_Tick() and used it in custom max (on_Tester) later?
Can metaquotes give us a simpler solution? Should I write to ServiceDesk to appeal for this statistic?
are you already test it with custom OnTester sir ?
Thanks in advance
It's been 10 years
long OpenTime = HistoryDealGetInteger(PrevDealTicket, DEAL_TIME); long CloseTime = HistoryDealGetInteger(DealTicket, DEAL_TIME);
use ulong