Class LookbackGroup.Lookback
Simple lookback class
Inherited Members
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public abstract class LookbackGroup.Lookback
Constructors
| Edit this page View SourceLookback(double)
Create and initialize new loockback object.
Declaration
protected Lookback(double init)
Parameters
Type | Name | Description |
---|---|---|
double | init |
Fields
| Edit this page View Sourcevalues
List of historical values.
Declaration
protected List<double> values
Field Value
Type | Description |
---|---|
List<double> |
Properties
| Edit this page View Sourcethis[int]
Retrieve value from lookback.
Declaration
public double this[int offset] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | offset | lookback offset, 0 is current, 1 is previous |
Property Value
Type | Description |
---|---|
double | value at time offset |
Value
Get or set the current value of lookback.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
double |
Operators
| Edit this page View Sourceimplicit operator double(Lookback)
Get the current value of lookback.
Declaration
public static implicit operator double(LookbackGroup.Lookback s)
Parameters
Type | Name | Description |
---|---|---|
LookbackGroup.Lookback | s |
Returns
Type | Description |
---|---|
double |