Download MetaTrader 5

How to get the historic profits made on a day so far

To add comments, please log in or register
Bipin Kuria
300
Bipin Kuria  

Hi,

How do we get the total historic profits made on a day so far from 00:00?

Any code examples or link for reference?

 

Thanks,

Bip 

Marco vd Heijden
Moderator
5098
Marco vd Heijden  
bipinkuriakose:

Hi,

How do we get the total historic profits made on a day so far from 00:00?

Any code examples or link for reference?

 

Thanks,

Bip 

Just filter on:

PERIOD_D1
And add all profits that have an opentime after the opentime of the last D1 bar.
Mohammad Soubra
29426
Mohammad Soubra  
Marco vd Heijden:

Just filter on:

And add all profits that have an opentime after the opentime of the last D1 bar.
Very quick and summary
Not as simple as you think
To add comments, please log in or register