NexusFi: Find Your Edge


Home Menu

 





Importing a .cs - file indicator / strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one sleepy with 6 posts (2 thanks)
    2. looks_two Big Mike with 4 posts (2 thanks)
    3. looks_3 max-td with 4 posts (32 thanks)
    4. looks_4 Mohammed Akram with 4 posts (1 thanks)
      Best Posters
    1. looks_one RJay with 19 thanks per post
    2. looks_two Saroj with 11 thanks per post
    3. looks_3 max-td with 8 thanks per post
    4. looks_4 Silvester17 with 3 thanks per post
    1. trending_up 45,417 views
    2. thumb_up 76 thanks given
    3. group 26 followers
    1. forum 39 posts
    2. attach_file 4 attachments




 
Search this Thread

Importing a .cs - file indicator / strategy

  #21 (permalink)
 trade8888 
Vancouver
 
Experience: Intermediate
Platform: Ninja
Trading: CL GC
Posts: 43 since Oct 2010
Thanks Given: 24
Thanks Received: 46

I have Ninja 7; license from Mirus and there is no Tools/Edit Ninjascript available. Ninja support tells me it is a stripped down version.

When I copy the cs file to the indicator directory and attempt to import a zip file it gives the error message "You have custom NinjaScript files on you PC that have programming errors. These errors must be resolved before you can import a NinjaScript Archive File."

Importing a zip file is fine.

Is there any other way to force a compile?

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
Battlestations: Show us your trading desks!
43 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #22 (permalink)
 ghoti 
Daytona Beach
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 54 since May 2010
Thanks Given: 7
Thanks Received: 100

trader8888,

I had the same problem. Ask Ninja for a Sim Key. Use it to access the Ninja Script Editor and debug your script. Then switch back to your other Key. They say you need to restart Ninja when changing keys, but I haven't found that necessary.

ghoti

Reply With Quote
The following 2 users say Thank You to ghoti for this post:
  #23 (permalink)
 trade8888 
Vancouver
 
Experience: Intermediate
Platform: Ninja
Trading: CL GC
Posts: 43 since Oct 2010
Thanks Given: 24
Thanks Received: 46



ghoti View Post
trader8888,

I had the same problem. Ask Ninja for a Sim Key. Use it to access the Ninja Script Editor and debug your script. Then switch back to your other Key. They say you need to restart Ninja when changing keys, but I haven't found that necessary.

ghoti

Sim key gets me the Ninja editor

Thanks for the solution

Visit my NexusFi Trade Journal Reply With Quote
  #24 (permalink)
 gunsnmoney 
Santa Clara, CA
 
Experience: Intermediate
Platform: NT8,
Broker: Tradier, TastyTrade
Trading: ES, Fx
Posts: 19 since Jul 2010
Thanks Given: 13
Thanks Received: 18

I have a .csv file that I want to Import to NT 7, but its not an indicator or strategy; its VIX dataseries from CBOE. Will this procedure work for .csv files and if so, can I somehow upload as historical data?

G&M

Reply With Quote
  #25 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476


gunsnmoney View Post
I have a .csv file that I want to Import to NT 7, but its not an indicator or strategy; its VIX dataseries from CBOE. Will this procedure work for .csv files and if so, can I somehow upload as historical data?

G&M

Please create a new thread, as this is an entirely different subject and off-topic for this thread. Then someone can help you.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #26 (permalink)
 jldpc 
Phoenix, Arizona
 
Experience: Advanced
Platform: TOS, Ninja Trader
Trading: futues
Posts: 7 since Dec 2011
Thanks Given: 1
Thanks Received: 3

Ok; us newbies to NT (but not trading) try out everything like brokers, indicators, modifications, lame coding efforts, etc. And then, of course, some form of corruption infects our otherwise good working NT, even if the strippeddown "free" version from AMP Trading, i.e., no internal NT Script Editor. Oh wow is me!! Hark. to get back to functionality there are workarounds - the short and the long of course. For the short, try this. Think if you could only find the offending indicator or component thereof and delete it, then at least you are back to fullfunctionality for importing zip's without error messages. So how do you do it?
1. Creat several empty folders on on your desktop - with sequentional names of course, e.g., NewFolder1, New Folder2, etc.
2. Open two Windows Explorer (I like the old name "File Manager" better). The first shall be your location of your My Documents Folder where Ninja Trader 7 is located, in Win 7 -- to c:\... whatever it takes for you to get there...\My Documents\Ninja Trader 7\bin\Custom\Indicator.
3. Sort by name all of the Indicators. Please note that many of them havea first letter/character of the @ symbol. Sort them so that all of the ampersands are at the top.
4. Open the second Windows Explorer to the empty New Folder1 on the Desktop.
5. Put the two open WE views side by side. Copy all of the indicators that do not have an @ to the empty New Folder1. Make sure you got it right, count them. Then delete just thos indicators from the homebase for them in the other open WE. So that all you have left in the homebase is the indicators with the @ for the first letter/symbol.
6. Open NT Control Panel\Options\Import Ninja Script, and see what happens - it Works Again!!!!
By now you have figured out that the OFFENDING indicator is one of the non @ items, and it is hiding from you in New Folder1. So the obvious thing to do, using your own skillful logic and mastery of concentration is come up with a strategy of putting a few back at a time from New Folder1 to the Home base, and keep trying the import until you find the evil one, or two, or more. You ask why have more than one New Folder - cause you will need some dumping places for your testing strategy - for bad ones and good ones - in different folders of course.

As long as it took to say all of this - it is the "short" path to renewed functionality, not to mention identification of "bad" indicators.

