GetFundamentalNames

Modified on 2014/08/29 10:15 by Eugene — Categorized as: Community Components

Syntax


public static List<string> GetFundamentalNames(this Bars bars);

Parameter Description

barsA Bars object

Description

Returns the list of all unique fundamental names by all installed fundamental providers present in the current symbol's data at any date. Use GetNextFundamentalItem / GetNextFundamentalItem to verify data availability at a specific bar.

Example


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { List<string> fList = new List<string>(); fList = Bars.GetFundamentalNames(); int bar = 0; foreach (string fName in fList) { try { FundamentalItem fi = GetNextFundamentalItem(bar, Bars.Symbol, fName); PrintDebug("first "+fName+" report " + fi.Date.ToShortDateString() + ": " + fi.Value.ToString("$#,0") + " (millions)"); } catch { PrintDebug(fName+": not available at bar " + bar.ToString()); } } } } }