Show / Hide Table of Contents

Class OptimizerParam

Container holding optimizer parameter information, collected from the field/ property and the [OptimizerParam] attribute.

Inheritance
object
OptimizerParam
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Optimizer
Assembly: TuringTrader.Simulator.dll
Syntax
public class OptimizerParam

Constructors

| Edit this page View Source

OptimizerParam(IAlgorithm, string)

Construct and initialize new optimizer param for algorithm. This is for internal use by the optimizer and should not be called by user applications.

Declaration
public OptimizerParam(IAlgorithm algorithm, string name)
Parameters
Type Name Description
IAlgorithm algorithm

parent algorithm

string name

name of parameter

Properties

| Edit this page View Source

End

Ending value of optimizer parameter.

Declaration
public int End { get; set; }
Property Value
Type Description
int
| Edit this page View Source

IsEnabled

Flag indicating enabled status of optimizer parameter.

Declaration
public bool IsEnabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Name

Name of optimizer parameter.

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

Start

Starting value of optimizer parameter.

Declaration
public int Start { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Step

Step size of optimizer parameter.

Declaration
public int Step { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Value

Current value of optimizer parameter.

Declaration
public int Value { get; set; }
Property Value
Type Description
int

Methods

| Edit this page View Source

GetParams(IAlgorithm)

Retrieve all optimizable parameters for algorithm.

Declaration
public static IEnumerable<OptimizerParam> GetParams(IAlgorithm algo)
Parameters
Type Name Description
IAlgorithm algo

input algorithm

Returns
Type Description
IEnumerable<OptimizerParam>

optimizable parameters

  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com