If your profit goes down when you set DataHorizon, then you have indeed been peeking into the future. But if your script does not trade at all, then debug it and find the reason, for instance a wrong trade logic or a mistake on cycle setup.