View Full Version : Access to .dll indicator
I have a custom licensed indicator which is a dll so I have no .cs source. It shows on the NT indicator list for a chart and works fine. I can see the values on the chart. It also shows the values on the data window.
How can I reference/retreive the values/plots of this dll in a custom indicator? I want to compare/retrieve the values the same as a normal indicator.
I hope you don't say I can't and burst my bubble.
Cliff
NinjaTrader_Ray
05-05-2007, 06:34 PM
Hi Cliff,
See this section of our Help Guide - http://www.ninjatrader-support.com/HelpGuideV6/Embedding3rdPartyIndicators.html
Ray
Thanks. I am ashamed I missed that. I will crawl back under my rock now....
Cliff
NinjaTrader_Dierk
05-06-2007, 11:51 PM
No worries. There soon will be an import function which will our lives easier.
Dierk
I crawled back out from under my rock.
I added the DLL. That was easy. The not defined error went away but I have a new error.
Now I get an error on compile:
'NinjaTrader.Indicator.ABC123' is a 'Type' but is used like a 'variable'
I tired several variations.
On a chart that uses the indicator it says:
ABC123(1) : The(1) parameter determines a display attribute.
I tried: if (ABC123(1).Pivot1[0] < High[0])
I wanted to check/compare the plot value "Pivot1". This is the value shown in the data window.
Call me blind. What did I miss?
NinjaTrader_Dierk
05-07-2007, 01:32 AM
Now I get an error on compile:
'NinjaTrader.Indicator.ABC123' is a 'Type' but is used like a 'variable'
What is code line in question? Just click on the error.
Dierk
I did and it is that line of code that has generates the error. It also said that was the statement in error on the compile errors at the bottom.
I added a simple statement to help isolate the issue.
I have the special NT build you created to correct the editor problem. I don't have the latest NT6 live build but I don't think this is the issue.
Cliff
NinjaTrader_Dierk
05-07-2007, 02:04 AM
I'm confused: Please post the erroneous code line. Thanks.
Dierk
Here it is:
if (ABC123(1)[0] < High[0] + 1 * TickSize)
{
// test custom indicator
return;
}
I also tried this which I think is correct:
if (ABC123(1).PivotR4[0] < High[0] + 1 * TickSize)
{
// test custom indicator
return;
}
Cliff
PS: Also this is an email test to your email.
NinjaTrader_Dierk
05-07-2007, 02:19 AM
a) sorry I don't know what causes this compile error. May be you use ABC123 for a variable or property as well ?!?
b) the email notification worked well on my non-NT email
Dierk
ok, the email issue must be localized to me.
Can I send you the code to have a look? I don't want to post it.
Cliff
NinjaTrader_Dierk
05-07-2007, 02:28 AM
Yep, please send me the indicator and all required files related.
Dierk
Any timing or estimate on the dll import function?
I am trying to decide if I want to develop a workaround or just wait for the import tool.
Regards
Cliff
NinjaTrader_Dierk
05-12-2007, 11:42 PM
Likely end of this week
YEAH!!!!! Double Yeah! You made my day.
Danke sehr viel
Cliff
ezhuth
07-15-2010, 10:44 AM
Sorry, I am adding to an old thread, but I am encountering similar issue. I have a proprietary indicator (licensed to my computer) from a dll file which have both BoolSeries and plottable values. The indicator works fine in charts. Now to backtest, I am trying to call the indicator in a strategy and it gives me the error "...is a 'type' but is used like a 'variable'". I emailed the vendor, but he is not too sure what I need to do to access the indicator since somebody else developed the indicator for him. Any suggestions? thanks
NinjaTrader_RyanM
07-15-2010, 11:31 AM
Hello ezhuth,
Unfortunately, we wouldn't be able to evaluate what is happening here without seeing the indicator code. You will likely need to contact the author of the indicator for any insight. If the code is exposed to you somehow, please share the lines that are contributing to this issue.