/// <summary>
 /// Plots the value of each indicator on the chart
 /// </summary>
 /// <param name="chart">The chart's name</param>
 /// <param name="first">The first indicator to plot</param>
 /// <param name="second">The second indicator to plot</param>
 /// <param name="third">The third indicator to plot</param>
 /// <param name="fourth">The fourth indicator to plot</param>
 /// <seealso cref="Plot(string,string,decimal)"/>
 public void Plot(string chart, TradeBarIndicator first, TradeBarIndicator second = null, TradeBarIndicator third = null, TradeBarIndicator fourth = null)
 {
     Plot(chart, new[] { first, second, third, fourth }.Where(x => x != null).ToArray());
 }
Beispiel #2
0
 /// <summary>
 /// Automatically plots each indicator when a new value is available, optionally waiting for indicator.IsReady to return true
 /// </summary>
 public void PlotIndicator(string chart, bool waitForReady, TradeBarIndicator first, TradeBarIndicator second = null, TradeBarIndicator third = null, TradeBarIndicator fourth = null)
 {
     PlotIndicator(chart, waitForReady, new[] { first, second, third, fourth }.Where(x => x != null).ToArray());
 }
 private static void RunTestIndicator(TradeBarIndicator indicator)
 {
     TestHelper.TestIndicator(indicator, "frama.txt", "Filt", (actual, expected) => {AssertResult(expected, actual.Current.Value);});
 }
 private static void RunTestIndicator(TradeBarIndicator indicator)
 {
     TestHelper.TestIndicator(indicator, "spy_natr.txt", "NATR_5", (ind, expected) => Assert.AreEqual(expected, (double)ind.Current.Value, 1e-3));
 }
 private static void RunTestIndicator(TradeBarIndicator indicator)
 {
     TestHelper.TestIndicator(indicator, "spy_natr.txt", "NATR_5", (ind, expected) => Assert.AreEqual(expected, (double)ind.Current.Value, 1e-3));
 }
Beispiel #6
0
 private static void RunTestIndicator(TradeBarIndicator indicator)
 {
     TestHelper.TestIndicator(indicator, "frama.txt", "Filt", (actual, expected) => { AssertResult(expected, actual.Current.Value); });
 }