- ago
Hello!

After updating to version 89, the program stopped working. During execution it gives the following error:



On version 88 everything worked well.

Please help me solve this problem.
0
452
Solved
5 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.53% )
- ago
#1
Did you check off System.Text.Json in Tools/Assembly References?
0
- ago
#2
System.Text.Json in Tools/Assembly References I noted approximately 03/06/2024-03/10/2024.

After updating to build 89, System.Text.Json in Tools/Assembly References was highlighted.
0
Glitch8
 ( 12.53% )
- ago
#3
System.Text.Json is working fine at my end in with production build 89.

Try this strategy:

CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Data; using WealthLab.Indicators; using System.Collections.Generic; using System.Text.Json; namespace WealthScript1 { 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) {          string s = JsonSerializer.Serialize(bars.Scale);          WriteToDebugLog(s); } //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 } }


Output:

CODE:
---Symbol by Symbol Debug Logs--- ---SPY--- {"Frequency":0,"Interval":1,"FilterPrePost":false,"Description":"Daily","Abbreviation":"(D)","IsIntraday":false,"UsesIntervalForSort":false,"IsTickBased":false,"IsTimeBased":true}


If it fails, please REMOVE WL8 using Windows Control Panel, download, and re-install.
1
Best Answer
- ago
#4
Yes Denis, your strategy's status line stalled at the characteristic "Updating visualizers..." step. As we know, visualizers were unfortunately broken in B89. So Dion's suggestion in Post #3 should help.
1
- ago
#5
Reinstallation helped. Thank you
0

Reply

Bookmark

Sort