Skip to content

Syntax - symbol problem

2 messages · Adrian Trapletti, Diego Peroni

#
Christian,

In some old configuration file, I found the following for IB currency futures:

Symbol,Expiry,Exchange,Type
EUR,201206,GLOBEX,FUT

Maybe it helps.

Dr. Adrian Trapletti

Steinstrasse 9b, 8610 Uster, Switzerland
P +41 44 994 56 30  |  M +41 79 103 71 31
adrian at trapletti.org  |  www.trapletti.org
On Thu, Mar 2, 2017 at 12:00 PM, <r-sig-finance-request at r-project.org> wrote:
2 days later
#
Hi everybody,

can help me to understand exactly how this rule works?

add.rule(my.strategy, name='ruleSignal',
          arguments = list(sigcol='upTrend', sigval=TRUE,
                           replace=TRUE,
                           prefer='open',
                           orderside='long',
                           ordertype='stoplimit',
order.price=quote(mktdata$close[timestamp]),
                           orderqty=1,
                           time.in.force=180),
          type='enter',
          label='LE')

More in detail if price is 100,00$ at signal time (timestamp), does this 
rule buy JUST if price will be 100,00$ or MORE within 3 minutes after 
current bar?

Does prefer='open' anticipate buying if price is the same at next open bar?

Thanks in advance for your help

Regards

Diego