- ago
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 ?

0
314
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
Add this clause:
CODE:
using WealthLab.Data;

We'll fix the QuickRef examples.
1
Best Answer
- ago
#2
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


0
Glitch8
 ( 10.62% )
- ago
#3
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)       {       }    } }
0
- ago
#4
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!
0

Reply

Bookmark

Sort