- ago
I have a custom indicator I've been using for a long time. The other day, I made a cosmetic edit to the code (text msg), saved it but it didn't work anymore. I finally deleted the indicator completely and recreated it, but it still won't run, despite the indicator appearing in Roaming > WealthLab8 > Indicators as [myIndName].cs (the code contained is intact) and appearing properly in the WL main window in Indicators > My Indicators folder.

I think I may have corrupted some companion files in my clumsy troubleshooting. I notice that the [myIndName].dll file was deleted from the Quantacula > WealthLab8 folder when I deleted the indicator. But the [myIndName].dll file has not been recreated in the WealthLab8 folder referenced above. I don't know if this is the cause or a symptom of it not running.

If there are associated files that keep track of all the indicators that I may have corrupted, can I delete them to recreate a clean version, or edit them?
0
341
21 Replies

Reply

Bookmark

Sort
- ago
#1
QUOTE:
the indicator appearing in Roaming > WealthLab8 > Indicators as [myIndName].cs

If it's a *.dll created by Visual Studio, it should be put in the WL8 install folder. So what's the error message?
0
- ago
#2
I'm not using Visual Studio. No error message. Just doesn't output any values.
0
- ago
#3
There's not enough information to troubleshoot anything.

I would suggest posting an abbreviated version of your indicator that still illustrates the problem so we can take a look at it. Even a simple "Hello world" indicator (perhaps return a TimeSeries of all ones) that illustrates the problem would work.

All my indicators are working, so it's not a WL core problem. It has to be something in your indicator code, which we don't have.
0
- ago
#4
The code was copied / pasted verbatim from the long-working indicator so it's not the code. It's something else.
0
Cone8
 ( 5.88% )
- ago
#5
1. Right click and Edit your Indicator from My Indicators
2. Compile > Compiled OK?
3. Click on the Chart view.. does it work?
4. If everything OK, click Save to My Indicators folder.
5. Restart WL (Administrator mode)
If there's still a problem, check the Log Viewer for errors.
0
- ago
#6
QUOTE:
2. Compile > Compiled OK?

Yes

QUOTE:
3. Click on the Chart view.. does it work?

No
0
Cone8
 ( 5.88% )
- ago
#7
Then you have a runtime error in your code somewhere. Nothing in the Log Viewer?
0
- ago
#8
QUOTE:
Nothing in the Log Viewer?

No

I restored the [indicator].cs file located in the Indicator folder from a backup and it worked. I did innocuous text edit on it and saved it, and it worked. Looks like it's running again. Thank you for your help!

One question: when / what generates the [indicator].dll file?

One note: The help documentation for creating an indicator (which is very helpful, btw) states that a custom indicator must be created and run in Admin mode. I have not found the latter to be the case. I run the custom indicator in non-Admin mode all the time.
0
Glitch8
 ( 9.28% )
- ago
#9
WL8 generates the custom indicator DLLs when you compile the indicator, and then again on startup.
0
- ago
#10
Thank you. Does it disappear when WL is shut down?
0
Glitch8
 ( 9.28% )
- ago
#11
No, it gets deleted and re-created though upon next startup.
0
Cone8
 ( 5.88% )
- ago
#12
.. and that's why Admin mode is required.
0
- ago
#13
I'm running in non-admin mode this morning and the indicator is running fine. And the indicator DLL is in the Wealthlab8 folder.
0
Glitch8
 ( 9.28% )
- ago
#14
Admin mode is required to CREATE new custom indicators.
0
Cone8
 ( 5.88% )
- ago
#15
Admin mode is required to create/modify the dll for a custom indicator when WL starts up.
If you don't make any changes after that, then you can use custom indicators as non-Admin.

The horse has been beaten dead!
0
- ago
#16
(from the dead horse)

Should the Help doc be modified re: #2? Do you think it implies Admin mode is required to "use" the custom indicator?

QUOTE:
Limitations:
1. A custom indicator cannot reference another custom indicator.
2. Creation and use of Custom Indicators is available only when you run WeatlhLab in Windows Administrator mode.
0
Cone8
 ( 5.88% )
- ago
#17
If you're using custom indicators, you should be in Admin mode.

Why don't you just run in Admin mode?
Why would you switch? (I really can't think of a reason)
1
- ago
#18
QUOTE:
If you're using custom indicators, you should be in Admin mode.

If you create your indicator with Visual Studio, then you don't need to run it in Admin mode (unless you're running the VS Debugger's memory execution profiler).

Yes, one would like to avoid Admin mode because of online threats and malware. I only use the Administrator account when I'm installing software or troubleshooting the OS. And that account has a long complicated password.
0
- ago
#19
QUOTE:
Why don't you just run in Admin mode?
Why would you switch? (I really can't think of a reason)

I've never seen the need to run in admin mode, except to create or edit an Indicator (which I rarely do). I think the main reason, however, is that I am using Task scheduler to restart WL each day, and I don't know if there's a way to add commands that would start up WL in admin mode. I've never researched it.
0
Cone8
 ( 5.88% )
- ago
#20
There's a little extra to do to run in Admin mode with the Task Scheduler, but it's easy to do. Here's one from a quick search.
https://www.thewindowsclub.com/how-to-run-scheduled-task-as-administrator-in-windows
0
- ago
#21
Thanks for that!
0

Reply

Bookmark

Sort