Skip to content

function 'addtxn' in blotter package can't add intraday trade into account?

1 message · Joshua Ulrich

#
On Sun, Aug 31, 2014 at 10:23 PM, domodo <1111938 at qq.com> wrote:
addTxn is working correctly.  See below.
<snip>
They are not ignored.  TxnQty=0, TxnFees=0, Txn.Avg.Cost=NaN, and
Net.Txn.Realized.PL=NaN.
Yes. It's fairly obvious that, since TxnQty=0, TxnFees will also equal
zero, and the two values I mentioned above will be NaN.
TxnQty=unitsize, so why does unitsize=0?  It's likely because
equity=0.

So the question isn't "why isn't addTxn working?"; it's "Why does
equity=0?".  You need to provide more information for anyone to be
able to help you answer that question.
Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com