Big Mike's Trading Forum
 

Go Back   Big Mike's Trading Forum

> Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming


Notices
     

Importing a .cs - file indicator / strategy
Started:October 9th, 2009 (06:31 AM) by max-td Views / Replies:14,723 / 33
Last Reply:June 6th, 2013 (04:50 PM) Attachments:2

Welcome to Big Mike's Trading Forum.

Welcome, Guest!

This forum was established to help traders by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

BMT is fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 2  
 
Thread Tools Search this Thread

Importing a .cs - file indicator / strategy

Old October 9th, 2009, 06:31 AM   #1 (permalink)
Elite Member
Frankfurt
 
Trading Experience: Intermediate
Platform: NinjaTrader
Favorite Instrument: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 883 received

Importing a .cs - file indicator / strategy

Hi,
here an answer to a FAQ :

How to import a .cs- file into NT (indicator or strategy)

- open the .cs-file in windows editor -- you should see lot of text here.

- do in Ninja > Tools > Edit NinjaSript > Indicator --- and open one indicator - no matter wich one + delete ALL the text there

- now copy the whole text from the .cs-file into the indicator-file

- now - IMPORTANT - copy the indicators name from the file - you find it mostly between line 20 to 30 :

in example public class MaxDots007 : Indicator

 
Code
			
    /// <summary>
    /// 
    /// </summary>
    
[Description("")]
    public class 
MaxDots007 Indicator 
- then rightklick + "save as" .... insert this name here + klick OK

- now compile the indicator ( F5 or compile-button)

-- DONE

that should work.
Have Fun!



max-td
Reply With Quote
     

Old October 9th, 2009, 09:46 AM   #2 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Instrument: TF
 
RJay's Avatar
 
Posts: 655 since Jun 2009
Thanks: 664 given, 655 received

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

Reply With Quote
     
The following 14 users say Thank You to RJay for this post:
     

Old October 21st, 2009, 01:52 AM   #3 (permalink)
Elite Member
Arcata, CA
 
Trading Experience: Intermediate
Platform: NinjaTrader
Favorite Instrument: index futures, oil
 
Saroj's Avatar
 
Posts: 449 since Jun 2009
Thanks: 195 given, 303 received

How I get the .cs file incorporated...


  • copy or save it to My Documents\NinjaTrader 6.5\bin\Custom\Indicator (or ...\Strategy if a strategy cs file).
  • from the Control Center, Tools-Edit NinjaScript-Indicator (or ...-Strategy if that)
  • double click on any file name in the list that is displayed
  • when it opens to show the code, press F5 to compile it.
This works because when any cs file is compiled in NinjaTrader, it compiles any and all other cs files that have been changed since the last time it did so.

Reply With Quote
     
The following 9 users say Thank You to Saroj for this post:
     

Old April 1st, 2010, 12:56 AM   #4 (permalink)
Membership Temporarily Revoked
toronto canada
 
Trading Experience: Intermediate
Platform: Ninja
Favorite Instrument: CL
 
Posts: 54 since Jan 2010
Thanks: 92 given, 30 received


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 you are a genius...I tried to do it a couple of other ways but could never get it to work...yours did the trick...a million thanks!!!!

Reply With Quote
     
The following 3 users say Thank You to bingo17 for this post:
     

Old October 6th, 2010, 10:29 AM   #5 (permalink)
Elite Member
Pennslyvania
 
Trading Experience: Intermediate
Platform: ninjatrader
Favorite Instrument: ES
 
Posts: 39 since Sep 2010
Thanks: 3 given, 36 received

Current BMT User Poll

For you, trading is a...

 
Thanks all. I'm going to experiment with all the suggestions.

Reply With Quote
     

Old October 28th, 2010, 02:21 PM   #6 (permalink)
Elite Member
Eau Claire, WI USA
 
Trading Experience: Intermediate
Platform: ninja trader
Broker/Data: Amp Futures/ zen Fire
Favorite Instrument: ES, 6E, ZN
 
Posts: 11 since Jun 2009
Thanks: 50 given, 3 received

Cory,
The error message is an Import NinjaScript Archive File (.zip) Warning which reads "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."

After I remove VolumeStopV5 indicator I am able to import other indicators. I have no problem importing indicators in zip format but importing the cs format gives me problems.

