Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
QuestionFractal Index Pin
self similar idiot27-Dec-09 11:32
self similar idiot27-Dec-09 11:32 
I am trying to insert a code block into the custom indicator wizard at Ninjatrader. They use C#. I've found a code block for what I want that produces eSignal's fractal index, I think they use javascript, and it inserts OK except for only 6 "expects ;" errors which I can fix. But at the end of this block, it gives an "expects statement" error. What ending statement goes there??? Will this revise the javascript version to Ninjascript OK? The last part of the code looks like this:

function verify() {

var b = false;

if (getBuildNumber() < 779) {

drawTextAbsolute(5, 35, "This study requires version 8.0 or later.",

Color.white, Color.blue, Text.RELATIVETOBOTTOM|Text.RELATIVETOLEFT|Text.BOLD|Text.LEFT,

null, 13, "error");

drawTextAbsolute(5, 20, "Click HERE to upgrade.@URL=http://www.esignal.com/download/default.asp",

Color.white, Color.blue, Text.RELATIVETOBOTTOM|Text.RELATIVETOLEFT|Text.BOLD|Text.LEFT,

null, 13, "upgrade");

return b;

} else {

b = true;

}



return b;

}


Ninjatrader's Ninjascript expects a closing statement right after the last "}" - What the heck is it? The whole code is here "http://forum.esignalcentral.com/showthread.php?threadid=22092
QuestionDo you know any ListViewItem samples ? Pin
Mohammad Dayyan27-Dec-09 9:21
Mohammad Dayyan27-Dec-09 9:21 
AnswerRe: Do you know any ListViewItem samples ? Pin
ProtoBytes28-Dec-09 12:20
ProtoBytes28-Dec-09 12:20 
Questionconnecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 2:42
NoName_ark27-Dec-09 2:42 
AnswerRe: connecting user controls to each other ( link them to gether) Pin
Luc Pattyn27-Dec-09 3:03
sitebuilderLuc Pattyn27-Dec-09 3:03 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 3:11
NoName_ark27-Dec-09 3:11 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
Luc Pattyn27-Dec-09 3:14
sitebuilderLuc Pattyn27-Dec-09 3:14 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 3:20
NoName_ark27-Dec-09 3:20 
Questionpayload fragmentation [modified] Pin
3bood.ghzawi27-Dec-09 1:07
3bood.ghzawi27-Dec-09 1:07 
AnswerRe: payload fragmentation Pin
Md. Marufuzzaman27-Dec-09 3:25
professionalMd. Marufuzzaman27-Dec-09 3:25 
Questiondatetimepicker format for entire application!! [modified] Pin
Hussam Fattahi26-Dec-09 20:37
Hussam Fattahi26-Dec-09 20:37 
AnswerRe: datetimepicker format for entire application!! Pin
#realJSOP27-Dec-09 1:52
professional#realJSOP27-Dec-09 1:52 
GeneralRe: datetimepicker format for entire application!! Pin
Luc Pattyn27-Dec-09 2:03
sitebuilderLuc Pattyn27-Dec-09 2:03 
GeneralRe: datetimepicker format for entire application!! Pin
Hussam Fattahi27-Dec-09 20:02
Hussam Fattahi27-Dec-09 20:02 
GeneralRe: datetimepicker format for entire application!! Pin
#realJSOP27-Dec-09 23:58
professional#realJSOP27-Dec-09 23:58 
GeneralRe: datetimepicker format for entire application!! Pin
Hussam Fattahi28-Dec-09 2:14
Hussam Fattahi28-Dec-09 2:14 
GeneralRe: datetimepicker format for entire application!! Pin
#realJSOP28-Dec-09 4:38
professional#realJSOP28-Dec-09 4:38 
GeneralRe: datetimepicker format for entire application!! Pin
ProtoBytes28-Dec-09 12:22
ProtoBytes28-Dec-09 12:22 
GeneralRe: datetimepicker format for entire application!! Pin
Hussam Fattahi28-Dec-09 22:23
Hussam Fattahi28-Dec-09 22:23 
GeneralRe: datetimepicker format for entire application!! [Extension Method] Pin
ProtoBytes29-Dec-09 3:14
ProtoBytes29-Dec-09 3:14 
GeneralRe: datetimepicker format for entire application!! [Extension Method] Pin
elizas7-Jun-10 1:24
elizas7-Jun-10 1:24 
Questionprinting capability Pin
Ryan Minor26-Dec-09 19:55
Ryan Minor26-Dec-09 19:55 
AnswerRe: printing capability Pin
dan!sh 26-Dec-09 20:12
professional dan!sh 26-Dec-09 20:12 
GeneralRe: printing capability Pin
Ben Fair28-Dec-09 10:24
Ben Fair28-Dec-09 10:24 
AnswerRe: printing capability Pin
MumbleB26-Dec-09 20:47
MumbleB26-Dec-09 20:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.