Strategy Parameters Object in Visual C#
Author: Ben_Zurich
Creation Date: 6/11/2012 4:05 AM
profile picture

Ben_Zurich

#1
Which object is holding the most recently used strategy parameters ?


In order to explain that question further:

I open a strategy from my own strategies library (dll). In the lower left corner I see the strategy parameters with their default values. These have been supplied from the code by means of the method CreateParameter(...). Now let's say I have changed one of the strategy parameters by clicking in one of the sliders and its value and the chart itself has changed. How can I access the new value of this particular strategy parameter within my Execute() code ?
profile picture

Eugene

#2
Visual C#, SharpDevelop, or Wealth-Lab's Editor - it's all the same. For the necessary properties, check out the WealthScript Programming Guide, Programming Trading Strategies > Strategy Parameters, Step 3.
profile picture

Ben_Zurich

#3
I'm sorry this was a silly question. The changes are reflected in the StrategyParameter instances.
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).