Re: [R] quantstrat questions

2012-07-24 Thread Sven Duve
You need to code a function which returns either a 1 for long and a 0 for flat based on any conditions like, so something like MASig <- function(MA1, MA2, MA3){ k <- 0 if((MA1 > MA2) && (MA2 > MA3)){k <- 1} return(k) } you then use this in your signalfunction in quantstrat. dont nail me for th

Re: [R] Rcurl, postForm()

2012-05-28 Thread Sven Duve
On 28/05/12 20:46, Simon Kiss wrote: Dear colleagues, Could I get some assistance using postForm() to scrape the business names and addresses at this website: http://www.brantford.ca/business/LocalBusinessCommunity/Pages/BusinessDirectorySearch.aspx I've read through (http://www.omegahat.org/RC