Identify if strategy run on single symbol or full DataSet
Author: sburgener
Creation Date: 11/9/2012 5:24 AM
profile picture

sburgener

#1
Hi,

I'd like to identify whether a strategy is run on a single symbol only or on the full DataSet.

The reason for the latter is the following:
My Execute() routine triggers some pop-up boxes. So far I only trigger those when the strategy is run on the first symbol of the DataSet (the strategy has to be run on the full DataSet, it is not designed for single symbols). However, when I now click on the first symbol (in the relevant DataSet) in order to get the chart displayed, this triggers my pop-up boxes again, which is a bit annoying.

As my pop-up boxes allow the user to enter additional inputs, needed in the strategy, I would like to have those triggered only when I hit the button Backtest on all Symbols in XXX in the DataSet tab, but not when I click on any of the symbols in the strategy.

Any hints?

Thanks!
profile picture

Eugene

#2
Hi,

Check this out:

FAQ | Strategies and WealthScript > WealthScript > Is there a way to detect within my Strategy if it is executed in Multi-Symbol Backtest mode?

Hope that helps.
profile picture

sburgener

#3
Thanks for the helpful post and sorry for the late reply, got caught off on a few other things.

It did help, I had to use a work-around though, but was more or less able to do what I wanted.
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).