• 概述
  • 评论
  • 评论

Account value

Script to calculate equity or balance at a specific date and time. 

This script makes up for a lack of MetaTrader account history, that does not show how the balance and equity changes in time.

Balance calculation includes closed orders only.

Equity calculation includes orders closed before and orders that are still open at the specified time.

Example: date and time set to 04/01/2014 00:00. If I had a Buy 1 lot EURUSD position opened at price 1.37470, the program would calculate the PL that the position had at the date and time selected.

On 04/01/2014 00:00 EURUSD was 1.37682, and the PL was 0.00212 pips * $10/pip = $212.

This value will be used for the calculation of equity.

无评论