// below this line: // add this line:
Bars idx = GetExternalSymbol("DataSet Name", "Index symbol", true);
/* Example: */Position p = LastPosition; // Position to splitPosition sp = SplitPosition(p, 49.99); // The new Positionsp.Priority = p.Priority; // Assign the same Priority as the original Position
public DataSeries FDSeriesAnnual(string symbol, string item, int offset){int bar = Bars.Count - 1; DataSeries result = FundamentalDataSeriesAnnual(symbol, item, offset);int fq = (int)GetFundamentalItem(bar, symbol, "fiscal quarter").Value;while (fq == 4 && bar > 0){resultbar = FundamentalDataSeries(symbol, item, 4, false, offset * 4)bar; bar--;fq = (int)GetFundamentalItem(bar, symbol, "fiscal quarter").Value;}return result;}
string eps = "earnings per share";//Replace this://PlotSeries(FundPane,FundamentalDataSeriesAnnual(eps, 0), Color.DeepPink, LineStyle.Solid, 2);//With this:PlotSeries(FundPane,FundamentalDataSeries(eps, 4, false, 0), Color.DeepPink, LineStyle.Solid, 2);
for(int bar = 0; bar < Bars.Count; bar++){if (Closebar < 2100000)DrawCircle(PricePane, 9, bar, Closebar+ 0.05, Color.Empty, Color.Green, WealthLab.LineStyle.Solid, 1, true);}
Error processing symbol XXX Unable to cast object of type 'WealthLab.DataSeries' to type 'WealthLab.Indicators.IndicatorName'
//DataSeries stochd = StochD.Series(Bars,period,smooth);DataSeries stochd = SMA.Series( StochK.Series(Bars,period), smooth);
DataSeries PctR = WilliamsR.Series( Bars, 14 );PctR *= -1;