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

Automatic Analysis



PureBytes Links

Trading Reference Links

Tomasz,

In the automatic analysis window, is there anyway of reliably triggering a
sale at the closing date of an analysis period?

I like to do this so I can establish the nett financial position of a system
(including sale transaction costs) as at the closing date. It also makes it
easier to identify all the transactions which go into the results reported.
(it is sometimes difficult to identify the purchase date of an unclosed
transaction unless other transactions have taken place on that ticker).

I currently have a condition in the assignment of the SELL variable such as
'or (datenum() == 1010308)' but this test fails where no quotation exists
for that day, leaving the possibility of open positions, and it requires
updating daily. Would it be worthwhile to have an option in the settings
menu to close all transactions at the end?

regards
Richard