Customer: "I would like to build a simple algorithm. The goal is to capture dividends of stocks. I would like to be able to enter anywhere from a few potential sids to hundreds. The algorithm will check first to see if a stocks ex-date is the next day if so then it will check to see if the stocks price is the same as or greater than the moving average. If this is also true then it will buy shares. It will then sell the shares of stocks on the ex-date or later for the price it purchased them for or greater. It will try to do this for a number of days(havent decided how many) and if it can not sell them for that price then it will sell them at market price."