Displaying 3 results from an estimated 3 matches for "ordertype".
2011 Nov 15
0
Quantstrat; error with applyStrategy()
...="lte"),
label="roc.lte" )
# long enter
stratROC <- add.rule( stratROC,
name='ruleSignal',
arguments = list(sigcol="roc.gte", sigval=TRUE, orderqty=1,
ordertype='market', orderside='long', pricemethod='market', TxnFees=-2),
type='enter', path.dep=TRUE )
# long exit
stratROC <- add.rule( stratROC,
name='ruleSignal',
arguments = list(sigcol="roc...
2012 Jul 24
1
quantstrat questions
...er when ma50 greater than both ma160 and ma200 and exit when ma50 is below both ma160 and ma200?
#Add rules to a strategy
stratName <- add.rule(strategy = stratName,name='ruleSignal', arguments =
list(sigcol="maFast.gt.maSlow",sigval=TRUE, orderqty=100, ordertype='market', orderside='long'),type='enter')
stratName <- add.rule(strategy = stratName,name='ruleSignal', arguments =
list(sigcol="maFast.lt.maSlow",sigval=TRUE, orderqty='all', ordertype='market', orderside='long'),...
2011 Aug 31
0
QUANSTRAT: error with applySignal
...arguments=list(data=IEF ,
columns="RSI21",threshold=40,relationship="lt",cross=TRUE ),label="sortie" )
# on deifinit les regles
s=add.rule(s,name="ruleSignal",arguments=list(sigcol="entre"
,sigval=TRUE, orderqty=10 , ordertype="market" ,
orderside=NULL),type="enter")
s=add.rule(s,name="ruleSignal",arguments=list(sigcol="sortie"
,sigval=TRUE, orderqty="all" , ordertype="market" ,
orderside=NULL),type="exit" )
out <- try...