Function creates end of test tasks to automatically display a custom chart images in the area below the BPV Custom Graphs are displayed.

 

Syntax:

test.SetChartTestHtml( sHTMLImageReference )

 

Parameter:

Data Information:

sHTMLImageReference

HTML Image loading reference that includes image path and full file name.

 

Multiple task can be included in as a single parameter by placing a plus-sign + between each image to be loaded.

 

See code example below for exact details on how to create a HTML image source reference.

 

Notes:

 

The width and height specified should match that used to create the chart.  If the the space allocated by the HTML statement to too small, some of the displayed image will be blocked.  If they are too large, more space around the image will be added creating wasted space.

 

When this method is used with stepped test, the parameter test index is added to the file name created.  File names created will each have an index that matches equal the number of steps in test when this method is used with multiple stepped test.  When only 1-step is in a test, there will only be one image.  When there are more steps in a test, each test-step will have an image and that image will have that step's index value as part of its file name.

 

Inserts HTML references that include a Custom Chart created graph image into the bottom area where Trading Blox BPV series Custom Charts.  When Chart Object images are created they are saved into the Results folder with used to population of end of test Summary Performance Report images.

 

Trading Blox reporting preferences for the level of reporting intended must show the reporting option selected has the Custom Graph option enabled with a checkmark.

 

Trading Blox Preferences:

Click on image to enlarge, click again to reduce

Preference settings to enable Custom Graphs and Custom Charts.

 

Display charts just below Multi-Parameter Table in the Stepped Parameter Summary Performance table.

Example:

BEFORE TEST SCRIPT

' ==============================================================
' This task will load the chart SystemEquity.jpg image into
' the simmulation report:
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' This statement creates a single chart displaying task.
test.SetChartSimulationtHtml("<img src='" _
+ test.resultsReportPath _
+ "\SystemEquity" _
+ AsString(test.currentParameterTest) _
+ ".gif" _
+ "' width=830 height=500>")
' ==============================================================

OR

' ==============================================================
' This task will load two chart images in the
' simulaiton report:
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Next two lines assign the full path and file name to two BPV
' variables:
chartHtml1 = "<img src='" _
+ test.resultsReportPath _
+ "\Winning Trades" _
+ AsString( test.currentParameterTest ) _
+ ".gif" _
+ "' width=415 height=400>"
 
chartHtml2 = "<img src='" _
+ test.resultsReportPath _
+ "\Losing Trades" _
+ AsString( test.currentParameterTest ) _
+ ".gif" _
+ "' width=415 height=400>"
 
' This statement creates a task to display two charts
' side by side.
test.SetChartSimulationtHtml( chartHtml1 + chartHtml2 )
' ==============================================================

OR

' ==============================================================
' This task will load the same two chart images defined above
' simulation report, but it will place the first image above
' the second image:
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
' This statement creates a task to display two charts
' one above the other.
test.SetChartSimulationtHtml( chartHtml1 + "<br>" + chartHtml2 )
' ==============================================================

 

Links:

AsString, currentParameterTest, resultsReportPath

See Also:

 

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 537

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software