Chart

Top  Previous  Next

The Chart object is an experimental object used to create custom charts. It is currently used by the Walk Forward block to create a Stitched Equity Curve of the OOS tests.

 

Here is the example with explanation:

 

fileLocation = test.resultsReportPath + "\stitchedEquity.gif"

 

chart.newXY( "Stitched Equity Curve", 1000, 700 )

chart.xAxis( 1, lastStitchedEquityIndex )

chart.addline( "stitchedEquity", lastStitchedEquityIndex )

chart.make( fileLocation )

 

IF showStitched THEN

 OpenFile( fileLocation )

ENDIF

 

 

 

newXY( title, xSize, ySize ) -- Creates an XY chart with a title and size.

 

xAxis( xLegend, size ) -- Sets the legend for the x axis, such as a bpv series of numbers, or a test array of strings. In this case the test string array 1 is used to set the dates on the x axis.

 

addLine( SeriesName, size ) -- Adds a line to the chart. The first parameter is the bpv series to use to create the line.

 

make( fileLocation) -- Makes the chart at the file location. Can be .gif or .jpg.

 

For more information, or to request additional features and functions please contact support. Basically anything in the following chart examples should be possible:

http://www.advsofteng.com/gallery.html