Poor data

 
Trying to import chart data and it's giving faulty results, I don't know why or I'm doing it correctly. I get the data well but when I generate indicators it does not match. When testing a strategy I get the reverse of it. Anyone with solution for this. I just need these indicators +DI,-DI, ADX and EMA