NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-22-2007, 05:25 AM   #1
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default Compiler bug or hidden syntax error

I need someone try and compile this CS file on their system. It gives me a CS0103 error on lines 86,87,89 and 90 and I truly don't understand why.

The plot name those lines refer to are defined in the Initialize() routine.

I'm just trying to change the color of the histobars on the standard Fisher Transform.

Can you tell me if this is a bug or some strange syntax error on my part.

Thank you!
Attached Files
File Type: cs FisherTransformUpDown.cs (7.6 KB, 6 views)
sbgtrading is offline  
Reply With Quote
Old 11-22-2007, 06:03 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

a) This is the standard MS C# compiler. The likelihood that you encounter a bug is close to 0.
b) Please check our code at the lines in question. It's very clear that you have not defined the variables "Up" and "Down".
c) to understand on how to setup NS indicators I suggest starting with some wizard generated code.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 11-22-2007, 06:11 AM   #3
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

I believe they were defined at lines 39 and 40 in the Add() statement.

Does the code compile for you without an error?

Thanks for your help
Last edited by sbgtrading; 11-22-2007 at 06:29 AM.
sbgtrading is offline  
Reply With Quote
Old 11-22-2007, 07:14 AM   #4
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Ahhh...in the Properties area...I see where they need to be defined...sorry for the mistake on my part!

Thanks again!
sbgtrading is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler won whitmark General Programming 4 10-16-2007 12:52 PM
Syntax Warning on Ninja Editor but not Microsoft ct General Programming 2 10-05-2007 07:03 AM
Compiler Error when compiling standard Ninja indicators MarlinTrader General Programming 1 05-25-2007 01:28 PM
Compiler Errors mgbloomfield Indicator Development 3 12-15-2006 05:58 AM
Option to display hidden background colors in the PRICE column jwalker Suggestions And Feedback 1 02-22-2006 12:22 PM


All times are GMT -6. The time now is 12:38 AM.