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.
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.
Rename
Did you check off System.Text.Json in Tools/Assembly References?
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.
After updating to build 89, System.Text.Json in Tools/Assembly References was highlighted.
System.Text.Json is working fine at my end in with production build 89.
Try this strategy:
Output:
If it fails, please REMOVE WL8 using Windows Control Panel, download, and re-install.
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.
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.
Reinstallation helped. Thank you
Your Response
Post
Edit Post
Login is required