Went in and tried to compile something , gave me the attached bad boys... I said " import" when I installed.. Do i need to delete these?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cannot Import script
Collapse
X
-
Cannot Import script
Tried to import but got a message compile errors have to be fixed.. This was the first time I tried to add script since install,,\
Went in and tried to compile something , gave me the attached bad boys... I said " import" when I installed.. Do i need to delete these?Tags: None
-
Added,, went back to compile and came up with error, that add dll is missing.Originally posted by NinjaTrader_Josh View PostPlease go to the References and press Add and add one for NinjaTrader.Vendor.dll. It is located in your Documents\NinjaTrader 7\bin\Custom folder. Then go ahead and recompile.
Comment
-
ok,, that vendor.dll got added to references and now everything compiles.. Went to import an indicator (attachment) but get an Import failed.. method names already exist on your PC... Wonder if this is looking at the 6.5 since I want to import the same custom indicators I have there???Originally posted by NinjaTrader_Josh View PostCan you please provide the exact text of the new error message? Thank you.
Copied the ZigZagUTC.cs into the 7 indicator folder,, compiled and came up with a drawline error????
Also notice that when compiling is successful no little "success" box pops up in 7 like it does in 6...
Comment
-
Don,
Reason you can't import is because the script you have is not NT7 compatible. When you copied the file directly you saw errors that need to be addressed in the code to become NT7 compatible. Please change the signature method being used by your DrawLine() codes to get it compatible. You can see the Help Guide article on DrawLine() for NT7 to see allowable signatures.
NT7 has removed the successfully generated message box to remove repetitive steps in the development process of NinjaScript.Josh P.NinjaTrader Customer Service
Comment
-
Line 150 fixes line 119
[QUOTE=NinjaTrader_Josh;153445]Don,
Reason you can't import is because the script you have is not NT7 compatible. When you copied the file directly you saw errors that need to be addressed in the code to become NT7 compatible. Please change the signature method being used by your DrawLine() codes to get it compatible. You can see the Help Guide article on DrawLine() for NT7 to see allowable signatures.
OK,, need another parm for the draw line,, but check this out the compiler says line 119 is bad, even though it is blank,, when I fix line 150 (put a false in where the cursor is,,, this fixes line 119 too!!!! This code was attached below...Last edited by gg80108; 03-22-2010, 03:11 PM.
Comment
-
easyfying,
Please change the DrawLine() signature method to one used in NT7: http://www.ninjatrader.com/support/h...7/drawline.htm
You can see other code breaking changes outlined here: http://www.ninjatrader.com/support/f...ad.php?t=21016Josh P.NinjaTrader Customer Service
Comment
-
DrawLine not working for me in NT7
I followed the link but can't get the joy,
Could it be because I am using tenthpip?
A = int bars ago
BarsAgo = int bars long ago
MDF = int 10 (really 1 pip cause I am using tenthpip)
DrawLine("low"+CurrentBar, false, BarsAgo, Low[BarsAgo] - (TickSize*MDF), A, Low[A] - (TickSize*MDF), Color.Green, DashStyle.DashDotDot, 3);
Signature is this right?
DrawLine(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
605 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
351 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment