[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Access year & month of DateTime objects



PureBytes Links

Trading Reference Links

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.

 



=======================================================
IMPORTANT INFORMATION

This message and any files transmitted with it are confidential and should be read only by those persons to whom it is addressed.
If you have received this message in error, please notify us immediately by way of reply. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited.

It is the duty of the recipient to virus scan and otherwise test the information provided before loading onto any computer system.
SEALCORP does not warrant that the information is free of a virus or any other defect or error.

SEALCORP is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.

Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of SEALCORP.

=======================================================


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links