I appreciate your willingness to share thank you for your help.

Reply With Quote
     

Old November 22nd, 2010, 04:28 AM   #7 (permalink)
Risk Manager
London, UK
 
Trading Experience: None
Platform: NinjaTrader
Favorite Instrument: ES, CL
 
sleepy's Avatar
 
Posts: 90 since Sep 2010
Thanks: 1,400 given, 67 received

Im trying to install a .cs file in NinjatTrader 7 but getting nowhere.

https://www.bigmiketrading.com/elite-group-trading-methods/5995-using-jurik-moving-average-12.html#post76303
jtEconNews2.cs

Have tried the above suggestions.... but obviously still doing someting wrong/stupid. Any ideas?

sleepy

Reply With Quote
     

Old November 22nd, 2010, 04:41 AM   #8 (permalink)
Elite Member
Frankfurt
 
Trading Experience: Intermediate
Platform: NinjaTrader
Favorite Instrument: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 883 received

hi sleepy,
please describe what you do step by step + whats happening then. ( errors ? )
maybe we find the issue.

max-td
Reply With Quote
     
The following user says Thank You to max-td for this post:
     

Old November 22nd, 2010, 05:29 AM   #9 (permalink)
Risk Manager
London, UK
 
Trading Experience: None
Platform: NinjaTrader
Favorite Instrument: ES, CL
 
sleepy's Avatar
 
Posts: 90 since Sep 2010
Thanks: 1,400 given, 67 received

Hi max-td,

When I go ....
Edit NinjaScript > Indicator > Edit Indicator
The file jtEconNews2 already exists
I doubleclick and it opens ... I then run compile and resave as jtEconNews2

However when I go onto Chart and select indicators (CTrl I) it doesnt appear in my list of indicators

At no stage do I get any errors.

sleepy

Reply With Quote
     

Old November 22nd, 2010, 05:52 AM   #10 (permalink)
Elite Member
UK
 
Trading Experience: Intermediate
Platform: Ninja
Broker/Data: Mirus/Zen
Favorite Instrument: Futures - bonds, currencies, index
 
Posts: 288 since Oct 2010
Thanks: 70 given, 243 received



sleepy View Post
Hi max-td,

When I go ....
Edit NinjaScript > Indicator > Edit Indicator
The file jtEconNews2 already exists
I doubleclick and it opens ... I then run compile and resave as jtEconNews2

However when I go onto Chart and select indicators (CTrl I) it doesnt appear in my list of indicators

At no stage do I get any errors.

sleepy

Maybe the file has a different declared indicator name in it - that is ultimately what appears in the indicators list.

Do this - select and copy all the text in the cs file you want to import. Open indicator jtEconNews2. Delete all text in it. Paste the text you copied earlier. Press F5. Check the list.

Reply With Quote
     

Reply



Tags
amp, amp trading, brokers, c#, cd, change, chart, charts, code, color, compile, control, create, csv, custom, dataseries, desktop, dow, eco, elite, error, errors, es, file, fix, format, group, historical, historical data, how to, import, indicator, indicators, jurik, learn, line, list, load, lot, love, mastery, method, microsoft, mirus, mirus_futures, ml, names, newbie, news, ninja, ninja 7, ninja trader, ninjascript, ninjatrader, ninjatrader 7, note, nt, nt7, open, options, override, package, platforms, program, programming, puts, reload, save, script, scripts, sim, simulation, sim_trading, strategy, support, td, testing, thank you, time, trader, trading, vix, windows
     

Big Mike's Trading Forum > Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Importing a .cs - file indicator / strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Zip file please (_Lin_Reg_Rev_Paint_v01.cs) tickvix NinjaTrader 5 March 29th, 2011 10:03 AM
downloading & importing .cs and .xml files hector24 NinjaTrader 3 March 8th, 2011 03:05 AM
Importing data as .txt file in Multicharts arjfca The Elite Circle 2 January 31st, 2011 06:15 PM
How to change a .cs file into NinjaTrader 7 zip micdup NinjaTrader 15 January 7th, 2011 07:57 PM
CS file greatsky NinjaTrader 6 December 23rd, 2010 10:27 AM


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

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2014 by Big Mike Trading. 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.
 
no new posts

Page generated 2014-04-25 in 0.33 seconds with 20 queries on phoenix via your IP 50.17.162.174