Importing a .cs - file indicator / strategy - NinjaTrader Programming | futures io social trading
futures io futures trading


Importing a .cs - file indicator / strategy
Updated: Views / Replies:26,304 / 39
Created: by max-td Attachments:4

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 4  
 
Thread Tools Search this Thread
 

Importing a .cs - file indicator / strategy

  #1 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 916 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
 
  #2 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 675 since Jun 2009
Thanks: 724 given, 736 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 17 users say Thank You to RJay for this post:
 
  #3 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 385 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 11 users say Thank You to Saroj for this post:
 
  #4 (permalink)
Membership Temporarily Revoked
toronto canada
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: 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:
 
  #5 (permalink)
Elite Member
Pennslyvania
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: ES
 
Posts: 42 since Sep 2010
Thanks: 4 given, 38 received

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

Reply With Quote
 
  #6 (permalink)
Elite Member
Eau Claire, WI USA
 
Futures Experience: Intermediate
Platform: ninja trader
Broker/Data: Amp Futures/ zen Fire
Favorite Futures: ES, 6E, ZN
 
Posts: 12 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
 
  #7 (permalink)
Elite Member
London, UK
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: ES, CL
 
sleepy's Avatar
 
Posts: 113 since Sep 2010
Thanks: 2,146 given, 109 received

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

https://futures.io/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
 
  #8 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 916 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:
 
  #9 (permalink)
Elite Member
London, UK
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: ES, CL
 
sleepy's Avatar
 
Posts: 113 since Sep 2010
Thanks: 2,146 given, 109 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
 
  #10 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Mirus/Zen
Favorite Futures: Futures - bonds, currencies, index
 
Posts: 288 since Oct 2010
Thanks: 70 given, 265 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



futures io > > > > > Importing a .cs - file indicator / strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge w/$1100 in prizes from TopstepTrader

July

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

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 03:07 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-06-27 in 0.11 seconds with 21 queries on phoenix via your IP 54.224.76.150