Class LookbackGroup.Lookback
Simple lookback class
Inheritance
object
LookbackGroup.Lookback
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public abstract class LookbackGroup.Lookback
Constructors
| Improve this Doc View SourceLookback(double)
Create and initialize new loockback object.
Declaration
protected Lookback(double init)
Parameters
Type | Name | Description |
---|---|---|
double | init |
Fields
| Improve this Doc View Sourcevalues
List of historical values.
Declaration
protected List<double> values
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<T><double> |
Properties
| Improve this Doc 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
| Improve this Doc 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 |