Using strategy to run multiple Strategies programmatically
Author: fastrade
Creation Date: 12/22/2009 6:54 PM
profile picture

fastrade

#1
it is possible to use a vb script to sequentially run a strategy on different datasets? if so are there any examples available? TIA
profile picture

Eugene

#2
WLD/P 5 is a managed .NET application, so I'm at a loss how VBScript could help you.

Re: running a Strategy on different DataSets, I can think of an unsupported way. Here's how:

1) Download the source of Community.Components. Open Utility.cs and review the methods grouped under "Portfolio equity interaction support functions" region. You're interested in the TradingSystemExecutor object. Essentially, this stuff is a wrapper on top of TradingSystemExecutor that provides convenient access and utility functions.
2) WealthScript Techniques | Interacting Dynamically with Portfolio Level Equity will show how to execute the method. You're interested in the LoadStrategyFromDisk and runDonor methods.
profile picture

Eugene

#3
The preferred and way more convenient way of doing it is simply use Strategy Monitor. btw, why would you want VBScript or something like that?
profile picture

mike333

#4
LoadStrategyFromDisk function generates exception in the line -- WealthScript ws = compiler.CompileSource("");
Exception message: Empty path is unacceptable (direct translation from german). It necessary to define the reference calling CompileSource
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).