Cancel Backtest Programmatically
Author: dlinnard
Creation Date: 1/25/2014 10:47 PM
profile picture

dlinnard

#1
Is there a way to fully cancel a backtest sequence of a data set programmatically? I have tried Abort, but that seems to just end the processing for the current symbol, and the backtest continues to run, continuously generating errors on each new symbol processed.
profile picture

Eugene

#2
You can use a class-level variable, for example. Assuming the test is being run in MSB mode on a DataSet that includes 2+ symbols:

CODE:
Please log in to see this code.
profile picture

dlinnard

#3
Thanks. The class-level solution variable worked, and your example showing how to reference the items in the data set gave me an alternate and even better solution.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).