PDA

View Full Version : Compiler bug or hidden syntax error


sbgtrading
11-22-2007, 05:25 AM
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!

NinjaTrader_Dierk
11-22-2007, 06:03 AM
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.

sbgtrading
11-22-2007, 06:11 AM
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

sbgtrading
11-22-2007, 07:14 AM
Ahhh...in the Properties area...I see where they need to be defined...sorry for the mistake on my part!

Thanks again!