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 ?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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