SCM

SCM Repository

[blotter] View of /pkg/quantstrat/demo/luxor.sample.tradeGraphs.sma.R
ViewVC logotype

View of /pkg/quantstrat/demo/luxor.sample.tradeGraphs.sma.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1733 - (download) (annotate)
Sun Mar 6 20:04:46 2016 UTC (2 years, 11 months ago) by bodanker
File size: 727 byte(s)
Fix typo in file name (fixes #6292)
#!/usr/bin/Rscript --vanilla
#
# Jan Humme (@opentrades) - August 2012, revised April 2013
#
# Tested and found to work correctly using blotter r1457
#
# After Jaekle & Tamasini: A new approach to system development and portfolio optimisation (ISBN 978-1-905641-79-6)
#
# 3D SMA graph example

require(quantstrat)
require(rgl)

### load 'stats' back into .GlobalEnv

load(paste0(
	path.package('quantstrat'),
	'/data/luxor.parameters.1-10.30-55.RData')
)

### show trade graphs from stats

tradeGraphs (
	stats = stats,
	free.params = c("Param.indicator.1.nFast", "Param.indicator.2.nSlow"),
	statistics = c("Net.Trading.PL", "maxDrawdown", "Avg.Trade.PL", "Num.Trades", "Profit.Factor"),
	title = 'Luxor SMA Parameter Scan'
)

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge