Hello,
I want to add some custom metrics showing the profits per
year (and eventually monthly profits).
I’m using the custom back test interface to access the
Trade objects to get the profit per trade but I am having difficulty getting
individual month or year fields out of the trade.EntryDateTime and trade.ExitDatetime
(which are both of type DateTime).
I am happy to use some inline vb script if that is what is
required but I haven’t found any examples of how to do it.
Thanks
Dan.