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

 

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 

 
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.
 
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
Reason: