Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
6 | using HeuristicLab.Core;
|
---|
7 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
8 | using HeuristicLab.Common;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.Problems.TradeRules
|
---|
11 | {
|
---|
12 | [StorableClass]
|
---|
13 | [Item("MACD", "Symbol that represents the MACD indicator.")]
|
---|
14 | public sealed class MACD : Symbol
|
---|
15 | {
|
---|
16 | private const int minimumArity = 3;
|
---|
17 | private const int maximumArity = 3;
|
---|
18 |
|
---|
19 | public override int MinimumArity
|
---|
20 | {
|
---|
21 | get { return minimumArity; }
|
---|
22 | }
|
---|
23 | public override int MaximumArity
|
---|
24 | {
|
---|
25 | get { return maximumArity; }
|
---|
26 | }
|
---|
27 |
|
---|
28 | [StorableConstructor]
|
---|
29 | private MACD(bool deserializing) : base(deserializing) { }
|
---|
30 | private MACD(MACD original, Cloner cloner)
|
---|
31 | : base(original, cloner)
|
---|
32 | {
|
---|
33 | }
|
---|
34 | public MACD()
|
---|
35 | : base("MACD", "Represents a MACD indicator.")
|
---|
36 | {
|
---|
37 | }
|
---|
38 |
|
---|
39 | public override IDeepCloneable Clone(Cloner cloner)
|
---|
40 | {
|
---|
41 | return new MACD(this, cloner);
|
---|
42 | }
|
---|
43 |
|
---|
44 |
|
---|
45 | }
|
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.