Exponential Moving Average Cross Strategy Explained
EMA CrossOver Trading Strategy var simpleMovingAVG = function(dataObjArray, timePeriods){ var sum = 0; var result = false; try{ for(var i=timePeriods-1;i>-1;i--){ sum += dataObjArray[i].data; } result