I try to learn c# and so far i have read Liberty and Macdonald book and references on msdn.micosoft and i cant quite get the grip on how Ninjascript works yet. Ressourses in the support help guides arent very usefull.
For exemple, in DATA BARS Close you have this exemple
// OnBarUpdate method
protected override void OnBarUpdate()
{
// Checks if the current close is greater than the prior bar close
if (Close[0] > Close[1])
Print("We had an up day");
}
If you plug this into the ninjascript it wont work. Its not clear what type of variable you must input to make it works?
Is it
Close[int barsAgo]?
You should rewrite the whole thing because most course i took on c# over the internet are badly construct.
Frank
ty
Comment