updated advanced trader to fix rolling avg comparsion