Namespace: WealthLab.Core
Parent: Object

A static class that converts BarHistory data into a Heikin-Ashi version.

public static BarHistory Convert(BarHistory bars)

Converts the BarHistory instanced passed in bars to the transformed Heikin-Ashi version. For more information on how Heikin-Ashi histories are calculated, see the Wikipedia entry.

Example Code
using WealthLab.Backtest;
using WealthLab.Core;

namespace WealthScript1
	public class MyStrategy : UserStrategyBase
		public override void Initialize(BarHistory bars)
			BarHistory hk = HeikinAshi.Convert(bars);
			PlotBarHistory(hk, "HK");

		public override void Execute(BarHistory bars, int idx)