[R-SIG-Finance] [R] Txnfees function in quantstrat
Brian G. Peterson
brian at braverock.com
Wed Aug 31 14:22:28 CEST 2011
On Wed, 2011-08-31 at 21:01 +0900, 이원재 wrote:
> Hi,
> According to the documentation, the argument 'TxnFees' in 'ruleSignal' is numeric fees (usually negative) or function name for calculating TxnFees (processing happens later, not in this function) in quantstrat packages,
> In the case of using function for 'TxnFees' argument, how can I get the value of the orderprice and orderqty from transactions.
> And, can you show me an example to use function for 'TxnFees' argument?
> Wonjae Lee
TxnFees is passed to addTxn in blotter. See example TxnFees function
pennyPerShare in blotter.
Regards,
- Brian
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
More information about the R-SIG-Finance
mailing list