Create & Run a Back Test

Author: Optuma Team Last updated: Feb 28, 2017 08:24

Overview

The following article will outline how to create and run a new strategy Back Test in Optuma.

  1. Select the Back Tester option under the Searches menu.

    Create and Run a Back Test

  2. Left-click the New button.

    Create and Run a Back Test

  3. Double-click to enter a name.

    Create and Run a Back Test

  4. Enter the required information for the setup, including the Code to Test, Date Range, Timeframe, and Brokerage and Account Information.

    Create and Run a Back Test

  5. Go to the Entry Criteria window and left-click the + icon once.

    Create and Run a Back Test

  6. The Add Criteria window will display:

    Create and Run a Back Test

  7. At this point, you can start typing the name of the entry criteria you are wanting to add or manually locate it from the list provided. Once you have located the desired scan, left-click on it once to add it.

  8. The entry scan is now displayed. To adjust any of the parameters of the scan, left-click on it once and each component will be displayed. As you roll your mouse over each scanning component it will expand to display the individual parameters that you can then adjust.

    Create and Run a Back Test

  9. If the scan you wish to add is not displayed in the list of pre-computed scans, then in Optuma it is possible to create your own custom scan through the Script Editor. To access the Script Editor, first left-click on the + icon from the Scan Criteria window. When the Add Criteria window displays, left-click on the New button as highlighted in the image below.

    Create and Run a Back Test

  10. The Script Editor window now displays. The Script Editor allows you to create your own unique scan by entering the formula directly. After you have entered the desired formula you will need to set the Script Name and then click on Save to make sure your new criteria is available for future tests. Once you have saved the new criteria left-click on OK.

    Create and Run a Back Test

  11. The Criteria will be added to the Entry Criteria window. If there are additional criteria you wish to use in the test, repeat Steps 3 to 8.

  12. Nominating Long or Short testing. By default, all testing criteria will be set as “Long”. However, if you want to alter your testing criteria to “Short” you can do this by left-clicking the fx icon that is displayed for each criteria, as displayed in the image below:

    Create and Run a Back Test

    This displays the Script Editor where you can then select either Long or Short. Once you have selected the desired type, then click OK.

    Create and Run a Back Test

  13. Once you have completed the Entry Criteria you will then need to set your Exit Criteria. To do this go to the Exit Criteria window and left-click the + icon once.

    Create and Run a Back Test

  14. The Add Criteria window now displays and you can select your desired Exit calculation in the same manner the entry criteria was set. If the desired Exit criteria is not displayed, then as per the entry section you can left-click on the New button in the Add Criteria window as highlighted below. This will then display the Script Editor, where you can enter your custom Exit formula.

    Create and Run a Back Test

  15. Once you have selected your criteria it will be displayed in the Exit Criteria window as per the below image. If you want to view and alter any of the parameters of your Exit calculation, first left-click on the Exit criteria and each component will be displayed. As you roll your mouse over each scanning component it will expand to display the individual parameters that you can then adjust.

    Create and Run a Back Test

If there are additional criteria you wish to use in the test, repeat the process outlined in steps 11 and 12. As per the Entry Criteria, you change the type from Long or Short by left-clicking the fx icon as referenced in step 10.

  1. If you have any Stops that you would like to add to your strategy, this can be entered via the Stops section, by left-clicking the + icon once.

    Create and Run a Back Test

  2. The Add Criteria window now displays and you can select your desired Stop calculation in the same manner the Entry and Exit criteria was set. If the desired stop is not displayed, then as per the entry and exit sections you can left-click on the New button in the Add Criteria window as highlighted below. This will then display the Script Editor where you can enter your custom Stop formula.

    Create and Run a Back Test

  3. Once you have selected your criteria it will be displayed in the Stops window as per the below image. If you want to view and alter any of the parameters of your stop calculation, first left-click on the Stop entry and the parameters will then be displayed for adjustment.

    Create and Run a Back Test

    If there are additional Stop criteria you wish to use in the test, repeat the process outlined in steps 14 and 15.

  4. It is also possible to set Target calculations for your Back Test, to do this left-click the + icon once in the Targets section of the Back Tester.

    Create and Run a Back Test

  5. The Add Criteria window now displays and you can select your desired Target calculation in the same manner the Entry and Exit criteria was set. If the desired Target is not displayed, then as per the entry and exit sections you can left-click on the New button in the Add Criteria window as highlighted below. This will then display the Script Editor where you can enter your custom Target formula.

    Create and Run a Back Test

  6. Once you have selected your criteria it will be displayed in the Targets window as per the below image. If you want to view and alter any of the parameters of your Target calculation, first left-click on the Target entry and the parameters will then be displayed for adjustment.

    Create and Run a Back Test

    If there are additional Target criteria you wish to use in the test, repeat the process outlined in steps 17 and 18.

  7. When the Setup, Entry and Exit criteria, and any Stops and Targets for the test have been entered, click the Test Strategy button to execute. To learn about the Results page, please see here.