Daily Gain % on Day Starting Balance on Chart

 

Hello Experts !

Has an expert made an EA, which can show Gain % of the day on chart ?

For example, If starting balance is $100 and on 11th Jan, we made $3, the EA displays 3% on chart.

On 14th Jan, if we make $4, the EA should display 3.88% on the chart because the opening balance on 14th Jan is $103.

Then again if we make $2, the total profit for 14th Jan is now $4+$2 = $6. Now after this transaction, the chart should display 5.82% ($6 / $103).

So in short, the EA is showing daily gain % based on the day's starting balance and being updated based on the number of transactions.

Thanks for your help.

Regards,

Shunmas

Reason: