![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Hi Cliff,
See this section of our Help Guide - http://www.ninjatrader-support.com/H...ndicators.html
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
Ray
Thanks. I am ashamed I missed that. I will crawl back under my rock now.... Cliff |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
No worries. There soon will be an import function which will our lives easier.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
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? |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
What is code line in question? Just click on the error.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
I'm confused: Please post the erroneous code line. Thanks.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
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.
Last edited by ct; 05-07-2007 at 02:13 AM.
|
|
|
|
|
|
#10 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#12 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Yep, please send me the indicator and all required files related.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#14 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Likely end of this week
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#15 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
|
YEAH!!!!! Double Yeah! You made my day.
Danke sehr viel Cliff |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access from external class | VagyokC4 | General Programming | 4 | 03-30-2007 01:01 AM |
| Can't access 1 bar ago in custom indicator | AlohaBob | Indicator Development | 1 | 01-07-2007 02:42 AM |
| price data access | Json | Automated Trading | 6 | 08-31-2006 02:34 AM |
| Access To Account Equity | dct | Automated Trading | 1 | 06-15-2006 03:15 AM |
| Lost MB Trading Access in .37 | Savage1701 | Miscellaneous Support | 1 | 03-22-2005 12:00 PM |