GetFloat

Modified on 2017/12/01 09:56 by Eugene — Categorized as: Community Components

Syntax

public static long GetFloat(this string symbol)

public long GetFloat( string symbol )


Parameter Description

symbolThe symbol (ticker) of a stock

Description

Returns how many float shares of a stock are available, according to Morningstar

Example

Example using C# extension methods:

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

namespace WealthLab.Strategies { public class ExchangeDemo : WealthScript { protected override void Execute() { PrintDebug( Bars.Symbol.GetFloat() ); } } }


Legacy syntax example:

using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/

namespace WealthLab.Strategies { public class ExchangeDemo : WealthScript { protected override void Execute() { Community.Components.Utility u = new Community.Components.Utility(this); PrintDebug( u.GetFloat( Bars.Symbol ) ); } } }