This was an attempt at a MACD two lines cross over. I don't think the 9 day EMA line is right, but the program ran.
The MACD buy/sell strategy didn't work but the inverse did- sort of. The back test shows you would have lost all money before making a lot.
I'll work more on getting this right.
If anyone gets a working MACD two lines let me know. I'm interested to see what the back test does.