- ago
When I use TimeSeriesSynchronizer.Synchronize it drops the original description on the TimeSeries. Is this intentional or a bug?

CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Indicators; using System.Drawing; using System.Collections.Generic; namespace WealthScript5 { 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) {          TimeSeries tsSynched = TimeSeriesSynchronizer.Synchronize(bars.High, bars.Close);          WriteToDebugLog(string.Concat("High: ", bars.High.Description));          WriteToDebugLog(string.Concat("Synched: ", tsSynched.Description));       } //execute the strategy rules here, this is executed once for each bar in the backtest history public override void Execute(BarHistory bars, int idx) { if (!HasOpenPosition(bars, PositionType.Long)) { //code your buy conditions here } else { //code your sell conditions here } } //declare private variables below } }
0
272
Solved
2 Replies

Reply

Bookmark

Sort
Glitch7
 ( 89.64% )
- ago
#1
It's not intentional, I just fixed it for WL8, release tomorrow.
0
Best Answer
- ago
#2
Thanks.
0

Reply

Bookmark

Sort