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

  #11 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

my way would be now :

- delete your jtEconNews2 in the ninja-script - Indicator-folder.
>> Control Center > Tools - Edit NinjaScript - Indicator - choose file - delete

- delete all your jtEconNews2 - files you have downloaded yet (for not getting mixed up with all these / diff version)

then download the one you like to have fresh again + do the following :


Saroj View Post
  • copy or save your .cs.file 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 (open ) on any file name in the list that is displayed - it doesnt matter wich one
  • 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.

this should work.

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

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
 
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

  #12 (permalink)
 
sleepy's Avatar
 sleepy 
London, UK
 
Experience: None
Platform: NinjaTrader
Trading: ES, CL
Frequency: Several times daily
Duration: Hours
Posts: 121 since Sep 2010
Thanks Given: 2,289
Thanks Received: 114

..

Reply With Quote
  #13 (permalink)
 
sleepy's Avatar
 sleepy 
London, UK
 
Experience: None
Platform: NinjaTrader
Trading: ES, CL
Frequency: Several times daily
Duration: Hours
Posts: 121 since Sep 2010
Thanks Given: 2,289
Thanks Received: 114


...deleted .cs file
Readded ... and did as you suggested but still does not appear in indicator list.

Wonder if its becasuse im using NinjaTrader 7 on Windows 7 Home edition.

sleepy

Reply With Quote
  #14 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hm, sorry, no more ideas to this - must be another issue somehow.
maybe open another thread to ask some users of this inidcator.

max-td
Started this thread Reply With Quote
  #15 (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

Attach the indicator here so we can see the name of it in the code and NT7 users can test it.

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
  #16 (permalink)
 
sleepy's Avatar
 sleepy 
London, UK
 
Experience: None
Platform: NinjaTrader
Trading: ES, CL
Frequency: Several times daily
Duration: Hours
Posts: 121 since Sep 2010
Thanks Given: 2,289
Thanks Received: 114

Hi Mike,

I was using the one from this post:

jtEconNews2.cs



sleepy

Reply With Quote
  #17 (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

Open up the indicator code in Ninja editor, go to line 53 -- the description block where it says "jtEconNews2a - Display upcoming......". Change the text inside the quotes to something like "Sleepy Indicator". Don't use any punctuation or non-standard characters.

F5/re-compile, check again.

Also check your Log tab in Control Center.

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
  #18 (permalink)
 
sleepy's Avatar
 sleepy 
London, UK
 
Experience: None
Platform: NinjaTrader
Trading: ES, CL
Frequency: Several times daily
Duration: Hours
Posts: 121 since Sep 2010
Thanks Given: 2,289
Thanks Received: 114

Using ZTR's version of this indicator solved the problem. Thanks for everyones help.

sleepy




Reply With Quote
The following 2 users say Thank You to sleepy for this post:
  #19 (permalink)
 
longboat's Avatar
 longboat 
Philadelphia, Pa
 
Experience: Advanced
Platform: Ninja Trader
Broker: Amp/CQG
Trading: CL, ES
Posts: 149 since Jun 2009
Thanks Given: 902
Thanks Received: 217


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

Sleepy did you find it? I had the same problem but found it. When you go to add an indicator to your chart I found it as a blank white indicator (no name) at the very beginning of all my indicators listed in NT7. Maybe you already found it, but that was where mine was! It is just invisible to the list of indicators.

Reply With Quote
  #20 (permalink)
 
ZTR's Avatar
 ZTR 
 
Experience: Advanced
Platform: NinjaTrader7
Broker: Mirus RCG/Zen-Fire
Trading: CL & 6e, looking at ES, ZB and AU again.
Posts: 2,096 since Nov 2009
Thanks Given: 1,099
Thanks Received: 1,393



sleepy View Post
Using ZTR's version of this indicator solved the problem. Thanks for everyones help.

sleepy




JT Puts in blank names under this.Name in the Initialize method section of the .cs file.

So there is no name listed in the indicator chooser, as it is the top one and is displayed as blank.

The fix, search for this section:

protected override void Initialize()
{
this.Name=" ";

Change to:

protected override void Initialize()
{
this.Name="jt Economic News 2";

Or what ever you want in the quotes.

Tricky, Right?

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Visit my NexusFi Trade Journal 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