Class ExtensionMethods
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Collection of helper extension methods
public static class ExtensionMethods
- Inheritance
-
ExtensionMethods
- Inherited Members
Methods
EventStudyReport(Strategy)
Exports event study report with default settings.
public static void EventStudyReport(this Strategy strategy)
Parameters
strategy
Strategy
EventStudyReport(Strategy, int, bool, params int[])
Exports event study report using the specified parameters.
public static void EventStudyReport(this Strategy strategy, int blackout, bool suppressDetail, params int[] horizons)
Parameters
EventStudyReport(Strategy, params int[])
Exports event study report using the specified horizons.
public static void EventStudyReport(this Strategy strategy, params int[] horizons)
Parameters
SetProperties(MoneyManager, VariableDictionary)
Sets the money manager's properties using the values found in the specified dictionary.
public static void SetProperties(this MoneyManager mm, VariableDictionary vd)
Parameters
SetProperties(Strategy, VariableDictionary)
Sets the strategy's properties using the values found in the specified dictionary.
public static void SetProperties(this Strategy strat, VariableDictionary vd)
Parameters
strat
Strategyvd
VariableDictionary
ToDateSeries(IEnumerable<DateTime>)
Converts the specified enumerable of dates to a DateSeries.
public static DateSeries ToDateSeries(this IEnumerable<DateTime> dates)
Parameters
dates
IEnumerable<DateTime>
Returns
Exceptions
ToTradeStatsCollection(IEnumerable<TradeStats>)
Converts the specified enumerable of trade stats to a TradeStatsCollection object.
public static TradeStatsCollection ToTradeStatsCollection(this IEnumerable<TradeStats> tradeStats)
Parameters
tradeStats
IEnumerable<TradeStats>