5.2.3.3Loading data in the calculation's initialisation

Finally, there is another way of loading initial data into a technical analysis calculation: providing a data array/object in the calculation's initialisation. This is simply equivalent to setting up the calculation and then doing LoadData() on that same array/object:

var ma = new FXB.ta.EMA({

period: 30,

member: "median",

data: [{o:1.2342, h: 1.2347, l: 12341, c: 1.2343}, … ]

});