Better explanation of CreateParameter() ?
Author: zanek
Creation Date: 7/7/2009 12:32 PM
profile picture

zanek

#1
Hi,

I've looked through the WealthScript guide and it says this about CreateParameter():

CreateParameter(string name, double
value, double start, double stop, double
step);

The specified name appears next to the
slider in the Data Panel to identify the
parameter, value is the initial default
value for the Strategy Parameter, and
step controls the increments between
the start and stop minimum and
maximum bounds of the parameter.




However, I dont understand how for instance, when using CreateParameter() with an EMA or PPO, how all the parameters passed to the CreateParameter() constructor function correspond to the underlying indicator. What does the start and stop correspond to ? The start and stop of the period, timeframe,etc ? What about the step ?

Thanks for any help (I searched for more documentation on this but didnt find anything)
profile picture

Eugene

#2
CreateParameter is not used to pass all the parameters to "an EMA or PPO". The indicator knows nothing about the step, the start and stop, let alone the timeframe.

The whole purpose of the method is to define a single double or integer value to be used later in Strategy 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).