i am unable to access the above in WL 8
I get :
Compiled at 9/18/2023 13:57:20
20: The type or namespace name 'EventDataPoint' could not be found (are you missing a using directive or an assembly reference?)
No problem in WL 7. I have the data it seems available in the Data manager
any ideas ?
I get :
Compiled at 9/18/2023 13:57:20
20: The type or namespace name 'EventDataPoint' could not be found (are you missing a using directive or an assembly reference?)
No problem in WL 7. I have the data it seems available in the Data manager
any ideas ?
Rename
Add this clause:
We'll fix the QuickRef examples.
CODE:
using WealthLab.Data;
We'll fix the QuickRef examples.
This code - and even the sample code creates the error:
Compiled at 9/18/2023 14:33:51
24: 'Fundamental' is a namespace but is used like a type
14: 'Fundamental' is a namespace but is used like a type
Compiled at 9/18/2023 14:33:51
24: 'Fundamental' is a namespace but is used like a type
14: 'Fundamental' is a namespace but is used like a type
Hi Kelly, which specific example are you referring to? Here's one of the QuickRef examples, are you having problems running this one?
CODE:
using WealthLab.Backtest; using WealthLab.Core; using WealthLab.Data; using System.Drawing; namespace WealthScript2 { public class MyStrategy1 : UserStrategyBase { //create indicators and other objects here, this is executed prior to the main trading loop public override void Initialize(BarHistory bars) { if (bars.EventDataPoints.Count > 0) { EventDataPoint fdp = bars.EventDataPoints[bars.EventDataPoints.Count - 1]; DrawHeaderText("The most recent event item is a " + fdp.ItemName + " reported on " + fdp.Date.ToShortDateString(), WLColor.Black, 18); } } //execute the strategy rules here, this is executed once for each bar in the backtest history public override void Execute(BarHistory bars, int idx) { } } }
The library fixed the issue. This library, if it existed, was not required in WL 7 but is in WL 8 if you want to use. eventdatapoint. Thank you!
Your Response
Post
Edit Post
Login is required