The long way is to download the FREE Microsoft Visual C# 2010 Express, learn how to use it, learn how to code NT Indicator Scripts, and go about your business. I infer without seeing it, that the NT Script Editor is a knock off of that free program suite from Microsoft or one of its predecessors, or a variant of same. I trust that those more knowledgeable than I will comment on same if it is important.

Good luck - I Love Indicators more than ______...._______..........! Best Larry

Reply With Quote
  #27 (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,102


jldpc View Post
Ok; us newbies to NT (but not trading) try out everything like brokers, indicators, modifications, lame coding efforts, etc. And then, of course, some form of corruption infects our otherwise good working NT, even if the strippeddown "free" version from AMP Trading, i.e., no internal NT Script Editor. Oh wow is me!! Hark. to get back to functionality there are workarounds - the short and the long of course. For the short, try this. Think if you could only find the offending indicator or component thereof and delete it, then at least you are back to fullfunctionality for importing zip's without error messages. So how do you do it?
1. Creat several empty folders on on your desktop - with sequentional names of course, e.g., NewFolder1, New Folder2, etc.
2. Open two Windows Explorer (I like the old name "File Manager" better). The first shall be your location of your My Documents Folder where Ninja Trader 7 is located, in Win 7 -- to c:\... whatever it takes for you to get there...\My Documents\Ninja Trader 7\bin\Custom\Indicator.
3. Sort by name all of the Indicators. Please note that many of them havea first letter/character of the @ symbol. Sort them so that all of the ampersands are at the top.
4. Open the second Windows Explorer to the empty New Folder1 on the Desktop.
5. Put the two open WE views side by side. Copy all of the indicators that do not have an @ to the empty New Folder1. Make sure you got it right, count them. Then delete just thos indicators from the homebase for them in the other open WE. So that all you have left in the homebase is the indicators with the @ for the first letter/symbol.
6. Open NT Control Panel\Options\Import Ninja Script, and see what happens - it Works Again!!!!
By now you have figured out that the OFFENDING indicator is one of the non @ items, and it is hiding from you in New Folder1. So the obvious thing to do, using your own skillful logic and mastery of concentration is come up with a strategy of putting a few back at a time from New Folder1 to the Home base, and keep trying the import until you find the evil one, or two, or more. You ask why have more than one New Folder - cause you will need some dumping places for your testing strategy - for bad ones and good ones - in different folders of course.

As long as it took to say all of this - it is the "short" path to renewed functionality, not to mention identification of "bad" indicators.

The long way is to download the FREE Microsoft Visual C# 2010 Express, learn how to use it, learn how to code NT Indicator Scripts, and go about your business. I infer without seeing it, that the NT Script Editor is a knock off of that free program suite from Microsoft or one of its predecessors, or a variant of same. I trust that those more knowledgeable than I will comment on same if it is important.

Good luck - I Love Indicators more than ______...._______..........! Best Larry

Lots of words.

(1) With the regular NinjaTrader version no problem: Just edit an indicator and compile. The error log below shows you all offensive indicators. Remove those from My Documents / NinjaTrader 7/ bin / Custom/ Indicator.

(2) With the stripped down version, if you cannot edit indicators, then it is more subtle. The log and trace file will not show an error message, if the import failed. Now Sherlock Holmes would think about how those corrupted files arrived in that directory. Maybe you had copied them there. In that case you should

- sort the indicator files in your directory by date, and you will find the candidates that may have caused the offensive behavior
- make it a habit to test all files which you download and copy into your indicator directories

(3) You can also download the free simulation edition of NinjaTrader, which allows you to edit all indicators. Use it to check that directory. Possible that you need to install on a separate machine, I do not know whether the two versions can be installed in parallel.

Reply With Quote
  #28 (permalink)
 
gibips's Avatar
 gibips 
Peterborough, ON
 
Experience: Intermediate
Platform: NinjaTrader
Trading: futures
Posts: 16 since Dec 2010
Thanks Given: 13
Thanks Received: 5


RJay View Post
Hi max-td,

Personally, I just copy the cs file to the appropriate folder.

Then I re-import the zip file of some indicator I don't care about.

This triggers an intellisense reload of all cs files.

The copied cs file is now selectable from the charts menu.

Done!!!

RJay


RJay, Thanks for that method. Quick and easy.

Follow me on Twitter Reply With Quote
  #29 (permalink)
 
Alinghy's Avatar
 Alinghy 
Monaco - Montecarlo
 
Experience: Intermediate
Platform: Ninja Trader 8
Broker: Dorman
Trading: ES 6E ZB YM
Posts: 333 since Sep 2009
Thanks Given: 260
Thanks Received: 59

Hi All,

Please apologies for my next question but I can't import for some reason the following

.cs file that I got in the Elite session to the following path



I tried several suggestions I found here but no success, I simply got the previous mentioned error message

I also opened the .cs file into the Ninja editor and changed the name but without result, almost I think to have performed the right way ...

could you please give me the detailed way on how to proceed ?

Thanks in advance and best regards

A.


What Life is ?
Only two things are infinite: universe and human stupidity, about the first one I am not so sure ... (A. Einstein)
Reply With Quote
  #30 (permalink)
 
Alinghy's Avatar
 Alinghy 
Monaco - Montecarlo
 
Experience: Intermediate
Platform: Ninja Trader 8
Broker: Dorman
Trading: ES 6E ZB YM
Posts: 333 since Sep 2009
Thanks Given: 260
Thanks Received: 59


No one available to give me a small help ???

Sorry

A.

What Life is ?
Only two things are infinite: universe and human stupidity, about the first one I am not so sure ... (A. Einstein)
Reply With Quote





Last Updated on November 30, 2016


© 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