- ago
I have placed the .DLL for this library in the directory
QUOTE:
C:\Program Files\Quantacula, LLC\WealthLab 8


but it does not show up in Assemblies. What am I doing wrong?
0
154
9 Replies

Reply

Bookmark

Sort
Cone8
 ( 4.34% )
- ago
#1
Assuming you already restarted WL, probably the dll is "Blocked" for security due to being downloaded from the internet. You can clear the lock by one of two methods:

1. Move the file to a pen drive and then back to the WL folder, or,
2. Move the file to your desktop, right click > Properties > General tab > Security > check "Unblock".... and then move it back to the WL folder

---
Update - I wasn't able to get it to work either, so sorry I couldn't help!
0
- ago
#2
Thanks Cone!

Perhaps someone else has figured out the "magic" required to make it work with WL8.
0
- ago
#3
QUOTE:
does not show up in Assemblies


If you talk about WL->Tools->Assembly References then the simple answer is:
A DLL copied to WL's installation folder does not show up here.

You see such an assembly (like MathNet.Numerics.DLL) by just using it in a C# coded strategy like so:

CODE:
using System; using WealthLab.Core; using WealthLab.Backtest; using MathNet.Numerics; // use MathNet.Numerics.dll namespace WealthScript1 { public class MyStrategy : UserStrategyBase { public override void Initialize(BarHistory bars) {          // access something in MathNet.Numerics          double e = MathNet.Numerics.Constants.E; } ...
0
- ago
#4
If you are referencing Math.NET directly from WL strategy code, then follow Post #3.

I have a policy to never introduce foreign datatypes into another application. For example, I want to avoid referencing Math.NET Vector and Matrix datatypes in WL strategy code; therefore, I reference Math.NET calls only through local VS code libraries so my WL strategy code stays clean and native to WL. You might want to do the same; this helps avoid confusion with foreign library updates. And honestly, my local code libraries don't change that much (although my WL strategy code does).

Here's the setup I use for Visual Studio.
0
- ago
#5
Thanks Guys for the info! That solves my problem. Now I can move on with more code translation. 😁

superticker, I am using version 5.0.0 also, so if it is working for you it should work for me.
1
- ago
#6
QUOTE:
superticker, I am using version 5.0.0 also

Be sure to install the netstandard2.0 build of MathNet.Numerics.dll so it's compatible with .NET 8.0 and above. The other builds are for the earlier .NET frameworks.
0
- ago
#7
superticker,

Info much appreciated! I had DLed the wrong build. I will get the right one now. 👍
1
- ago
#8
Please note:
The MathNet.Numerics DLL comes with various finantic extensions.
So, before you download this DLL please make sure it is not already present in WL's installation folder.
0
- ago
#9
DrKoch,

Thanks for the "Heads up!"
0

Reply

Bookmark

Sort