예제 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="tickerData">Ticker data for the indicator</param>
 /// <param name="factory">Factory to create the dependent runnables</param>
 public Bollinger(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     Upper  = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Middle = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Lower  = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #2
0
 public FibonacciZones(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     Zone38 = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Zone50 = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Zone62 = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #3
0
 public Trend(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     UpTrend       = Enumerable.Repeat(false, Data.NumBars).ToList();
     DownTrend     = Enumerable.Repeat(false, Data.NumBars).ToList();
     UpTrendPlot   = Enumerable.Repeat(0d, Data.NumBars).ToList();
     DownTrendPlot = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #4
0
 public StochasticsFast(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     D    = Enumerable.Repeat(0d, Data.NumBars).ToList();
     K    = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _den = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _nom = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #5
0
 public Trix(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     Default    = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Signal     = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _firstEma  = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _secondEma = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _tripleEma = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #6
0
 public Macd(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     Value    = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Avg      = Enumerable.Repeat(0d, Data.NumBars).ToList();
     Diff     = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _slowEma = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _fastEma = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #7
0
 public PriceOscillator(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     Value      = Enumerable.Repeat(0d, Data.NumBars).ToList();
     smoothEma  = Enumerable.Repeat(0d, Data.NumBars).ToList();
     smoothDiff = Enumerable.Repeat(0d, Data.NumBars).ToList();
     fastEma    = Enumerable.Repeat(0d, Data.NumBars).ToList();
     slowEma    = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #8
0
 public BressertTimingBands(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     HighCycle     = Enumerable.Repeat(false, Data.NumBars).ToList();
     HighCycleAvg  = Enumerable.Repeat(0, Data.NumBars).ToList();
     LowCycle      = Enumerable.Repeat(false, Data.NumBars).ToList();
     LowCycleAvg   = Enumerable.Repeat(0, Data.NumBars).ToList();
     HighCyclePlot = Enumerable.Repeat(0d, Data.NumBars).ToList();
     LowCyclePlot  = Enumerable.Repeat(0d, Data.NumBars).ToList();
 }
예제 #9
0
 /// <summary>
 /// Construct the class and initialize the bar data to default values.
 /// </summary>
 /// <param name="tickerData">Ticker for the strategy</param>
 /// <param name="factory">Factory for creating dependents</param>
 public ComboStrategy(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _minComboSize         = Simulator.Config.ComboMinComboSize;
     _maxComboSize         = Simulator.Config.ComboMaxComboSize;
     _maxBarsOpen          = Simulator.Config.ComboMaxBarsOpen;
     _comboLeewayBars      = Simulator.Config.ComboLeewayBars;
     _minPercentForBuy     = Simulator.Config.ComboPercentForBuy;
     _sizeOfOrder          = Simulator.Config.ComboSizeOfOrder;
     _stopPercent          = Simulator.Config.ComboStopPercent;
     _namePrefix           = "";
     _matchHigherTimeframe = false;
 }
 public BullMomentumCrossoverPredicted(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #11
0
 public BearStochasticsCrossoverPredicted(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #12
0
 public BullSmaCrossover(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
 public BearMomentumCrossover(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #14
0
 public BearTrixSignalCrossoverPredicted(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #15
0
 public DownsideTasukiGapFound(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #16
0
 public MorningStar(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #17
0
 public Momentum(TickerData tickerData, RunnableFactory factory, int period)
     : base(tickerData, factory)
 {
     Value   = Enumerable.Repeat(0d, Data.NumBars).ToList();
     _period = period;
 }
 public BullTrixZeroCrossoverPredicted(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #19
0
 public BullDtOscillator(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #20
0
 public HangingMan(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #21
0
 public BearBeltHold(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
 public BearEngulfingFound(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
 public BearBollingerExtended(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #24
0
 public HammerFound(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #25
0
 public BearDmi(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #26
0
 public BearBeltHoldFound(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
     _orderType = Order.OrderType.Short;
 }
예제 #27
0
 public DarkCloudCover(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #28
0
 public BullEngulfing(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #29
0
 public BearHaramiCross(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }
예제 #30
0
 public PiercingLine(TickerData tickerData, RunnableFactory factory)
     : base(tickerData, factory)
 {
 }