search for: rulesign

Displaying 3 results from an estimated 3 matches for "rulesign".

Did you mean: redesign
2011 Nov 15
0
Quantstrat; error with applyStrategy()
...ments = list(column="roc_15", Threshold=-5, relationship="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 ) #...
2012 Jul 24
1
quantstrat questions
...relationship="lt"),label="ma50.lt.ma200") How would I modify the rules below to enter 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.l...
2011 Aug 31
0
QUANSTRAT: error with applySignal
...=TRUE ),label="entre") s=add.signal(s,name="sigThreshold" ,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=&quot...