Log in to see Cloud of Tags

Wealth-Lab Wiki

GetFundamentalNames

RSS

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()); } } } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.