- ago
Test code:
CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Indicators; using System.Drawing; using System.Collections.Generic; using WealthLab.Community; namespace WealthScript3 { 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) {          low = bars.Low;          // Swing Low          swLow = new SwingLo(low, 5, 0, 5, 0, 1E-06, true, false, false, true);          PlotTimeSeriesLine(swLow, swLow.Description, "Price", Color.OliveDrab, 1, LineStyles.Dotted);       }       //execute the strategy rules here, this is executed once for each bar in the backtest history       public override void Execute(BarHistory bars, int idx)       {       }       //declare private variables below       private TimeSeries low, swLow; } }


Expected plot description to show parameters used but instead it shows the default values as used in Drag&Drop:


Didn't test if the companion indicators are also affected.
Hope this gets fixed in the next build.
0
251
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
This is a bug in the indicators' constructor. Fixed SwingLo, SwingHi and SwingHiLo. Look forward to Build 13 and thanks for the heads-up.
1
Best Answer
- ago
#2
👍
0

Reply

Bookmark

Sort