NexusFi: Find Your Edge


Home Menu

 





Please help! Import ninja script error!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one eminitrdr with 9 posts (4 thanks)
    2. looks_two rleplae with 8 posts (8 thanks)
    3. looks_3 LMF871128 with 3 posts (0 thanks)
    4. looks_4 ratfink with 2 posts (6 thanks)
      Best Posters
    1. looks_one ratfink with 3 thanks per post
    2. looks_two rleplae with 1 thanks per post
    3. looks_3 RJay with 1 thanks per post
    4. looks_4 eminitrdr with 0.4 thanks per post
    1. trending_up 7,577 views
    2. thumb_up 20 thanks given
    3. group 4 followers
    1. forum 23 posts
    2. attach_file 8 attachments




 
Search this Thread

Please help! Import ninja script error!

  #1 (permalink)
LMF871128
hong kong
 
Posts: 3 since Mar 2015
Thanks Given: 0
Thanks Received: 0

Hi everybody, did anyone encounter the case like me?

When i import ninjascript, ninja trader shows "you have custom ninjascript files on your PC that...."

and then i found some solution from this forum, but still can't solve it, please see my attachment, it shows

"NinjaTrader.Indicator.SMA is a type but is used like a variable"

i try to delete the corresponding .cs, but it will appear another errors...

how to solve it...help... /_\

Attached Thumbnails
Click image for larger version

Name:	123.png
Views:	365
Size:	79.6 KB
ID:	193714  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Build trailing stop for micro index(s)
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863



LMF871128 View Post
Hi everybody, did anyone encounter the case like me?

When i import ninjascript, ninja trader shows "you have custom ninjascript files on your PC that...."

and then i found some solution from this forum, but still can't solve it, please see my attachment, it shows

"NinjaTrader.Indicator.SMA is a type but is used like a variable"

i try to delete the corresponding .cs, but it will appear another errors...

how to solve it...help... /_\

I have been in such similar case and been able to solve it.
the easiest way is to return to the previous working situation
you can already remove the latest added indicator
and focus on getting the indicators to compile, before trying to add anything

SMA is a standard indicator, did you overwrite it ?

C:\Users\XXX\Documents\NinjaTrader 7\bin\Custom\Indicator\@SMA.cs

If you have two computer, or already a second ninjatrder (same version)
you can take the file there.

Before doing anything best is to copy everything in reserve folder

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
LMF871128
hong kong
 
Posts: 3 since Mar 2015
Thanks Given: 0
Thanks Received: 0


rleplae View Post
I have been in such similar case and been able to solve it.
the easiest way is to return to the previous working situation
you can already remove the latest added indicator
and focus on getting the indicators to compile, before trying to add anything

SMA is a standard indicator, did you overwrite it ?

C:\Users\XXX\Documents\NinjaTrader 7\bin\Custom\Indicator\@SMA.cs

If you have two computer, or already a second ninjatrder (same version)
you can take the file there.

Before doing anything best is to copy everything in reserve folder


Thanks for your help!

In "Edit Ninjascript" -> indictors" page, the latest added indicator haven't be shown in this list, therefore i can't remove it.

And, you mention the @SMA.cs, i can't find it in the list! (but the sma function is worked in the chart)

Is it the cause of the errors??

And, i no two computers, who can give the @SMA.cs file to me, please~~ /_\

Attached Thumbnails
Click image for larger version

Name:	edit indicators list.png
Views:	246
Size:	37.1 KB
ID:	193731  
Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


LMF871128 View Post
Thanks for your help!

In "Edit Ninjascript" -> indictors" page, the latest added indicator haven't be shown in this list, therefore i can't remove it.

And, you mention the @SMA.cs, i can't find it in the list! (but the sma function is worked in the chart)

Is it the cause of the errors??

And, i no two computers, who can give the @SMA.cs file to me, please~~ /_\


This is how it looks in my NT (versions 7.0.1000.30)




Attached is the indicator

Be sure to make a copy of your directory before doing anything

Attached Files
Elite Membership required to download: @SMA.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
LMF871128
hong kong
 
Posts: 3 since Mar 2015
Thanks Given: 0
Thanks Received: 0

Wow! Thank you very much!!!! After pasted your file, It is solved!!

Reply With Quote
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

you're welcome
happy to help you

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 eminitrdr 
Marietta, Oh USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zenfire
Trading: Euro
Posts: 180 since Mar 2010
Thanks Given: 459
Thanks Received: 207

Hi,
Can anyone please help. I have never seen this issue before. I cannot import or compile because I get a message that says I have Ninjascript errors on my computer that must be fixed first. But when I try to find which Ninjascript is causing the problem, I see the attached.

I would certainly appreciate any help that anyone can provide. Thanks.

Attached Thumbnails
Click image for larger version

Name:	Ninjascript_Error_7-29-17.png
Views:	248
Size:	37.2 KB
ID:	239194  
Reply With Quote
  #9 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


eminitrdr View Post
Hi,
Can anyone please help. I have never seen this issue before. I cannot import or compile because I get a message that says I have Ninjascript errors on my computer that must be fixed first. But when I try to find which Ninjascript is causing the problem, I see the attached.

I would certainly appreciate any help that anyone can provide. Thanks.


If you double click on any of the Orange errors, it will take you to the script with the errors.

Reply With Quote
Thanked by:
  #10 (permalink)
 eminitrdr 
Marietta, Oh USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zenfire
Trading: Euro
Posts: 180 since Mar 2010
Thanks Given: 459
Thanks Received: 207


@RJay,

I tried to double click on the orange, in various places and on a few indicators, with no luck. Do you have any other ideas? Thanks for your help.

Has anyone else ever seen this issue? Thanks in advance.

Attached Thumbnails
Click image for larger version

Name:	NinjaScript_Error_Double-Click_7-29-17.png
Views:	211
Size:	31.6 KB
ID:	239195  
Reply With Quote




Last Updated on July 29, 2017


© 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