if (condtionA == true)
{
objectA = new objectA();
objectA.time = current_time
objectA.entry_price = close[0];
objectA.MA_level = ma(20);
etc
}
the reason I need an object is that I store the objectA in an array and create a new object everytime the condtion occurs so I can store local information and preform calculations on the objects data.
Any ideas how to do this in Ninja (i was previously doing it in javascript which allows for simple object creation in the script, not as a class)

Comment