Free cookie consent management tool by TermsFeed Policy Generator

source: branches/sluengo/HeuristicLab.Problems.TradeRules/Symbols/MACD.cs @ 9356

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