Skip to content
Prev 10776 / 15274 Next

Problem with updatePortf

On 21/09/12 14:43, G See wrote:
Now the error is:
2005-09-01
FOO
Error in `*.default`(TmpPeriods[, columns], CcyMult) :
  non-conformable arrays

Adding a transaction in the inner loop...

    equity = getEndEq(account, CurrentDate)

    addTxn(Portfolio=portfolio, Symbol="USDCHF",
           TxnDate=CurrentDate,
           TxnPrice=1.1, TxnQty = 10 ,
                 TxnFees=0, verbose=TRUE)
   
   
    cat("FOO \n")

gives the following error...
2005-09-01
[1] "2005-09-01 00:00:00 USDCHF 10 @ 1.1"
FOO
Error in `*.default`(TmpPeriods[, columns], CcyMult) :
  non-conformable arrays

cheers
W