NexusFi: Find Your Edge


Home Menu

 





manual install indie w/ .dll and .cs file ?


Discussion in NinjaTrader

Updated
    1. trending_up 4,620 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

manual install indie w/ .dll and .cs file ?

  #1 (permalink)
 
traderTX's Avatar
 traderTX 
pittsburgh, pa
 
Experience: Intermediate
Platform: Ninjatrader, ensign, wave59
Broker: IB , AMP/ cqg
Trading: ES, CL
Posts: 154 since Mar 2010
Thanks Given: 54
Thanks Received: 47

i want to manually copy a .cs file and 2 .dll files for an indicator. i tried the ninja import feature but the zip file doesnt show up in the browse box. maybe the zip file wasnt exported using ninja. not sure.
the two dll files are X86 and X64.

what folders do i copy the cs and dll files to in the ninja directory ?
would they all go to My Documents\NinjaTrader 7\bin\Custom\Indicator folder?


thanks

Trade what you see, not what you think.

"The better the mechanic, the fewer the tools"

"Futures Trading is risky and can cause substantial financial gain"
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103

I think you are talking about a custom assembly. A custom assembly usually comes as a zipped package which includes 4 separate files

-> Custom_Indicator.cs
-> Custom_Indicator.X64.dll
-> Custom_Indicator.X86.dll
-> Info.XML

The correct way of installing an assembly would be to first copy that assembly to a known directory and then import it via File -> Utilities -> Import NinjaScript from the place where it had been stored. When importing an assembly,

-> NinjaTrader copies the first three files (all but the Info file) to the directory Documents -> NinjaTrader 7 -> Custom -> bin
-> NinjaTrader creates a new file Custom_Indicator.dll
-> NinjaTrader adds a reference to that newly created file Custom_Indicator.dll

I have never tried to manually import an assembly (what for?), but I think it is possible to do so by

-> shutting down NinjaTrader
-> removing the three NinjaTrader.Custom.* files from the the directory Documents -> NinjaTrader 7 -> Custom -> bin to a safe location (needed in case something goes wrong, so that you can copy them back)
-> copying the three assembly files (but not the Info file) to that same directory
-> saving one of the two .dll files under the new name "Custom_Indicator.dll"

Then restart NinjaTrader. NinjaTrader should now regenerate the removed custom files. Now you need to edit any of your indicators and right click on the editor in order to select the popup menu. Select the last line of the menu which reads "References", then add a reference to the newly created Custom_Indicator.dll file.

If you are lucky the assembly should now run.

Much easier to import the assembly via File -> Utilites -> Import NinjaScript.

Reply With Quote
Thanked by:
  #3 (permalink)
 
traderTX's Avatar
 traderTX 
pittsburgh, pa
 
Experience: Intermediate
Platform: Ninjatrader, ensign, wave59
Broker: IB , AMP/ cqg
Trading: ES, CL
Posts: 154 since Mar 2010
Thanks Given: 54
Thanks Received: 47


thanks fattails for the reply.
you are correct, it is a custom assembly.
when i browse for the zip file using the import utility of ninja, it doesnt recognize the zip. that is, it doesnt show up in my folder as a zip file. i have other indicators that do show up for import in the folder.
that is why i thought i would try to manually import it.

a friend gave this to me to try, i wonder if it could be for ninja 6.5 ?
any other reason why the inport utility wouldnt recognize it ?

Trade what you see, not what you think.

"The better the mechanic, the fewer the tools"

"Futures Trading is risky and can cause substantial financial gain"
Started this thread Reply With Quote
  #4 (permalink)
 
traderTX's Avatar
 traderTX 
pittsburgh, pa
 
Experience: Intermediate
Platform: Ninjatrader, ensign, wave59
Broker: IB , AMP/ cqg
Trading: ES, CL
Posts: 154 since Mar 2010
Thanks Given: 54
Thanks Received: 47

Ok, i redownloaded the indicator and re-placed it in my indicator folder, and this time the import utilty showed and i was able to import it and bring it up on a chart.
thanks so much

Trade what you see, not what you think.

"The better the mechanic, the fewer the tools"

"Futures Trading is risky and can cause substantial financial gain"
Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,394 since May 2011
Thanks Given: 1,719
Thanks Received: 1,020

Sometimes coders post just the indicator without using the zip file function. This is not a big deal but many are left wondering how to make it work:

1. Download the CS file into your indicator directory: (My) Documents\NinjaTrader 7\bin\Custom\Indicator

2. Go to TOOLS menu -> Edit NinjaScript -> Indicator

3. This will open the file library. Select the indicator to edit - generally you would select the one you just placed there. But any indicator will do since the compile function checks and compiles all indicator files each time.

4. The indicator selected will open showing the NT programming code. Now press f5 on top line of keyboard or select the compile icon usually located to the right of the binoculars.

5. The indicator should compile and simply confirm with a sound. No text or anything is apparent.
5a. If there are any problems in any code they will show up as errrors in the bottom of the screen and must be corrected before this indicator will work. Clicking the line # on the right of the error will take to the location requiring correction. If you have problems use the help function.
6. If your indicator has no errors, close the file. The indicator is now ready to use in your charts.

Good Trading!!!

Reply With Quote
Thanked by:




Last Updated on August 21, 2015


© 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