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?
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?
Rename
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?
I'm not using Visual Studio. No error message. Just doesn't output any values.
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.
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.
The code was copied / pasted verbatim from the long-working indicator so it's not the code. It's something else.
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.
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.
QUOTE:
2. Compile > Compiled OK?
Yes
QUOTE:
3. Click on the Chart view.. does it work?
No
Then you have a runtime error in your code somewhere. Nothing in the Log Viewer?
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.
WL8 generates the custom indicator DLLs when you compile the indicator, and then again on startup.
Thank you. Does it disappear when WL is shut down?
No, it gets deleted and re-created though upon next startup.
.. and that's why Admin mode is required.
I'm running in non-admin mode this morning and the indicator is running fine. And the indicator DLL is in the Wealthlab8 folder.
Admin mode is required to CREATE new custom indicators.
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!
If you don't make any changes after that, then you can use custom indicators as non-Admin.
The horse has been beaten dead!
(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?
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.
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)
Why don't you just run in Admin mode?
Why would you switch? (I really can't think of a reason)
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.
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.
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
https://www.thewindowsclub.com/how-to-run-scheduled-task-as-administrator-in-windows
Thanks for that!
Your Response
Post
Edit Post
Login is required