The period parameters passed into the KVO indicator are totally ignored. I change them, but they always show "34, 55" on the Chart for the KVO indicator. What's going on? I'm running WL8 Build 39.
CODE:
using WealthLab.Backtest; using WealthLab.Core; using WealthLab.Indicators; namespace WealthScript3 { public class KvoTest : UserStrategyBase { public KvoTest() { period1 = AddParameter("Period1", ParameterType.Int32, 34, 2, 60); period2 = AddParameter("Period2", ParameterType.Int32, 55, 2, 80); } public override void Initialize(BarHistory bars) { ema = new EMA(bars.Close, period1.AsInt); kvo = new KVO(bars, period1.AsInt, period2.AsInt); WriteToDebugLog(period1.AsInt + " " + period2.AsInt); PlotIndicator(kvo); PlotIndicator(ema); } public override void Execute(BarHistory bars, int idx) { } Parameter period1, period2; IndicatorBase ema,kvo; } }
Rename
I see the bug, thanks for the heads-up. Fixed for B40.
Your Response
Post
Edit Post
Login is required