NexusFi: Find Your Edge


Home Menu

 





getting rid of bad ninjascripts experiments


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one aquarian1 with 11 posts (0 thanks)
    2. looks_two redratsal with 3 posts (0 thanks)
    3. looks_3 Fat Tails with 2 posts (2 thanks)
    4. looks_4 LukeGeniol with 2 posts (0 thanks)
    1. trending_up 10,864 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 20 posts
    2. attach_file 9 attachments




 
Search this Thread
  #1 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

I'm trying to import a ninjascript and ninja says that I have a custom script with an error that must be resolved before I can. (probably one of my failed attempts to code!) how do I find it and delete it so I can use the import utility again?


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
Cboe Files for Near 24x5 Equities Trading -- December 20 …
Traders Hideout
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Coinbase Launches Regulated Crypto Futures Across 26 Eur …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593


message looks like this


Attached Thumbnails
Click image for larger version

Name:	1A.JPG
Views:	292
Size:	16.2 KB
ID:	28713  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


aquarian1 View Post
I'm trying to import a ninjascript and ninja says that I have a custom script with an error that must be resolved before I can. (probably one of my failed attempts to code!) how do I find it and delete it so I can use the import utility again?

First step:

Look at your tracefile. You will find it under Own Documents -> NinjaTrader 7 -> trace. Open today's trace file with the editor and read the messages. It will identify the offensive indicator or strategy.

Second step:

Delete the offensive indicators, either from within NinjaTrader or by going to Own Documents -> NinjaTrader -> bin -> Custom -> Indicator

Third Step:

After deleting the offensive files, edit any indicator from within NinjaTrader and compile via F5.

Now you are ready to import your file again.


Reply With Quote
Thanked by:
  #5 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,777 since Aug 2010
Thanks Given: 1,103
Thanks Received: 6,181

One way I discovered by accident instead of trace file was to open an indicator (one that you know is good like EMA) for edit in Ninja Script and compile it without making a change. If you have bad indicators, a listing of errors will be displayed at the bottom with the associated indicator names. Take note of these indicators and delete them per Fat Tails' step2 and 3.


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


aligator View Post
One way I discovered by accident instead of trace file was to open an indicator (one that you know is good like EMA) for edit in Ninja Script and compile it without making a change. If you have bad indicators, a listing of errors will be displayed at the bottom with the associated indicator names. Take note of these indicators and delete them per Fat Tails' step2 and 3.

That gets you the same messages. You will also find them on the trace file.


Reply With Quote
Thanked by:
  #7 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

Thanks guys - but still pulling out my hair!!

I've deleted anything that looks suspicious, all that is left is stuff from 7/12/2010 see attached.

I poured through the trace file -- I can't see it
see attached

(why can't the x&%$# ninja error code specify the name of the bad file?
e.g.
You must delete or fix fid.cs in dir .... before being able to use the import?


Attached Thumbnails
Click image for larger version

Name:	2.JPG
Views:	278
Size:	99.7 KB
ID:	28728  
Attached Files
Elite Membership required to download: tracefile.txt
Elite Membership required to download: ninja log file.txt
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


aquarian1 View Post
Thanks guys - but still pulling out my hair!!

I've deleted anything that looks suspicious, all that is left is stuff from 7/12/2010 see attached.

I poured through the trace file -- I can't see it
see attached

(why can't the x&%$# ninja error code specify the name of the bad file?
e.g.
You must delete or fix fid.cs in dir .... before being able to use the import?

Hi aquarian1,

same kind of errors might apply to the strategy directory, move to another dir (temporary) all indicators and strategies and check if it works. If yes you will have to check all your indies one by one.

Also, since you are using NT 6.5 check that your script is from that version and not NT7, sometimes they are not compatible.


Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

tried editing and compiling and got this

am I missing an
ADL.cs?
is that the problem


Attached Thumbnails
Click image for larger version

Name:	3.JPG
Views:	317
Size:	95.2 KB
ID:	28729  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #10 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090



aquarian1 View Post
tried editing and compiling and got this

am I missing an
ADL.cs?
is that the problem

You need to highlight line 63 otherwise your image does not help


Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 19, 2011


© 2026 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 - Downloads - Top
no new posts