Assign StrategyParameter to variable
Author: Supersol
Creation Date: 9/4/2013 9:57 AM
profile picture

Supersol

#1
Hi,

havn´t found it in the FAQ or elsewhere. How can I assign a strategy parameter value to an ordinary variable, data typ integer?

e.g int new_variable = slider4; doesn´t work.

Thx.
profile picture

Eugene

#2
See the WealthScript Programming Guide > Programming Trading Strategies > Strategy Parameters > Step 3.
profile picture

Supersol

#3
Arrr., sure, so obvious, and I am using this constantly in my code.
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).