Skip to content
Prev 353527 / 398502 Next

inbuilt crossover function for backtesting

On Mon, Aug 10, 2015 at 11:02 AM, boredstoog via R-help
<r-help at r-project.org> wrote:
There are several errors in your code.  Rather than enumerate them and
show you how to fix each one; I suggest you simply use quantstrat as
it was intended, rather than attempt to circumvent/re-invent it.

See demo('macd') and modify the demo source code to suit your purposes.