I've been struggling with this. I've posted a very simple algo with the same EMA calculation but feeding it different history data and getting different results. My question is, why does it matter how big my data length is if I give my EMA calculation the number it needs or more? I assumed that even if my history data length was 300 but I needed 150 I was giving it the same data that I had if my history data length was 150...the most recent 150 data points. Thanks for any comments on this.