Great. I'll look into the time thing when I get a bit more advanced.
I see what you mean about the code. I don't need to specify the closeprice as variables and then print them I can just put them straight into the printf expressions. Thanks.
By the way, that is the sort of code I needed as a starter. It works with actual prices and does something to them but is not so advanced that it's hard to understand for a new coder. I'm enjoying myself anyway so that's a start.