Automatic Execution after a Parameter Change
Author: minourat
Creation Date: 8/2/2010 11:36 AM
profile picture

minourat

#1
Currently, a strategy starts executing whenever each parameter is changed. This feature is very annoying. When we want to change multiple parameters, we must wait for the completion of the execution for each parameter change. More serious case occurs when the strategy enters an infinite loop because of a bug. When the strategy is opened, its execution is automatically started, and we cannot modify the strategy until the execution stops. In this case, even if I press the ESC key, the execution often continues.

profile picture

Eugene

#2
Sorry, but a software or a feature can't please anyone. The majority who would tweak just one strategy parameter to analyze and only then proceed to another, finds its indispensable and useful.
profile picture

Sammy_G

#3
I find it annoying too, just as I do the fact that if I change from raw profit to Port Sim (or vice versa) the strategy starts executing.
profile picture

Cone

#4
Here's a trick for you. When you know that you want to arbitrarily change all the parameters that you've coded but don't want the script to run in between each change, click on the DataSet "folder", e.g. "Dow 30". When finished, click on the symbol of your choice.

99% of all scripts run within dozens of milliseconds, so executing immediately after changing parameters is what 99% of most everyone wants. It's the whole idea of the sliders... you can optimize indicators with your eyeballs while adjusting the parameters. On the other hand, when you're testing a whole DataSet, execution times are longer and you're not looking at a chart, so these are some of the reasons why it's the way it is. Believe or not, a lot of thought went into this!
profile picture

Sammy_G

#5
Neat trick, Cone! But only works when you are changing parameters, etc. When you switch from Raw Profit to Post Sim mode, it doesn't work as the execution starts immediately, and in a multi-symbol backtest that's a bit troublesome esp. as the Cancel button doesn't always seem to work (and why does the PortSim mode keep defaulting to Starting Capital of 1mil; I have set it to 100k many times, but every time I switch from RP to PS mode, there's the 1m value again).
profile picture

Eugene

#6
btw, sounds like on demand data update might be slowing your backtest runs. Disable it (File menu or Data Manager) if you haven't done so already and feel the difference.
profile picture

Eugene

#7
Re: Cancel - Escape key always works.
profile picture

Cone

#8
QUOTE:
why does the PortSim mode keep defaulting to Starting Capital of 1mil
Preferences (F12) > Advanced Options, uncheck the (5) boxes in the middle if you don't want the convenience of a Strategy recalled with its last-saved values.
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).