NexusFi: Find Your Edge


Home Menu

 





additional references dll


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one timmyb with 20 posts (8 thanks)
    2. looks_two bukkan with 5 posts (5 thanks)
    3. looks_3 tarantino with 3 posts (1 thanks)
    4. looks_4 Big Mike with 2 posts (3 thanks)
      Best Posters
    1. looks_one Big Mike with 1.5 thanks per post
    2. looks_two bukkan with 1 thanks per post
    3. looks_3 timmyb with 0.4 thanks per post
    4. looks_4 tarantino with 0.3 thanks per post
    1. trending_up 15,117 views
    2. thumb_up 17 thanks given
    3. group 5 followers
    1. forum 34 posts
    2. attach_file 10 attachments




 
Search this Thread

additional references dll

  #11 (permalink)
tarantino
Willowbrook, IL
 
Posts: 32 since Sep 2010
Thanks Given: 71
Thanks Received: 39

If you export using NT, then NT will take care when you import back and will place everything where it belongs.
Only problem could be if you are referencing 3rd party assemblies which are not included in zip

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #12 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


tarantino View Post
If you export using NT, then NT will take care when you import back and will place everything where it belongs.
Only problem could be if you are referencing 3rd party assemblies which are not included in zip

ok i got a friend that is trying it tonight. we will see how it goes. I just want to share it with the elite when its done.

and one last question , when you say third party do you mean me?? cause the dll used is not native to ninja install. I placed it there on my machine to get things to work. I just hope it works lol. If so its not a big deal i built a installer just for the dll's then they can just import the zip for the indicator.

I apologize for all the questions i never dealt with dll's until a week ago.

thanks again

tim

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #13 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


this is how a indicator which has reference to a dll should be packed.

Reply With Quote
  #14 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

thanks again bukken I finally figured all this out with your help. I cannot tell you how much I appreciate it. What a great thing. Now it loads my dll and everything WOOHOO. this will defined simplify it for others.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #15 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


timmyb View Post
thanks again bukken I finally figured all this out with your help. I cannot tell you how much I appreciate it. What a great thing. Now it loads my dll and everything WOOHOO. this will defined simplify it for others.

Can you explain the the steps of what you had to do to make it work?

Reply With Quote
  #16 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


monpere View Post
Can you explain the the steps of what you had to do to make it work?

Sure monpere. Then maybe you will know another thing I am wondering about.

Ok so we built ourselves a snazzy custom indicator in ninja. And unfortunately this indicator uses an external dll. We now want to share it with others but many are thrown off by the place this here do that etc. And usually they end up putting this file in the wrong place. So then they bother you asking what happened.

So first we built our snazzy new Indicator. We added the reference to the dll.

I will use my trade tracker as an example.

So we go into ninja and do the typical export.

A window will pop up warning that you need to be aware the target pc needs to have certain files on it.

(very important note, if you reference a different dll for a different file you should remove those files in a safe place before exporting this file. Because ninja will want all those on the target pc.) I am unsure as of this typing if u jsut remove those references if it needs them if it will still look for them.

Ok so now you have a folder zip. open that and you will see a file that says additonal references. check that the name of needed dll / dll's are in it. And not uneeded ones.

Add your dll to the root of this zip

and WALLA like majic ninja loads your dll on the users pc upon import. After i got it to work i sat and stared for like 5 mins goin your kidding right. I been building a custom installer etc and it was just place the file here.

after import into ninja a warning will come up saying the pc needs the dll to work right. But it is there and this is just a friendly warning. Restart ninja and use the custom indicator.

Tim

Attached Thumbnails
Click image for larger version

Name:	1-23-2011 11-41-11 AM demo fo export 1.png
Views:	241
Size:	65.7 KB
ID:	29044   Click image for larger version

Name:	1-23-2011 11-42-06 AM demo export 2.png
Views:	212
Size:	22.1 KB
ID:	29045   Click image for larger version

Name:	1-23-2011 11-42-46 AM demo export 3.png
Views:	257
Size:	82.3 KB
ID:	29046  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #17 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

Ok so this one is probably for bukken.

So i managed to figure out how to build a form in visual basic then have ninja load it. Now here is my loading code.

TestForm.Show();

which loads the form

now that form has a button. But i cannot seem to gain access to the button I am curious how.

to make it simple i was trying to jsut have when i click the button a message box opens. But i am unsure how to get the ninja .cs to know if the button was clicked in the form in the dll

Hope this makes sense

Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #18 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


timmyb View Post
Sure monpere. Then maybe you will know another thing I am wondering about.

Ok so we built ourselves a snazzy custom indicator in ninja. And unfortunately this indicator uses an external dll. We now want to share it with others but many are thrown off by the place this here do that etc. And usually they end up putting this file in the wrong place. So then they bother you asking what happened.

So first we built our snazzy new Indicator. We added the reference to the dll.

I will use my trade tracker as an example.

So we go into ninja and do the typical export.

A window will pop up warning that you need to be aware the target pc needs to have certain files on it.

(very important note, if you reference a different dll for a different file you should remove those files in a safe place before exporting this file. Because ninja will want all those on the target pc.) I am unsure as of this typing if u jsut remove those references if it needs them if it will still look for them.

Ok so now you have a folder zip. open that and you will see a file that says additonal references. check that the name of needed dll / dll's are in it. And not uneeded ones.

Add your dll to the root of this zip

and WALLA like majic ninja loads your dll on the users pc upon import. After i got it to work i sat and stared for like 5 mins goin your kidding right. I been building a custom installer etc and it was just place the file here.

after import into ninja a warning will come up saying the pc needs the dll to work right. But it is there and this is just a friendly warning. Restart ninja and use the custom indicator.

Tim

Thanks David, I figured it out today and posted the steps above. I didn't even think that richard did the same thing LOL. Oh well.

I am still working on accessing info from the dll.If anyone has input let me know


Hmm weird i swear david had a reply here a minute ago.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #19 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

So I am still working on this I got the form to load via the script I posted earlier and i am now trying to access the button on it. I think in the visual studio project i need to add variables that ninja can acces and maybe a public something to show ninja that the button was clicked. Still working ................

maybe instead of using the dll i could just reference a .cs namespace or something. hmmmm

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #20 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361



monpere View Post
Can you explain the the steps of what you had to do to make it work?

int the prior steps i said to remove other files if needed. Instead you can just alter the additional references

Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:




Last Updated on May 3, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts