Balance and Profit Previous day

 
Hello,

Sorry, I had an answer yet, but it wasn't fine.

Have you got a code for this :

For the money managment, I would like to know the final balance and the final profits of the previous day.
And I would calculate the total profits from the begining of the current day (not profits for current bar)

With that, I could stop trading when the target of profits is achieve.

Thank you for your help.
 
Please help !


I need an answer about Profits and Balance for previous and current day please.



I had an idea about write/read cvs files, but I don't know how to read a line in cvs files, for example the cvs files created is like that :

----------

Day: 2008327

Balance: 10000

Profit: 0.00000000

Day: 2008328

Balance: 10100

Profit: 100.00000000

...

----------

How I can read the 5th line to call the balance (10100) ?


Thank you.
Reason: