- ago
I have created a custom indicator and after I save it, it does not appear in the my indicator section after I restart WL7. After I click on new indicator and reenter the code the code complies ok and there are no wiggly lines. See SavePic. If I close the script and reopen it for editing it the script reappears with 8 red wiggly lines. The first wiggly line
CODE:
public class Pbh20 : IndicatorBase
says "The namespace 'WealthLab.Indicators' already contains a definition for 'Pbh20' " See ReOpenPic.
After restarting WL7. The indicator no longer shows up in the My Indicators even though it exist in the WealthLab7 - Indicators file. See RestartWL7pic.
Thank you for your help in resolving this issue.
0
1,359
13 Replies

Reply

Bookmark

Sort
- ago
#1
Please restart WL7 with elevated privileges (as admin). Custom indicators require that for both creation and subsequent usage. Otherwise they will disappear.
0
- ago
#2
Sorry I have been doing that. If you are not in admin mode you cannot start new indicator. Also I have enable the short cut to run as admin.
0
- ago
#3
0
- ago
#4
It looks like you've saved the indicator using the same class and namespace. This could raise a conflict. Could you try alter them e.g. Pbh200 or WealthLab.Indicators2 and delete the duplicate(s)?
0
- ago
#5
I have recreated the indicator under the name of Pbh200. And the same thing happen. The script had saved to the Indicators folder but not reappear under the My Indicators folder. I thought that would have worked. Let me get this straight. You want me to save the script replacing WealthLab.Indicators with WealthLab.Indicators2.

using WealthLab.Core;
using System;
using System.Drawing;
using WealthLab.Indicators;

namespace WealthLab.Indicators
{
public class Pbh200 : IndicatorBase
{

What should I look for to distinguish what is a duplicate to delete? I have Pbh, Pbl, Pbl20, and trying to make Pbh20.
0
Glitch8
 ( 12.10% )
- ago
#6
If you'd like you can email us the Indicator file, perhaps it's something specific to the indicator code that's causing the issue? support@wealth-lab.com
0
- ago
#7
Ok, done.
0
Glitch8
 ( 12.10% )
- ago
#8
Your indicator is not showing up because the dynamic compilation is failing because it cannot find the Pbh and Pbl classes that are referenced in your Pbh20 indicator.

It's always been kind of tricky getting these custom indicators to work seamlessly in .NET, which is why we had to resort to letting them work only in Admin mode. But it seems you've uncovered a limitation. A custom indicator cannot reference another custom indicator.

Have you considered building your indicators into a library within a dev tool like Visual Studio? They could then reference each other normally and you'd get the benefit of having them organized into their own Indicator folder.
0
- ago
#9
QUOTE:
A custom indicator cannot reference another custom indicator.

Added a note to the documentation.
0
- ago
#12
Hello

I can not find MyIndicator Folder, it is not visible on WL application. Custom indicator is not referencing any custom indicators. Also, tried using existing but renamed indicator but it is not showing on WL. Custom Indicators are showing on the AppData Drive folder but not showing on WL application
0
- ago
#13
Hit F1 for Help > Indicators > Custom Indicators. First paragraph, read the Note.
0

Reply

Bookmark

Sort