protected override void Initialize() { Name = "Double MA"; Add(new Plot(new Pen(Color.Blue, 4), PlotStyle.Line, "DoubleMA")); Overlay = true; signal = new IntSeries(this); }
/// <summary> /// This method is used to configure the indicator and is called once before any bar data is loaded. /// </summary> protected override void Initialize() { Add(new Plot(Color.Gray, PlotStyle.Line, "ADXVMA")); Overlay = true; PriceTypeSupported = false; PlotsConfigurable = false; up = new DataSeries(this); down = new DataSeries(this); ups = new DataSeries(this); downs = new DataSeries(this); index = new DataSeries(this); trend = new IntSeries(this); }
/// <summary> /// This method is used to configure the indicator and is called once before any bar data is loaded. /// </summary> protected override void Initialize() { //CalculateOnBarClose = false; Overlay = true; PriceTypeSupported = false; barCount = new IntSeries(this); newBar = new BoolSeries(this); newSession = new BoolSeries(this); nullDate = new DateTime(0, DateTimeKind.Unspecified); tgtTime = nullDate; sessionTime = nullDate; volumeCount = 0; }
protected override void Initialize() { Add(new Plot(Color.Transparent, PlotStyle.Line, "HAOpen")); Add(new Plot(Color.Transparent, PlotStyle.Line, "HAHigh")); Add(new Plot(Color.Transparent, PlotStyle.Line, "HALow")); Add(new Plot(Color.Transparent, PlotStyle.Line, "HAClose")); ModVal = new DataSeries(this, MaximumBarsLookBack.Infinite); Direction = new IntSeries(this, MaximumBarsLookBack.Infinite); PaintPriceMarkers = false; CalculateOnBarClose = false; Overlay = false; PriceTypeSupported = false; PlotsConfigurable = false; }
protected override void OnInit() { Add(new OutputDescriptor(new Pen(this.Color_1, this.LineWidth_1), OutputSerieDrawStyle.Line, "MA_1")); Add(new OutputDescriptor(new Pen(this.Color_2, this.LineWidth_2), OutputSerieDrawStyle.Line, "MA_2")); Add(new OutputDescriptor(new Pen(this.Color_3, this.LineWidth_3), OutputSerieDrawStyle.Line, "MA_3")); Add(new OutputDescriptor(new Pen(this.Color_4, this.LineWidth_4), OutputSerieDrawStyle.Line, "MA_4")); Add(new OutputDescriptor(new Pen(this.Color_5, this.LineWidth_5), OutputSerieDrawStyle.Line, "MA_5")); Add(new OutputDescriptor(new Pen(this.Color_6, this.LineWidth_6), OutputSerieDrawStyle.Line, "MA_6")); CalculateOnClosedBar = false; IsOverlay = true; this.RequiredBarsCount = 200; _signals = new IntSeries(this); _days = new IntSeries(this); _percent = new DataSeries(this); }
protected override void OnStartUp() { // init data series upTradeVol = new DataSeries(this); dnTradeVol = new DataSeries(this); upTradeCount = new IntSeries(this); dnTradeCount = new IntSeries(this); firstTick = true; // init BidAsk mode vars lastBid = -1; lastAsk = -1; // init UpDnTick mode vars lastBar = -1; uptick = true; prevClose = -1; prevVol = 0; // store off the TickSize myTickSize = TickSize; // initialize bundling stuff if (bundleTrades) { timeSinceUpVol = new System.Diagnostics.Stopwatch(); timeSinceDnVol = new System.Diagnostics.Stopwatch(); storedUpVol = 0; storedDnVol = 0; storedUpTicks = 0; storedDnTicks = 0; summedUpTradePrice = 0; summedDnTradePrice = 0; upTradeComponents = 0; upTradeAvgPrice = -1; upTradeSize = 0; dnTradeComponents = 0; dnTradeAvgPrice = -1; dnTradeSize = 0; } }