NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 05-05-2007, 06:26 PM   #1
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Question 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
ct is offline  
Reply With Quote
Old 05-05-2007, 06:34 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Hi Cliff,

See this section of our Help Guide - http://www.ninjatrader-support.com/H...ndicators.html
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-06-2007, 11:43 PM   #3
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Wink

Ray


Thanks. I am ashamed I missed that. I will crawl back under my rock now....

Cliff
ct is offline  
Reply With Quote
Old 05-06-2007, 11:51 PM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

No worries. There soon will be an import function which will our lives easier.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-07-2007, 12:29 AM   #5
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Unhappy

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?
ct is offline  
Reply With Quote
Old 05-07-2007, 01:32 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Quote:
Originally Posted by ct View Post
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.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-07-2007, 01:58 AM   #7
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Default

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
ct is offline  
Reply With Quote
Old 05-07-2007, 02:04 AM   #8
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

I'm confused: Please post the erroneous code line. Thanks.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-07-2007, 02:10 AM   #9
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Default

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.
ct is offline  
Reply With Quote
Old 05-07-2007, 02:19 AM   #10
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-07-2007, 02:25 AM   #11
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Default

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
ct is offline  
Reply With Quote
Old 05-07-2007, 02:28 AM   #12
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Yep, please send me the indicator and all required files related.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-12-2007, 06:36 PM   #13
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Default

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
ct is offline  
Reply With Quote
Old 05-12-2007, 11:42 PM   #14
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Likely end of this week
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-13-2007, 08:08 PM   #15
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Talking

YEAH!!!!! Double Yeah! You made my day.

Danke sehr viel

Cliff
ct is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 12:59 AM.