The GannSwing indicator returns NaN for every bar. It's kind of boring. I was expecting something more. I'm running PowerPack Build 23 on WL8 Build 39.
CODE:
using WealthLab.Backtest; using WealthLab.Core; using WealthLab.PowerPack; namespace WealthScript4 { public class MyStrategy : UserStrategyBase { //create indicators and other objects here, this is executed prior to the main trading loop public override void Initialize(BarHistory bars) { indicator = new GannSwing(bars,true); for (int bar = 0; bar < bars.Count; bar++) WriteToDebugLog(bar.ToString("# ") + indicator[bar]); PlotIndicator(indicator); } public override void Execute(BarHistory bars, int idx) { } private GannSwing indicator; } }
Rename
Just squashed this bug for PowerPack B24.
Your Response
Post
Edit Post
Login is required