grd974
05-20-2007, 07:37 AM
Trying to learn NinjaScript language, I wanted to write down my first script in the line of Print("Hello world"); at the first shot I got syntax errors that scared me so I went doing : Tools/Edit NinjaScript/Strategy/SampleMACrossOver.
Then I clicked on the icon Compile and got the error message "Error on generating Strategy" and the following error report appeared below :
-----
Description File Line Column
Expected class, delegate, enum, interface, or struct Strategy\UserDefinedMethods.cs 22 20
Identifier expected Strategy\UserDefinedMethods.cs 25 16
Identifier expected Strategy\UserDefinedMethods.cs 25 28
Identifier expected Strategy\UserDefinedMethods.cs 29 16
Identifier expected Strategy\UserDefinedMethods.cs 29 37
Type or namespace definition, or end-of-file expected Strategy\UserDefinedMethods.cs 31 1
The namespace '<global namespace>' already contains a definition for '?' Strategy\UserDefinedMethods.cs 25 27
The namespace '<global namespace>' already contains a definition for '?' Strategy\UserDefinedMethods.cs 29 15
The namespace '<global namespace>' already contains a definition for '?' Strategy\UserDefinedMethods.cs 29 36
-----
Could any helpful NT user provide me with a NinjaScript that I just would have to type in and which, instead of "Hello world" would do {if (ADX(14)[0] > 30 Playsound(Connected.wav")} ?
Gérard.
Then I clicked on the icon Compile and got the error message "Error on generating Strategy" and the following error report appeared below :
-----
Description File Line Column
Expected class, delegate, enum, interface, or struct Strategy\UserDefinedMethods.cs 22 20
Identifier expected Strategy\UserDefinedMethods.cs 25 16
Identifier expected Strategy\UserDefinedMethods.cs 25 28
Identifier expected Strategy\UserDefinedMethods.cs 29 16
Identifier expected Strategy\UserDefinedMethods.cs 29 37
Type or namespace definition, or end-of-file expected Strategy\UserDefinedMethods.cs 31 1
The namespace '<global namespace>' already contains a definition for '?' Strategy\UserDefinedMethods.cs 25 27
The namespace '<global namespace>' already contains a definition for '?' Strategy\UserDefinedMethods.cs 29 15
The namespace '<global namespace>' already contains a definition for '?' Strategy\UserDefinedMethods.cs 29 36
-----
Could any helpful NT user provide me with a NinjaScript that I just would have to type in and which, instead of "Hello world" would do {if (ADX(14)[0] > 30 Playsound(Connected.wav")} ?
Gérard.