I get different results with demo and real accounts. Why is that?

There are never two accounts exactly the same in the forex market, even though the settings can be the same. There will be always differences. If often depends on your broker’s execution time and pricing, so it’s critical to have a good and reliable broker.