![]() | Pattern Class |
Namespace: MZpack.NT8.Algo
public class Pattern : ViewModelBase, ICloneable
The Pattern type exposes the following members.
Name | Description | |
---|---|---|
![]() | Pattern | Initializes a new instance of the Pattern class |
![]() | Pattern(Strategy, Logic, Range, Boolean) |
Creates a new instance of the Pattern class containing signals tree.
|
![]() | Pattern(Strategy, Logic, Range, Logic, Range, Boolean) |
Creates a new instance of the Pattern class containing signals and filters trees.
|
Name | Description | |
---|---|---|
![]() | AllowedDirection |
Allowed direction of the pattern. Default value is SignalDirection.Any. Use it to optimize calculation of signals and filters.
|
![]() | Direction |
Resulting direction of the pattern.
|
![]() | Filters |
Filters logical tree for entering position.
|
![]() | IsEntryPattern |
True if the pattern is an entry pattern. False if the pattern is an exit pattern.
|
![]() | Signals |
Signals logical tree for entering position.
|
![]() | Strategy |
Parent strategy.
|
Name | Description | |
---|---|---|
![]() | Clone | |
![]() | GetEntryPrice |
Returns entry/exit price of the validated pattern.
|
![]() | ToLegendView |
Pattern pattern = new Pattern(Strategy, Logic.And, // Logic for root node of signals tree new Range() { Bars = 3, Ticks = 5 }, // Range for signals (0 = no range limit) Logic.And, // Logic for root node of filters tree new Range() { Bars = 5 }, // Range for filters true); // Short-cuircit for AND evaluation pattern.AllowedDirection = SignalDirection.Any; // Set allowed direction